alloc

fun alloc(idx: Int, oldSchoolClientType: OldSchoolClientType): PlayerInfo

Allocates a new player info instance at index idx

Parameters

idx

the index of the player to allocate

oldSchoolClientType

the client on which this player is. The client type is used to determine which extended info encoders to utilize when building the buffers for this packet.

Throws

if the idx is below 1, or above 2047.

if the element at index idx is already in use.