MoveSpeed

The movement speed extended info block. Unlike most extended info blocks, the value will last as long as the server tells it to. The client will also temporarily cache it for the duration that it sees an avatar in high resolution. Whenever an avatar moves, unless the move speed has been overwritten, this is the speed that it will use for the movement, barring any special mechanics. If an avatar goes from high resolution to low resolution, the client will not cache this, and a new status update must be written when the opposite transition occurs. This move speed status should typically be synchronized with the state of the "Run orb".

Parameters

encoders

the array of client-specific encoders for move speed.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var value: Int

The current movement speed of this avatar.

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
fun getBuffer(oldSchoolClientType: OldSchoolClientType): ByteBuf?

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

Link copied to clipboard
fun getEncoder(oldSchoolClientType: OldSchoolClientType): PrecomputedExtendedInfoEncoder<MoveSpeed>?

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.