-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.schema.json
More file actions
130 lines (130 loc) · 9.06 KB
/
Copy pathmap.schema.json
File metadata and controls
130 lines (130 loc) · 9.06 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["tiles"],
"properties": {
"tiles": {
"type": "array",
"description": "2D array of map tiles, organized as [y][x]",
"items": {
"type": "array",
"items": {
"type": "object",
"required": ["x", "y", "terrain_difficulty", "region", "weather", "special", "settlements"],
"properties": {
"x": { "type": "integer", "minimum": 0 },
"y": { "type": "integer", "minimum": 0 },
"terrain_difficulty": { "type": "integer", "minimum": 0, "maximum": 5 },
"region": { "type": "integer", "minimum": 0 },
"weather": { "type": "integer", "minimum": 0 },
"special": { "type": "integer", "minimum": 0 },
"settlements": {
"type": "array",
"items": {
"type": "object",
"required": ["sett_id", "name", "sett_type", "vendors"],
"properties": {
"sett_id": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" },
"name": { "type": "string", "maxLength": 64 },
"sett_type": {
"type": "string",
"enum": ["dome", "city", "town", "city-state", "military_base", "village"]
},
"vendors": {
"type": "array",
"items": {
"type": "object",
"required": ["vendor_id", "name", "money", "_cargo_inventory", "_vehicle_inventory"],
"properties": {
"vendor_id": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" },
"name": { "type": "string", "maxLength": 64 },
"money": { "type": "integer", "minimum": 0 },
"fuel": { "type": ["integer", "null"], "minimum": 0 },
"fuel_price": { "type": ["integer", "null"], "minimum": 0 },
"water": { "type": ["integer", "null"], "minimum": 0 },
"water_price": { "type": ["integer", "null"], "minimum": 0 },
"food": { "type": ["integer", "null"], "minimum": 0 },
"food_price": { "type": ["integer", "null"], "minimum": 0 },
"repair_price": { "type": ["integer", "null"], "minimum": 0 },
"_cargo_inventory": {
"type": "array",
"items": {
"type": "object",
"required": ["cargo_id", "name", "quantity", "volume", "weight", "base_price"],
"properties": {
"cargo_id": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" },
"name": { "type": "string", "maxLength": 64 },
"quantity": { "type": "integer", "minimum": 1 },
"volume": { "type": "integer", "minimum": 0 },
"weight": { "type": "integer", "minimum": 0 },
"capacity": { "type": ["number", "null"] },
"fuel": { "type": ["number", "null"] },
"water": { "type": ["number", "null"] },
"food": { "type": ["number", "null"] },
"base_price": { "type": ["integer", "null"] },
"delivery_reward": { "type": ["integer", "null"] },
"distributor": { "type": ["string", "null"] },
"vehicle_id": { "type": ["string", "null"] },
"warehouse_id": { "type": ["string", "null"] },
"vendor_id": { "type": ["string", "null"] },
"base_desc": { "type": "string", "maxLength": 512 }
}
}
},
"_vehicle_inventory": {
"type": "array",
"items": {
"type": "object",
"required": [
"vehicle_id", "name", "wear",
"base_fuel_efficiency", "base_top_speed", "base_offroad_capability",
"base_cargo_capacity", "base_weight_capacity",
"ap", "base_max_ap", "base_value"
],
"properties": {
"vehicle_id": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" },
"name": { "type": "string", "maxLength": 64 },
"wear": { "type": "number", "minimum": 0, "maximum": 100 },
"base_fuel_efficiency": { "type": "integer", "minimum": 0 },
"base_top_speed": { "type": "integer", "minimum": 0 },
"base_offroad_capability": { "type": "integer", "minimum": 0 },
"base_cargo_capacity": { "type": "integer", "minimum": 0 },
"base_weight_capacity": { "type": "integer", "minimum": 0 },
"base_towing_capacity": { "type": ["integer", "null"], "minimum": 0 },
"ap": { "type": "integer", "minimum": 0 },
"base_max_ap": { "type": "integer", "minimum": 0 },
"base_value": { "type": "integer", "minimum": 0 },
"vendor_id": { "type": ["string", "null"] },
"warehouse_id": { "type": ["string", "null"] },
"base_desc": { "type": "string", "maxLength": 512 }
}
}
}
}
}
}
}
}
}
}
}
}
},
"highlights": {
"type": "array",
"items": {
"type": "array",
"maxItems": 1000,
"items": { "type": "integer", "minimum": 0 }
}
},
"lowlights": {
"type": "array",
"items": {
"type": "array",
"maxItems": 1000,
"items": { "type": "integer", "minimum": 0 }
}
}
}
}