From e9ea621b93fbb58d9edfca8375918791637bbd52 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 30 Dec 2020 20:59:04 +0800 Subject: +init --- .../src/Impostor.Api/Games/GameJoinError.cs | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Impostor-dev/src/Impostor.Api/Games/GameJoinError.cs (limited to 'Impostor-dev/src/Impostor.Api/Games/GameJoinError.cs') diff --git a/Impostor-dev/src/Impostor.Api/Games/GameJoinError.cs b/Impostor-dev/src/Impostor.Api/Games/GameJoinError.cs new file mode 100644 index 0000000..4889ea9 --- /dev/null +++ b/Impostor-dev/src/Impostor.Api/Games/GameJoinError.cs @@ -0,0 +1,48 @@ +namespace Impostor.Api.Games +{ + public enum GameJoinError + { + /// + /// No error occured while joining the game. + /// + None, + + /// + /// The client is not registered in the client manager. + /// + InvalidClient, + + /// + /// The client has been banned from the game. + /// + Banned, + + /// + /// The game is full. + /// + GameFull, + + /// + /// The limbo state of the player is incorrect. + /// + InvalidLimbo, + + /// + /// The game is already started. + /// + GameStarted, + + /// + /// The game has been destroyed. + /// + GameDestroyed, + + /// + /// Custom error by a plugin. + /// + /// + /// A custom message can be set in . + /// + Custom, + } +} \ No newline at end of file -- cgit v1.1-26-g67d0