Mercurial > repos > IBBoard.WarFoundry.API
changeset 474:e47cb422aac1
* Fix crashes caused by MonoDevelop not rejecting a C# 4.0 feature used in a .Net 2.0 project (optional parameters)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Apr 2012 15:46:26 +0100 |
parents | 0d032c04210e |
children | b2c818833841 |
files | API/Commands/CreateAndAddUnitCommand.cs |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/API/Commands/CreateAndAddUnitCommand.cs Mon Apr 16 20:47:14 2012 +0100 1.2 +++ b/API/Commands/CreateAndAddUnitCommand.cs Sat Apr 21 15:46:26 2012 +0100 1.3 @@ -16,7 +16,12 @@ 1.4 private Unit addedUnit; 1.5 private Unit parentUnit; 1.6 1.7 - public CreateAndAddUnitCommand(UnitType toAdd, ArmyCategory armyCatTo, Unit parentUnit = null) 1.8 + public CreateAndAddUnitCommand(UnitType toAdd, ArmyCategory armyCatTo) : base(toAdd, armyCatTo, null) 1.9 + { 1.10 + //Do nothing special 1.11 + } 1.12 + 1.13 + public CreateAndAddUnitCommand(UnitType toAdd, ArmyCategory armyCatTo, Unit parentUnit) 1.14 { 1.15 addedUnitType = toAdd; 1.16 armyCat = armyCatTo;