VarpSmall

class VarpSmall : OutgoingGameMessage

Varp small messages are used to send a varp to the client that has a value which fits in the range of a byte, being -128..127. Note that this class does not verify that the value is in the correct range - instead any bits beyond the range of a byte get ignored.

Constructors

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

Properties

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

the id of the varp

Link copied to clipboard
val value: Int

the value of the varp, in range of -128 to 127 (inclusive)

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