Skip to content

Add Player Disconnect Reasons. #50

@shierru

Description

@shierru

At the moment it breaks some compatibility, so far I haven't been able to come up with anything to prevent this from happening.

enum PLAYER_DISCONNECT_REASON:__PLAYER_DISCONNECT_REASON
{
	UNKNOWN_PLAYER_DISCONNECT_REASON            = -1,
	PLAYER_DISCONNECT_REASON_TIMEOUT,
	PLAYER_DISCONNECT_REASON_CRASH	            = PLAYER_DISCONNECT_REASON_TIMEOUT,
	PLAYER_DISCONNECT_REASON_QUIT,
	PLAYER_DISCONNECT_REASON_KICK,
	PLAYER_DISCONNECT_REASON_BAN	            = PLAYER_DISCONNECT_REASON_KICK
}
#define UNKNOWN_PLAYER_DISCONNECT_REASON           (PLAYER_DISCONNECT_REASON:-1)
#define PLAYER_DISCONNECT_REASON_TIMEOUT	   (PLAYER_DISCONNECT_REASON:0)
#define PLAYER_DISCONNECT_REASON_CRASH		   (PLAYER_DISCONNECT_REASON:0)
#define PLAYER_DISCONNECT_REASON_QUIT		   (PLAYER_DISCONNECT_REASON:1)
#define PLAYER_DISCONNECT_REASON_KICK	           (PLAYER_DISCONNECT_REASON:2)
#define PLAYER_DISCONNECT_REASON_BAN		   (PLAYER_DISCONNECT_REASON:2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions