StartGameNotification

data class StartGameNotification(var messageNumber: Int, val val1: Int, val playerNumber: Short, val numPlayers: Short) : StartGame, ServerMessage

Message sent from the server to all clients, informing that a game has started.

Shares a message type ID with StartGameRequest: 0x11.

Parameters

playerNumber

The player that triggered the game to start.

Constructors

Link copied to clipboard
constructor(messageNumber: Int, val1: Int, playerNumber: Short, numPlayers: Short)

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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val val1: Int

Functions

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)