changeset 434:c32bb2a53b87

Fixes #365: Add factory for UnitRequiresNoMoreThanNOfUnitTypeRequirement * Centralise a number of hacks, including adding requirement factories
author IBBoard <dev@ibboard.co.uk>
date Sun, 27 Nov 2011 15:34:51 +0000
parents 93c373701016
children 6345a683fd75
files API/WarFoundryCore.cs IBBoard.WarFoundry.API.csproj
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/API/WarFoundryCore.cs	Sun Nov 13 20:55:02 2011 +0000
+++ b/API/WarFoundryCore.cs	Sun Nov 27 15:34:51 2011 +0000
@@ -9,7 +9,12 @@
 namespace IBBoard.WarFoundry.API
 {
 	public class WarFoundryCore
-	{		
+	{
+		static WarFoundryCore()
+		{
+			WarFoundryHacks.Initialise();
+		}
+
 		public static readonly int INFINITY = -1;
 		public static event GameSystemChangedDelegate GameSystemChanged;
 		public static event ArmyChangedDelegate ArmyChanged;
--- a/IBBoard.WarFoundry.API.csproj	Sun Nov 13 20:55:02 2011 +0000
+++ b/IBBoard.WarFoundry.API.csproj	Sun Nov 27 15:34:51 2011 +0000
@@ -184,6 +184,7 @@
     <Compile Include="API\Factories\Requirement\IRequirementFactory.cs" />
     <Compile Include="API\Commands\EditArmyCommand.cs" />
     <Compile Include="API\Factories\Requirement\UnitRequiresNoMoreThanNOfUnitTypeRequirementFactory.cs" />
+    <Compile Include="API\WarFoundryHacks.cs" />
   </ItemGroup>
   <ItemGroup>
     <Reference Include="System.Xml" />