pExtendedInfo

abstract fun pExtendedInfo(buffer: JagByteBuf, localIndex: Int, observerIndex: Int, flag: Int, blocks: B)

Main function to write all the extended info blocks over. The extended info blocks must be in the exact order as they are read within the client, and this function is responsible for converting library-specific-constants to client-specific-flags.

Parameters

buffer

the buffer into which to write the extended info block.

localIndex

the index of the avatar that owns these extended info blocks.

observerIndex

the index of the player observing this avatar.

flag

the constant-flag of all the extended info blocks which must be translated and written to the buffer.

blocks

the wrapper class around all the extended info blocks. The blocks which are flagged will be written over.