PlayerTintingList

The tinting extended info block. This is a rather special case as tinting is one of the two observer-dependent extended info blocks, along with net.rsprot.protocol.common.game.outgoing.info.shared.extendedinfo.Hit. It is possible for the server to mark tinting for only a single avatar to see. In order to achieve this, we utilize observerDependent tinting, indexed by the observer's id.

Parameters

encoders

the array of client-specific encoders for tinting.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun clear()

Clears this extended info block, making it ready for use by another avatar.

Link copied to clipboard
operator fun get(index: Int): Tinting
Link copied to clipboard
fun getBuffer(oldSchoolClientType: OldSchoolClientType): ByteBuf?

Gets the latest pre-computed buffer for the given oldSchoolClientType.

Link copied to clipboard
fun getEncoder(oldSchoolClientType: OldSchoolClientType): OnDemandExtendedInfoEncoder<PlayerTintingList>?

Gets the encoder for a given oldSchoolClientType.

Link copied to clipboard
fun isPrecomputed(oldSchoolClientType: OldSchoolClientType): Boolean

Checks whether a buffer has been precomputed on the specified client type.

Link copied to clipboard
fun setBuffer(clientTypeId: Int, buffer: ByteBuf)

Sets the client-specific buffer at index clientTypeId.