changeset 3:6e6284a43843

Fixes #7 * Add translations and DTDs * Don't deploy as MonoDevelop doesn't deploy folder structures and just puts the files in the root dir
author IBBoard <dev@ibboard.co.uk>
date Tue, 23 Dec 2008 20:29:09 +0000
parents 6d247d1a1cbb
children 8208a0fde4c2
files WarFoundryGUI.mdp dtds/army.dtd dtds/race.dtd dtds/system.dtd dtds/translation.dtd translations/en.translation
diffstat 6 files changed, 177 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/WarFoundryGUI.mdp	Tue Dec 23 19:06:56 2008 +0000
+++ b/WarFoundryGUI.mdp	Tue Dec 23 20:29:09 2008 +0000
@@ -34,6 +34,11 @@
     <File name="Widgets/UnitDisplayWidget.cs" subtype="Code" buildaction="Compile" />
     <File name="gtk-gui/objects.xml" subtype="Code" buildaction="EmbedAsResource" />
     <File name="gtk-gui/IBBoard.WarFoundry.Widgets.UnitDisplayWidget.cs" subtype="Code" buildaction="Compile" />
+    <File name="translations/en.translation" subtype="Code" buildaction="Nothing" />
+    <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	Tue Dec 23 20:29:09 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	Tue Dec 23 20:29:09 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	Tue Dec 23 20:29:09 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	Tue Dec 23 20:29:09 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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/translations/en.translation	Tue Dec 23 20:29:09 2008 +0000
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE translations SYSTEM "dtds/translation.dtd">
+<translations lang="en">
+<translation id="menuFile">&amp;File</translation>
+<translation id="menuEdit">&amp;Edit</translation>
+<translation id="menuHelp">&amp;Help</translation>
+<translation id="miNewArmy">&amp;Create army</translation>
+<translation id="miOpenArmy">&amp;Open army</translation>
+<translation id="miExit">E&amp;xit</translation>
+<translation id="miAbout">&amp;About</translation>
+<translation id="miSaveArmy">&amp;Save army</translation>
+<translation id="miSaveArmyAs">Save army &amp;as...</translation>
+<translation id="miCloseArmy">&amp;Close army</translation>
+<translation id="miChangeSystem">Change &amp;game system</translation>
+<translation id="miUndo">&amp;Undo</translation>
+<translation id="miRedo">&amp;Redo</translation>
+<translation id="armyFileFilter">WarFoundry Army Files (*.army)</translation>
+<translation id="bttnSelectRace">Create army</translation>
+<translation id="bttnCancel">Cancel</translation>
+<translation id="bttnSelectUnit">Create unit</translation>
+<translation id="lblUnitList">Unit types:</translation>
+<translation id="lblRaceList">Races:</translation>
+<translation id="lblArmyName">Army name:</translation>
+<translation id="bttnSelectSystem">Select system</translation>
+<translation id="lblSystemList">Game systems:</translation>
+<translation id="FrmSelectSystem">Game system selection</translation>
+<translation id="ArmyTree">Army tree</translation>
+<translation id="FrmNewArmy">Create new army</translation>
+<translation id="saveArmyDialog">Save army</translation>
+<translation id="lblArmySize">Army size:</translation>
+<translation id="defaultUnitName">Unit of {0} {1}</translation>
+<translation id="bttnNewArmy">Create army</translation>
+<translation id="bttnOpenArmy">Open army</translation>
+<translation id="bttnSaveArmy">Save army</translation>
+<translation id="statusPanelPoints">{0} pts / {1} pts</translation>
+<translation id="miReloadFiles">&amp;Reload files</translation>
+<translation id="miDebugWindow">&amp;Debug information</translation>
+<translation id="FrmNewUnit">Add New {0} Choice</translation>
+</translations>
\ No newline at end of file