From b510130219fe11ad21c8bb7470e1fd95ab8833d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20=22Zephyyrr=22=20Fogelstr=C3=B6m?= Date: Sun, 10 Dec 2023 16:47:47 +0100 Subject: [PATCH] Added definitions for events used by TwitchPlaysCraneGame --- definitions/Crane/CraneIsPlaying.json | 23 ++++++++++++++++ definitions/Crane/GameOver.json | 12 +++++++++ definitions/Crane/PlayRequest.json | 38 +++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 definitions/Crane/CraneIsPlaying.json create mode 100644 definitions/Crane/GameOver.json create mode 100644 definitions/Crane/PlayRequest.json 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