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 diff
     1.1 --- a/api/Commands/CreateAndAddUnitCommand.cs	Sat Sep 19 11:13:47 2009 +0000
     1.2 +++ b/api/Commands/CreateAndAddUnitCommand.cs	Sat Sep 19 14:12:57 2009 +0000
     1.3 @@ -63,10 +63,14 @@
     1.4  			armyCat.RemoveUnit(addedUnit);
     1.5  		}
     1.6  
     1.7 -
     1.8  		public override string Name
     1.9  		{
    1.10  			get { return "Add new unit"; }
    1.11 +		}
    1.12 +
    1.13 +		public Unit Unit
    1.14 +		{
    1.15 +			get { return addedUnit; }
    1.16  		}
    1.17  	}
    1.18  }