Store custom graphics classifications as symbols instead of integers

This commit is contained in:
2020-02-09 12:10:52 -05:00
parent b8492a29b0
commit 335fb87e51
6 changed files with 65 additions and 12 deletions

View File

@@ -10,6 +10,24 @@
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="picClass">
<xs:restriction base="xs:string">
<xs:enumeration value="terrain"/>
<xs:enumeration value="terrain-anim"/>
<xs:enumeration value="terrain-map"/
<xs:enumeration value="monster-small"/>
<xs:enumeration value="monster-wide"/>
<xs:enumeration value="monster-tall"/>
<xs:enumeration value="monster-large"/>
<xs:enumeration value="dialog"/>
<xs:enumeration value="dialog-large"/>
<xs:enumeration value="talk"/>
<xs:enumeration value="item"/>
<xs:enumeration value="boom"/>
<xs:enumeration value="missile"/>
<xs:enumeration value="none"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType mixed="true" name="scenIcon">
<xs:attribute name="custom" type="bool" default="false"/>
<xs:attribute name="split" type="bool" default="false"/>
@@ -252,7 +270,7 @@
<xs:element name="string" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:extension base="picClass">
<xs:attribute name="id" type="xs:integer" use="required"/>
</xs:extension>
</xs:simpleContent>