Skip to main content

PlayerCosmeticWrapper

A class in Root.Township, Alta.Customization.

The customization wrapper for player cosmetics: loads PlayerCosmeticDefinition items through the wrapper's addressable session.

Constructors​

MemberWhat it is
PlayerCosmeticWrapper(ICustomizationVisualManager manager)Creates a PlayerCosmeticWrapper from manager.

Fields​

1 private and internal field
MemberWhat it is
private readonly List<uint> randomizeCacheCopy of the item list used during PostRandomize, so the list can change while it runs.

Methods​

MemberWhat it is
override async Task<ICustomizationDefinition> GetItem(uint hash)Loads a player cosmetic definition by hash or by SKU.
Task<PlayerCosmeticDefinition> GetItem(string sku)Loads a player cosmetic definition by hash or by SKU.
async Task PostRandomize()After a randomize, runs each part's PostRandomize step for every equipped item. Used for new characters and spectral ghosts.

Used in​

Members of other types that take, return or hold a PlayerCosmeticWrapper: