changeset 4:163b35f875ef

Re #7 - Add DTDs to API project because they're API related rather than GUI related no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Fri, 26 Dec 2008 12:32:16 +0000
parents f8932e1a6f5f
children b9346894319c
files IBBoard.WarFoundry.API.mdp dtds/army.dtd dtds/race.dtd dtds/system.dtd dtds/translation.dtd
diffstat 5 files changed, 137 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/IBBoard.WarFoundry.API.mdp	Tue Dec 23 14:21:27 2008 +0000
+++ b/IBBoard.WarFoundry.API.mdp	Fri Dec 26 12:32:16 2008 +0000
@@ -86,6 +86,10 @@
     <File name="api/Objects/IWarFoundryNativeSourceObject.cs" subtype="Code" buildaction="Compile" />
     <File name="api/Objects/IWarFoundryObject.cs" subtype="Code" buildaction="Compile" />
     <File name="api/Objects/StagedLoadingGameSystem.cs" subtype="Code" buildaction="Compile" />
+    <File name="dtds/army.dtd" subtype="Code" buildaction="Nothing" />
+    <File name="dtds/race.dtd" subtype="Code" buildaction="Nothing" />
+    <File name="dtds/system.dtd" subtype="Code" buildaction="Nothing" />
+    <File name="dtds/translation.dtd" subtype="Code" buildaction="Nothing" />
   </Contents>
   <References>
     <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dtds/army.dtd	Fri Dec 26 12:32:16 2008 +0000
