-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsprite.xsd
79 lines (79 loc) · 3.35 KB
/
sprite.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--Sprite, might need some
description on hover later, also some defaults are unknown-->
<!--Builtin-->
<xs:simpleType name="NoitaBool">
<xs:restriction base="xs:string">
<xs:enumeration value="0" />
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpleType>
<!--Builtin-->
<xs:element name="Sprite">
<xs:complexType mixed="true">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="RectAnimation" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:choice>
<xs:element name="Event" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="name" type="xs:string"
use="required" />
<xs:attribute name="frame"
type="xs:nonNegativeInteger"
use="required" />
<xs:attribute name="max_distance"
type="xs:positiveInteger" />
<xs:attribute name="probability"
type="xs:decimal" />
<xs:attribute name="on_finished"
type="NoitaBool" />
<xs:attribute name="check_physics_material"
type="NoitaBool" />
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="frame_count" type="xs:positiveInteger"
use="required" />
<xs:attribute name="frames_per_row" type="xs:positiveInteger"
use="required" />
<xs:attribute name="frame_width" type="xs:positiveInteger"
use="required" />
<xs:attribute name="frame_height" type="xs:positiveInteger"
use="required" />
<xs:attribute name="frame_wait" type="xs:decimal" use="required" />
<xs:attribute name="pos_x" type="xs:integer" default="0" />
<xs:attribute name="pos_y" type="xs:integer" default="0" />
<xs:attribute name="offset_x" type="xs:decimal" default="0" />
<xs:attribute name="offset_y" type="xs:decimal" default="0" />
<xs:attribute name="shrink_by_one_pixel" type="NoitaBool" />
<xs:attribute name="has_offset" type="NoitaBool" default="1" />
<xs:attribute name="loop" type="NoitaBool" default="0" />
<xs:attribute name="next_animation" type="xs:string" default="" />
</xs:complexType>
</xs:element>
<xs:element name="Hotspot" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="color" type="xs:hexBinary" use="required" />
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="filename" type="xs:string" use="required" />
<xs:attribute name="hotspots_filename" type="xs:string" />
<xs:attribute name="offset_x" type="xs:decimal" default="0" />
<xs:attribute name="offset_y" type="xs:decimal" default="0" />
<xs:attribute name="default_animation" type="xs:string" default="default" />
<xs:attribute name="color_a" type="xs:decimal" default="1" />
<xs:attribute name="color_b" type="xs:decimal" default="1" />
<xs:attribute name="color_g" type="xs:decimal" default="1" />
<xs:attribute name="color_r" type="xs:decimal" default="1" />
</xs:complexType>
<xs:unique name="UniqueRectAnimationName">
<xs:selector xpath="RectAnimation" />
<xs:field xpath="@name" />
</xs:unique>
</xs:element>
</xs:schema>