summaryrefslogtreecommitdiffstats
path: root/levels/level.dtd
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-05-14 19:38:01 +0200
committerneoraider <devnull@localhost>2007-05-14 19:38:01 +0200
commit3b2e35b66b0df22093505270bbabfc868a0a9a2b (patch)
treefa492dafaf383ca95c7799c9432fdaa464ed07c7 /levels/level.dtd
parent48ce809334713ef75d0f3c8d6b5c9fab16e2f335 (diff)
downloadzoom-3b2e35b66b0df22093505270bbabfc868a0a9a2b.tar
zoom-3b2e35b66b0df22093505270bbabfc868a0a9a2b.zip
libzoom: XML level loader implemented.
zoom: Converted old test level to XML.
Diffstat (limited to 'levels/level.dtd')
-rw-r--r--levels/level.dtd26
1 files changed, 18 insertions, 8 deletions
diff --git a/levels/level.dtd b/levels/level.dtd
index 29397bc..6b757f9 100644
--- a/levels/level.dtd
+++ b/levels/level.dtd
@@ -1,7 +1,7 @@
-<!ELEMENT level (info, triangles, textures)>
+<!ELEMENT level (info, rooms, textures)>
<!ELEMENT info (name, desc, start)>
-<!ELEMENT triangles (triangle)*>
+<!ELEMENT rooms (room)*>
<!ELEMENT textures (texture)*>
<!ELEMENT name (#PCDATA)>
@@ -13,9 +13,12 @@
z CDATA #REQUIRED
>
-<!ELEMENT triangle (vertex, texcoords?, vertex, texcoords?, vertex, texcoords?)>
+<!ELEMENT room (triangle)*>
+
+<!ELEMENT triangle (vertex, normal?, texcoords?, vertex, normal?, texcoords?, vertex, normal?, texcoords?)>
<!ATTLIST triangle
- type (wall|floor) #REQUIRED
+ type (wall|floor) #IMPLIED
+ visible (true|false) "true"
texture IDREF #IMPLIED
>
@@ -32,11 +35,18 @@
z CDATA #REQUIRED
>
+<!ELEMENT normal EMPTY>
+<!ATTLIST normal
+ x CDATA #REQUIRED
+ y CDATA #REQUIRED
+ z CDATA #REQUIRED
+>
+
<!ELEMENT texcoords EMPTY>
<!ATTLIST texcoords
- s CDATA "0.0"
- t CDATA "0.0"
- r CDATA "0.0"
- q CDATA "0.0"
+ s CDATA #REQUIRED
+ t CDATA #IMPLIED
+ r CDATA #IMPLIED
+ q CDATA #IMPLIED
>