changeset 147:938409fc24cc WarFoundry_v0.1beta3_Winforms

Fixes #175: Add attribute to schema to define which stats set to use * Add "statSet" attribute to <stats> tag Also: * Auto-clean up of project file * Auto-clean up of line endings
author IBBoard <dev@ibboard.co.uk>
date Fri, 25 Sep 2009 19:17:54 +0000
parents 0b32cc40d82f
children 8e636443aa8e
files IBBoard.WarFoundry.API.csproj api/Objects/ArmyCategory.cs dtds/race.xsd
diffstat 3 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.WarFoundry.API.csproj	Wed Sep 23 19:58:21 2009 +0000
+++ b/IBBoard.WarFoundry.API.csproj	Fri Sep 25 19:17:54 2009 +0000
@@ -42,6 +42,8 @@
     </None>
     <None Include="dtds\race.xsd">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+      <SubType>
+      </SubType>
     </None>
     <None Include="dtds\warfoundry-core.xsd">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
--- a/api/Objects/ArmyCategory.cs	Wed Sep 23 19:58:21 2009 +0000
+++ b/api/Objects/ArmyCategory.cs	Fri Sep 25 19:17:54 2009 +0000
@@ -20,7 +20,7 @@
 		private Dictionary<string, int> unitTypes;
 		private DoubleValChangedDelegate PointsValueChangedMethod;
 		public event ObjectAddDelegate UnitAdded;
-		public event ObjectRemoveDelegate UnitRemoved;
+		public event ObjectRemoveDelegate UnitRemoved;
 		public event FailedUnitRequirementDelegate FailedRequirement;
 		public event DoubleValChangedDelegate PointsValueChanged;
 
--- a/dtds/race.xsd	Wed Sep 23 19:58:21 2009 +0000
+++ b/dtds/race.xsd	Fri Sep 25 19:17:54 2009 +0000
@@ -24,6 +24,7 @@
 													</xs:complexType>
 												</xs:element>
 											</xs:sequence>
+											<xs:attribute name="statSet" type="xs:string" default="" />
 											<xs:anyAttribute/>
 										</xs:complexType>
 									</xs:element>