Added ConsoleCommand, and an example to go with it

This commit is contained in:
Chicken man
2014-05-04 10:00:41 -04:00
parent 0783f60ba1
commit fa4b157b42
8 changed files with 217 additions and 3 deletions

View File

@@ -77,7 +77,8 @@ namespace OpenRA.Traits
}
case "DevGiveCash":
{
self.Trait<PlayerResources>().GiveCash(Info.Cash);
var amount = order.ExtraData != 0 ? (int)order.ExtraData : Info.Cash;
self.Trait<PlayerResources>().GiveCash(amount);
break;
}
case "DevGrowResources":