Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Player Disconnect Reasons. #50

Open
shierru opened this issue Oct 19, 2024 · 0 comments
Open

Add Player Disconnect Reasons. #50

shierru opened this issue Oct 19, 2024 · 0 comments

Comments

@shierru
Copy link
Contributor

shierru commented Oct 19, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant