diff --git a/definitions/Crane/CraneIsPlaying.json b/definitions/Crane/CraneIsPlaying.json new file mode 100644 index 0000000..aa5f799 --- /dev/null +++ b/definitions/Crane/CraneIsPlaying.json @@ -0,0 +1,23 @@ +{ + "$schema": "../../schemas/event-schema.json", + "$meta": { + "name": "GraneIsPlaying", + "exchange": "crane", + "routingKey": "isplaying", + "ownerTool": "TwitchPlaysCraneGame" + }, + "required": [], + "properties": { + "PlayerName": { + "type": "string", + "description": "Name of the player requesting to play.", + "examples": [ + "(Anonymous)", + "alias", + "Zephyyrr", + "Edenal" + ] + } + }, + "additionalProperties": false +} \ No newline at end of file diff --git a/definitions/Crane/GameOver.json b/definitions/Crane/GameOver.json new file mode 100644 index 0000000..8004ec0 --- /dev/null +++ b/definitions/Crane/GameOver.json @@ -0,0 +1,12 @@ +{ + "$schema": "../../schemas/event-schema.json", + "$meta": { + "name": "GameOver", + "exchange": "crane", + "routingKey": "gameover", + "ownerTool": "TwitchPlaysCraneGame" + }, + "required": [], + "properties": {}, + "additionalProperties": false +} \ No newline at end of file diff --git a/definitions/Crane/PlayRequest.json b/definitions/Crane/PlayRequest.json new file mode 100644 index 0000000..e4f0d34 --- /dev/null +++ b/definitions/Crane/PlayRequest.json @@ -0,0 +1,38 @@ +{ + "$schema": "../../schemas/event-schema.json", + "$meta": { + "name": "PlayRequest", + "exchange": "crane", + "routingKey": "playrequest", + "ownerTool": "TwitchPlaysCraneGame" + }, + "required": [ + "XTime", + "YTime" + ], + "properties": { + "XTime": { + "type": "number", + "description": "Amount of time to move crane in X direction", + "minimum": 0, + "maximum": 5 + }, + "YTime": { + "type": "number", + "description": "Amount of time to move crane in Y direction", + "minimum": 0, + "maximum": 5 + }, + "PlayerName": { + "type": "string", + "description": "Name of the player requesting to play.", + "examples": [ + "(Anonymous)", + "alias", + "Zephyyrr", + "Edenal" + ] + } + }, + "additionalProperties": false +} \ No newline at end of file