diff options
author | neoraider <devnull@localhost> | 2007-05-14 19:38:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-05-14 19:38:01 +0200 |
commit | 3b2e35b66b0df22093505270bbabfc868a0a9a2b (patch) | |
tree | fa492dafaf383ca95c7799c9432fdaa464ed07c7 /levels/level.dtd | |
parent | 48ce809334713ef75d0f3c8d6b5c9fab16e2f335 (diff) | |
download | zoom-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.dtd | 26 |
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 > |