Ticket #245: terrains.rnc

File terrains.rnc, 659 bytes (added by François Poirotte, 15 years ago)

Compact Relax NG schema for terrain

Line 
1namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
2
3start = Terrains
4
5Terrains = element Terrains {
6 Terrain
7}
8
9Terrain = element Terrain {
10 Passable*,
11 Doodad*,
12 Event*,
13
14 attribute mmap { text }?,
15 [ a:defaultValue = "" ]
16 attribute groups { text }?,
17 [ a:defaultValue = "" ]
18 attribute properties { text }?
19}
20
21Passable = element Passable {
22 attribute type { text },
23 [ a:defaultValue = "100" ]
24 attribute speed { text }?,
25 [ a:defaultValue = "" ]
26 attribute effect { text }?
27}
28
29Doodad = element Doodad {
30 attribute name { text },
31 attribute max { text }
32}
33
34Event = element Event {
35 text,
36
37 attribute on { text }
38}
39