VarClan

class VarClan : OutgoingGameMessage

Var clans are used to transmit a variable of a clan to the user. It is important to note that the data type must align with what is defined in the cache, or the client will not be decoding it correctly, which will most likely lead to a disconnection.

Constructors

Link copied to clipboard
constructor(id: Int, value: VarClan.VarClanData)

Types

Link copied to clipboard
sealed interface VarClanData
Link copied to clipboard

Var clan int data is used to transmit a 32-bit integer as a varclan value.

Link copied to clipboard

Var clan int data is used to transmit a 64-bit long as a varclan value.

Link copied to clipboard

Var clan int data is used to transmit a string as a varclan value.

Properties

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

the id of the varclan

Link copied to clipboard

the varclan data value. Use VarClanIntData, VarClanLongData or VarClanStringData to transmit the payload, depending on the defined type in the cache.

Functions

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