@@ -0,0 +1,22 @@
+<!ELEMENT army (units,customEquipment)>
+<!ELEMENT units (unit*)>
+<!ELEMENT unit (equipment?)>
+<!ELEMENT equipment (equipItem*)>
+<!ELEMENT equipItem EMPTY>
+<!ELEMENT customEquipment (customEquipment*)>
+<!ELEMENT customEquip EMPTY>
+
+<!ATTLIST army id CDATA #REQUIRED>
+<!ATTLIST army name CDATA #REQUIRED>
+<!ATTLIST army system CDATA #REQUIRED>
+<!ATTLIST army race CDATA #REQUIRED>
+<!ATTLIST army maxPoints CDATA #REQUIRED>
+
+<!ATTLIST unit id CDATA #REQUIRED>
+<!ATTLIST unit unitType CDATA #REQUIRED>
+<!ATTLIST unit unitName CDATA #REQUIRED>
+<!ATTLIST unit race CDATA "">
+<!ATTLIST unit size CDATA "">
+
+<!ATTLIST equipItem id CDATA #REQUIRED>
+<!ATTLIST equipItem amount CDATA #REQUIRED>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dtds/race.dtd	Fri Dec 26 12:32:16 2008 +0000
@@ -0,0 +1,77 @@
+<!ELEMENT race (units,categories?,equipment?, abilities?)>
+<!ELEMENT categories (cat+)>
+<!ELEMENT cat EMPTY>
+<!ELEMENT units (unit+)>
+<!ELEMENT unit (unitCats,stats,unitEquipment,requires?,exclusiveOf?,champions?,specialItems?,attachable?,additionalMembers?)>
+<!ELEMENT unitCats (unitCat+)>
+<!ELEMENT unitCat EMPTY>
+<!ELEMENT stats (stat+)>
+<!ELEMENT stat (#PCDATA)>
+<!ELEMENT unitEquipment (unitEquipmentItem*)>
+<!ELEMENT unitEquipmentItem EMPTY>
+<!ELEMENT requires (required+)>
+<!ELEMENT required EMPTY>
+<!ELEMENT exclusiveOf (exclusive+)>
+<!ELEMENT exclusive EMPTY>
+<!ELEMENT champions (champion+)>
+<!ELEMENT champion EMPTY>
+<!ELEMENT specialItems (specialItem+)>
+<!ELEMENT specialItem EMPTY>
+<!ELEMENT attachable (attachableUnit+)>
+<!ELEMENT attachableUnit EMPTY>
+<!ELEMENT additionalMembers (additionalMember+)>
+<!ELEMENT additionalMember EMPTY>
+<!ELEMENT equipment (equipmentItem*)>
+<!ELEMENT equipmentItem (stats?)>
+<!ELEMENT abilities (ability?)>
+<!ELEMENT ability (description,requirements)>
+<!ELEMENT description (#PCDATA)>
+<!ELEMENT requirements (requirement*)>
+<!ELEMENT requirement (#PCDATA)>
+
+<!ATTLIST race id ID #REQUIRED>
+<!ATTLIST race subid CDATA "">
+<!ATTLIST race system CDATA #REQUIRED>
+<!ATTLIST race name CDATA #REQUIRED>
+
+<!ATTLIST cat id ID #REQUIRED>
+<!ATTLIST cat name CDATA #REQUIRED>
+<!ATTLIST cat minimum CDATA #REQUIRED>
+<!ATTLIST cat maximum CDATA #REQUIRED>
+<!ATTLIST cat baseValue CDATA #IMPLIED>
+<!ATTLIST cat incValue CDATA #IMPLIED>
+<!ATTLIST cat incAmount CDATA #IMPLIED>
+
+<!ATTLIST unit id ID #REQUIRED>
+<!ATTLIST unit typeName CDATA #REQUIRED>
+<!ATTLIST unit cat CDATA #REQUIRED>
+<!ATTLIST unit unitPoints CDATA "0">
+<!ATTLIST unit points CDATA #REQUIRED>
+<!ATTLIST unit race CDATA "">
+<!ATTLIST unit minNum CDATA "0">
+<!ATTLIST unit maxNum CDATA "-1">
+<!ATTLIST unit minSize CDATA "5">
+<!ATTLIST unit maxSize CDATA "-1">
+<!ATTLIST unit baseSize CDATA "0">
+
+<!ATTLIST unitCat catID CDATA #REQUIRED>
+<!ATTLIST unitCat catCost CDATA "1">
+
+<!ATTLIST stats statSet CDATA "">
+
+<!ATTLIST stat name CDATA #REQUIRED>
+
+<!ATTLIST unitEquipmentItem id CDATA #REQUIRED>
+<!ATTLIST unitEquipmentItem required (true|false) "false">
+<!ATTLIST unitEquipmentItem exclusivityGroup CDATA "">
+<!ATTLIST unitEquipmentItem roundDirection (up|down) "up">
+
+<!ATTLIST equipmentItem id ID #REQUIRED>
+<!ATTLIST equipmentItem name CDATA #REQUIRED>
+<!ATTLIST equipmentItem cost CDATA #REQUIRED>
+<!ATTLIST equipmentItem min CDATA "-1">
+<!ATTLIST equipmentItem max CDATA "-1">
+<!ATTLIST equipmentItem armourType (None|Shield|LightArmour|LightArmourShield|HeavyArmour|HeavyArmourShield|Barding|BardingShield|BardingLightArmour|BardingLightArmourShield|BardingHeavyArmour|BardingHeavyArmourShield) "None">
+
+<!ATTLIST ability id ID #REQUIRED>
+<!ATTLIST ability name CDATA #REQUIRED>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dtds/system.dtd	Fri Dec 26 12:32:16 2008 +0000
@@ -0,0 +1,30 @@
+<!ELEMENT system (categories,sysStatsList)>
+<!ELEMENT categories (cat+)>
+<!ELEMENT cat EMPTY>
+<!ELEMENT sysStatsList (sysStats+)>
+<!ELEMENT sysStats (sysStat+)>
+<!ELEMENT sysStat EMPTY>
+
+<!ATTLIST system id ID #REQUIRED>
+<!ATTLIST system name CDATA #REQUIRED>
+<!ATTLIST system warn (true|false) "false">
+<!ATTLIST system allowAllies (true|false) "true">
+<!ATTLIST system isRosterBased (true|false) "false">
+
+<!ATTLIST cat id ID #REQUIRED>
+<!ATTLIST cat name CDATA #REQUIRED>
+<!ATTLIST cat minPoints CDATA "0">
+<!ATTLIST cat maxPoints CDATA "-1">
+<!ATTLIST cat minPercentage CDATA "0">
+<!ATTLIST cat maxPercentage CDATA "100">
+<!ATTLIST cat minChoices CDATA "0">
+<!ATTLIST cat maxChoices CDATA "-1">
+<!ATTLIST cat baseValue CDATA "0">
+<!ATTLIST cat incValue CDATA "0">
+<!ATTLIST cat incAmount CDATA "0">
+
+<!ATTLIST sysStatsList defaultStats CDATA #REQUIRED>
+
+<!ATTLIST sysStats id ID #REQUIRED>
+
+<!ATTLIST sysStat name CDATA #REQUIRED>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dtds/translation.dtd	Fri Dec 26 12:32:16 2008 +0000
@@ -0,0 +1,4 @@
+<!ELEMENT translations (translation*)>
+<!ELEMENT translation (#PCDATA)> <!-- it's a damned ugly hack, but C# won't take "#CDATA" so use #PCDATA and always treat it as CDATA -->
+<!ATTLIST translation id ID #REQUIRED>
+<!ATTLIST translations lang CDATA #REQUIRED>
\ No newline at end of file