LogoutWithReason

class LogoutWithReason(val reason: Int) : OutgoingGameMessage

Logout with reason, much like Logout, is used to log the player out of the game. The only difference here is that the user will be given a reason for why they were logged out of the game, e.g. inactive for too long.

Logout reasons table:

| Id |   Type   |
|----|:--------:|
| 1 | Kicked |
| 2 | Updating |

Constructors

Link copied to clipboard
constructor(reason: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard
val reason: Int

the id of the reason to display (see table above)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String