Appearance
The appearance extended info block. This is an unusually-large extended info block that is also the only extended info block which gets cached client-side. The library utilizes that caching through a counter which increments with each modification done to the appearance. When an avatar goes from low resolution to high resolution, a comparison is done against the cache, if the counters match, no extended info block is written. If an avatar logs out, every observer will have their counter set back to -1.
Parameters
the array of client-specific encoders for appearance.
Properties
The string to render after an avatar's combat level in the right-click menu, used within the Burthorpe games' room.
The string to render before an avatar's name in the right-click menu, used within the Burthorpe games' room.
The combat level of this avatar.
Whether to force a model refresh client-side, removing the cached model of the player even if the worn objects + base colour + gender have not changed. This is important to flag when setting or removing an obj type customization.
The secondary and tertiary wearpos that the primary wearpos ends up hiding. The secondary and tertiary values are bitpacked into a single byte. We track this separately, so we can always get the full idea of what the avatar is built up out of.
An array of ident kit ids, indexed by the respective wearpos. While there are only 256 potential values that the client can accept, all 256 are possible values, leaving us no room for a default. This is why a short array is used here instead.
The customisations applied to worn objs, indexed by the respective obj's primary wearpos.
The overhead icon that's utilized with prayers.
The skill level of this avatar, shown on the right-click menu as "skill-number". This is utilized within Burthorpe's games' room.
The type of pronoun to utilize within clientscripts.
The id of the npc to which this avatar has transformed.
The animation used when the avatar is walking backwards.
The animation used when the avatar is walking to the left.
The animation used when the avatar is walking to the right.
The worn obj ids, indexed by the respective wearpos.
Functions
Gets the latest pre-computed buffer for the given oldSchoolClientType.
Gets the encoder for a given oldSchoolClientType.
Checks whether a buffer has been precomputed on the specified client type.
Sets the client-specific buffer at index clientTypeId.