Setup basic room type and room schema
This commit is contained in:
41
room.schema.json
Normal file
41
room.schema.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.azur.webhop.me/Next-Station/NS-Schemas/raw/branch/master/room.schema.json",
|
||||
"title": "Room",
|
||||
"description": "A room declaration.",
|
||||
"properties": {
|
||||
"exits": {
|
||||
"type": "array",
|
||||
"description": "A set of exit (vector + rotation).",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"x": {
|
||||
"type": "number",
|
||||
"default": 0
|
||||
},
|
||||
"y": {
|
||||
"type": "number",
|
||||
"default": 0
|
||||
},
|
||||
"z": {
|
||||
"type": "number",
|
||||
"default": 0
|
||||
},
|
||||
"rotation": {
|
||||
"type": "number",
|
||||
"default": 0
|
||||
}
|
||||
},
|
||||
"required": ["x", "y", "z", "rotation"]
|
||||
}
|
||||
},
|
||||
"weight": {
|
||||
"type": "number",
|
||||
"default": 1,
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"required": ["weight"]
|
||||
}
|
||||
Reference in New Issue
Block a user