diff api/Commands/CreateAndAddUnitCommand.cs @ 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 2f3cafb69799
children 57517f472ab5
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; }
 		}
 	}
 }