This repository has been archived by the owner on Jul 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 324
/
levelSchema.json
78 lines (78 loc) · 3.17 KB
/
levelSchema.json
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
{ "type" : "object",
"properties" : {
"type" : {"type" : "string", "pattern" : "^game$"},
"resource" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"id" : {"type":"string", "minLength" : 1},
"src" : {"type":"string", "minLength" : 1}
},
"required" : ["id", "src"]
}
},
"initial" : { "type" : "integer" },
"world" : {
"type" : "array",
"minItems" : 1,
"items" : {
"type" : "object",
"properties" : {
"id" : { "type" : "integer" },
"name" : { "type" : "string", "minLength" : 1},
"initial" : { "type" : "integer" },
"zone" : {
"type" : "array",
"minItems" : 1,
"items" : {
"type": "object",
"properties" : {
"id" : { "type" : "integer" },
"initial" : { "type" : "integer" },
"color" : { "type" : "string", "pattern" : "#[0-9a-fA-F]{6}" },
"music" : { "type" : "string", "minLength" : 1},
"data" : {
"type" : "array",
"minItems" : 1,
"items" : {
"type" : "array",
"minItems" : 1,
"items" : {"type" : "integer"}
}
},
"obj" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"type" : {"type" : "integer"},
"pos" : {"type" : "integer"},
"param" : {"type" : "array"}
},
"required" : ["type", "pos", "param"]
}
},
"warp" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"id" : {"type" : "integer"},
"pos" : {"type" : "integer"},
"data" : {"type" : "integer"}
},
"required" : ["id", "pos", "data"]
}
}
},
"required" : ["id", "initial", "color", "music", "data", "obj", "warp"]
}
}
},
"required": ["id", "name", "initial", "zone"]
}
}
},
"required": ["type", "resource", "initial", "world"]
}