Mercurial > repos > IBBoard.WarFoundry.API
changeset 142:b4d1ed685490
* Add getter to get created unit from command
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 19 Sep 2009 14:12:57 +0000 |
parents | 32b774f24017 |
children | 7f13ffcb8765 |
files | api/Commands/CreateAndAddUnitCommand.cs |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Commands/CreateAndAddUnitCommand.cs Sat Sep 19 11:13:47 2009 +0000 +++ b/api/Commands/CreateAndAddUnitCommand.cs Sat Sep 19 14:12:57 2009 +0000 @@ -63,10 +63,14 @@ armyCat.RemoveUnit(addedUnit); } - public override string Name { get { return "Add new unit"; } + } + + public Unit Unit + { + get { return addedUnit; } } } }