Skip to content

Commit 80220a9

Browse files
committed
Extended the example project with some nested custom classes
Based on Box2D data types.
1 parent 609cab8 commit 80220a9

File tree

1 file changed

+129
-47
lines changed

1 file changed

+129
-47
lines changed

examples/examples.tiled-project

+129-47
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,37 @@
88
"../tests"
99
],
1010
"propertyTypes": [
11+
{
12+
"color": "#ffa0a0a4",
13+
"id": 10,
14+
"members": [
15+
{
16+
"name": "fixture",
17+
"propertyType": "Fixture",
18+
"type": "class",
19+
"value": {
20+
}
21+
},
22+
{
23+
"name": "type",
24+
"propertyType": "BodyType",
25+
"type": "string",
26+
"value": "Static"
27+
}
28+
],
29+
"name": "Body",
30+
"type": "class",
31+
"useAs": [
32+
"property",
33+
"map",
34+
"layer",
35+
"object",
36+
"tile",
37+
"tileset",
38+
"wangcolor",
39+
"wangset"
40+
]
41+
},
1142
{
1243
"id": 1,
1344
"name": "BodyType",
@@ -19,6 +50,33 @@
1950
],
2051
"valuesAsFlags": false
2152
},
53+
{
54+
"id": 12,
55+
"name": "CollisionCategories",
56+
"storageType": "int",
57+
"type": "enum",
58+
"values": [
59+
"0",
60+
"1",
61+
"2",
62+
"3",
63+
"4"
64+
],
65+
"valuesAsFlags": true
66+
},
67+
{
68+
"id": 9,
69+
"name": "Direction",
70+
"storageType": "string",
71+
"type": "enum",
72+
"values": [
73+
"Up",
74+
"Right",
75+
"Down",
76+
"Left"
77+
],
78+
"valuesAsFlags": false
79+
},
2280
{
2381
"id": 2,
2482
"name": "EnemyType",
@@ -32,92 +90,116 @@
3290
"valuesAsFlags": false
3391
},
3492
{
35-
"color": "#ffad7fa8",
36-
"id": 4,
93+
"color": "#ffcdab8f",
94+
"id": 5,
3795
"members": [
3896
{
39-
"name": "friction",
40-
"type": "float",
41-
"value": 1
42-
},
43-
{
44-
"name": "static",
45-
"type": "bool",
46-
"value": false
97+
"name": "direction",
98+
"propertyType": "Direction",
99+
"type": "string",
100+
"value": "Up"
47101
}
48102
],
49-
"name": "Fixture",
50-
"type": "class",
51-
"useAs": [
52-
"object",
53-
"tile"
54-
]
55-
},
56-
{
57-
"color": "#ffeeeeec",
58-
"id": 5,
59-
"members": [
60-
],
61-
"name": "Location",
103+
"name": "Exit",
62104
"type": "class",
63105
"useAs": [
64106
"object",
65107
"tile"
66108
]
67109
},
68110
{
69-
"color": "#ff729fcf",
70-
"id": 6,
111+
"color": "#ffa0a0a4",
112+
"id": 11,
71113
"members": [
114+
{
115+
"name": "categoryBits",
116+
"propertyType": "CollisionCategories",
117+
"type": "int",
118+
"value": 0
119+
},
120+
{
121+
"name": "groupIndex",
122+
"type": "int",
123+
"value": 0
124+
},
125+
{
126+
"name": "maskBits",
127+
"propertyType": "CollisionCategories",
128+
"type": "int",
129+
"value": 0
130+
}
72131
],
73-
"name": "NPC",
132+
"name": "Filter",
74133
"type": "class",
75134
"useAs": [
135+
"property",
136+
"map",
137+
"layer",
76138
"object",
77-
"tile"
139+
"tile",
140+
"tileset",
141+
"wangcolor",
142+
"wangset"
78143
]
79144
},
80145
{
81-
"color": "#ff99c1f1",
82-
"id": 7,
146+
"color": "#ffad7fa8",
147+
"id": 4,
83148
"members": [
84149
{
85-
"name": "disabled",
86-
"type": "bool",
87-
"value": false
150+
"name": "density",
151+
"type": "float",
152+
"value": 0
88153
},
89154
{
90-
"name": "modX",
91-
"type": "int",
92-
"value": 1
155+
"name": "filter",
156+
"propertyType": "Filter",
157+
"type": "class",
158+
"value": {
159+
"categoryBits": 1,
160+
"maskBits": 1
161+
}
93162
},
94163
{
95-
"name": "modY",
96-
"type": "int",
164+
"name": "friction",
165+
"type": "float",
97166
"value": 1
98167
},
99168
{
100-
"name": "noOverlappingOutput",
169+
"name": "isSensor",
101170
"type": "bool",
102171
"value": false
103172
},
104173
{
105-
"name": "offsetX",
106-
"type": "int",
174+
"name": "restitution",
175+
"type": "float",
107176
"value": 0
108177
},
109178
{
110-
"name": "offsetY",
111-
"type": "int",
179+
"name": "restitutionThreshold",
180+
"type": "float",
112181
"value": 0
113-
},
182+
}
183+
],
184+
"name": "Fixture",
185+
"type": "class",
186+
"useAs": [
187+
"property",
188+
"object",
189+
"tile"
190+
]
191+
},
192+
{
193+
"color": "#ff729fcf",
194+
"id": 6,
195+
"members": [
114196
{
115-
"name": "probability",
116-
"type": "float",
117-
"value": 1
197+
"name": "script",
198+
"type": "file",
199+
"value": ""
118200
}
119201
],
120-
"name": "RuleOptions",
202+
"name": "NPC",
121203
"type": "class",
122204
"useAs": [
123205
"object",

0 commit comments

Comments
 (0)