summaryrefslogtreecommitdiff
path: root/Impostor-dev/src/Impostor.Api/Games/GameJoinError.cs
blob: 4889ea965bc3c646001e9d77b45f89faccd23c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
namespace Impostor.Api.Games
{
    public enum GameJoinError
    {
        /// <summary>
        ///     No error occured while joining the game.
        /// </summary>
        None,

        /// <summary>
        ///     The client is not registered in the client manager.
        /// </summary>
        InvalidClient,

        /// <summary>
        ///     The client has been banned from the game.
        /// </summary>
        Banned,

        /// <summary>
        ///     The game is full.
        /// </summary>
        GameFull,

        /// <summary>
        ///     The limbo state of the player is incorrect.
        /// </summary>
        InvalidLimbo,

        /// <summary>
        ///     The game is already started.
        /// </summary>
        GameStarted,

        /// <summary>
        ///     The game has been destroyed.
        /// </summary>
        GameDestroyed,

        /// <summary>
        ///     Custom error by a plugin.
        /// </summary>
        /// <remarks>
        ///     A custom message can be set in <see cref="GameJoinResult.Message"/>.
        /// </remarks>
        Custom,
    }
}