Build playable Aeternalis foundation and GitOps deployment pipeline
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "Protocol",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"intent": {"$ref": "#/definitions/Intent"},
|
||||
"snapshot": {"$ref": "#/definitions/Snapshot"}
|
||||
},
|
||||
"required": ["intent", "snapshot"],
|
||||
"definitions": {
|
||||
"Vec3": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {"x": {"type": "number"}, "y": {"type": "number"}, "z": {"type": "number"}},
|
||||
"required": ["x", "y", "z"]
|
||||
},
|
||||
"Intent": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"op": {"type": "string"}, "seq": {"type": "integer"},
|
||||
"x": {"type": "number"}, "z": {"type": "number"}, "target": {"type": "string"}
|
||||
},
|
||||
"required": ["op", "seq", "x", "z", "target"]
|
||||
},
|
||||
"Entity": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {"type": "string"}, "kind": {"type": "string"}, "name": {"type": "string"},
|
||||
"position": {"$ref": "#/definitions/Vec3"},
|
||||
"hp": {"type": "number"}, "maxHp": {"type": "number"},
|
||||
"state": {"type": "string"}
|
||||
},
|
||||
"required": ["id", "kind", "name", "position", "hp", "maxHp", "state"]
|
||||
},
|
||||
"Character": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"entity": {"$ref": "#/definitions/Entity"},
|
||||
"inventory": {"type": "object", "additionalProperties": {"type": "integer"}},
|
||||
"skills": {"type": "object", "additionalProperties": {"type": "integer"}},
|
||||
"playedSeconds": {"type": "number"}, "remainingSeconds": {"type": "number"},
|
||||
"kills": {"type": "integer"}, "ack": {"type": "integer"},
|
||||
"hasKeystone": {"type": "boolean"}
|
||||
},
|
||||
"required": ["entity", "inventory", "skills", "playedSeconds", "remainingSeconds", "kills", "ack", "hasKeystone"]
|
||||
},
|
||||
"Chunk": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"key": {"type": "string"}, "x": {"type": "integer"}, "z": {"type": "integer"},
|
||||
"size": {"type": "number"}, "resolution": {"type": "integer"},
|
||||
"heights": {"type": "array", "items": {"type": "number"}},
|
||||
"biome": {"type": "string"}, "resources": {"type": "array", "items": {"$ref": "#/definitions/Entity"}}
|
||||
},
|
||||
"required": ["key", "x", "z", "size", "resolution", "heights", "biome", "resources"]
|
||||
},
|
||||
"WorldInfo": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {"type": "string"}, "seed": {"type": "integer"}, "phase": {"type": "string"},
|
||||
"ageSeconds": {"type": "number"}, "bossInSeconds": {"type": "number"},
|
||||
"collapseInSeconds": {"type": "number"}, "safeRadius": {"type": "number"},
|
||||
"radius": {"type": "number"}, "online": {"type": "integer"}, "capacity": {"type": "integer"},
|
||||
"bossHp": {"type": "number"}, "bossMaxHp": {"type": "number"}
|
||||
},
|
||||
"required": ["id", "seed", "phase", "ageSeconds", "bossInSeconds", "collapseInSeconds", "safeRadius", "radius", "online", "capacity", "bossHp", "bossMaxHp"]
|
||||
},
|
||||
"Snapshot": {
|
||||
"type": "object", "additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {"type": "string"}, "version": {"type": "integer"}, "tick": {"type": "integer"},
|
||||
"world": {"$ref": "#/definitions/WorldInfo"}, "self": {"$ref": "#/definitions/Character"},
|
||||
"entities": {"type": "array", "items": {"$ref": "#/definitions/Entity"}},
|
||||
"chunks": {"type": "array", "items": {"$ref": "#/definitions/Chunk"}},
|
||||
"chunkKeys": {"type": "array", "items": {"type": "string"}},
|
||||
"unavailableResources": {"type": "array", "items": {"type": "string"}},
|
||||
"message": {"type": "string"}
|
||||
},
|
||||
"required": ["type", "version", "tick", "world", "self", "entities", "chunks", "chunkKeys", "unavailableResources", "message"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user