GameData

data class GameData(var messageNumber: Int, val gameData: ByteBuf) : V086Message, ClientMessage, ServerMessage, ReferenceCounted

A message sent by both the client and server, which contains game input data as a ByteBuf.

After receiving a GameData message from all clients, the server concatenates the game data into a single array which is returned back to all clients. If an exact copy of the array has already been sent in the same direction (server to client or client to server), CachedGameData may be sent instead.

Message type ID: 0x12.

Constructors

Link copied to clipboard
constructor(messageNumber: Int, gameData: ByteBuf)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val bodyBytes: Int

Number of bytes the body of the message takes up (excluding the message ID byte).

Link copied to clipboard
open override val bodyBytesPlusMessageIdType: Int

The total number of bytes the message takes up, including the message ID byte.

Link copied to clipboard
val gameData: ByteBuf
Link copied to clipboard
open override var messageNumber: Int

The 0-based enumeration indicating the order in which this message was sent/received for each server.

Link copied to clipboard
open override val messageTypeId: Byte

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun refCnt(): Int
Link copied to clipboard
open override fun release(): Boolean
open override fun release(decrement: Int): Boolean
Link copied to clipboard
open override fun retain(): ReferenceCounted
open override fun retain(increment: Int): ReferenceCounted
Link copied to clipboard
open override fun touch(): ReferenceCounted
open override fun touch(hint: Any?): ReferenceCounted
Link copied to clipboard
open override fun writeBodyTo(buffer: ByteBuf)
open override fun writeBodyTo(buffer: ByteBuffer)
Link copied to clipboard
open override fun writeTo(buffer: ByteBuf)
fun writeTo(buffer: ByteBuffer)