Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison API/WarFoundryHacks.cs @ 490:e35fc85eda2b
Re #410: Create "N units per M models in parent unit" requirement
* Add factory to create requirements
* Add methods to allow things other than 1:1 values for N and M
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 29 Jul 2012 21:02:59 +0100 |
parents | 4d6c92744254 |
children |
comparison
equal
deleted
inserted
replaced
489:aac77204ae0e | 490:e35fc85eda2b |
---|---|
30 WarFoundrySaver.SetFileSaver(new WarFoundryXmlFileSaver()); | 30 WarFoundrySaver.SetFileSaver(new WarFoundryXmlFileSaver()); |
31 //Make sure we have the requirement factories - should be controlled by plugins | 31 //Make sure we have the requirement factories - should be controlled by plugins |
32 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresAtLeastNUnitsRequirementFactory()); | 32 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresAtLeastNUnitsRequirementFactory()); |
33 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresNoMoreThanNOfUnitTypeRequirementFactory()); | 33 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresNoMoreThanNOfUnitTypeRequirementFactory()); |
34 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresNUnitsForMUnitsRequirementFactory()); | 34 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresNUnitsForMUnitsRequirementFactory()); |
35 WarFoundryLoader.RegisterRequirementFactory(new UnitRequiresNParentModelsForMUnitsRequirementFactory()); | |
35 } | 36 } |
36 } | 37 } |
37 } | 38 } |
38 | 39 |