Skip to main content

CosmeticPresetData

A class in Root.Township, Alta.Customization.

A player's whole cosmetic setup written out as packed bits, so it can be stored or sent as a preset.

Constructors​

MemberWhat it is
CosmeticPresetData()Creates a CosmeticPresetData with default values.

Fields​

MemberWhat it is
int cosmeticBytesNumber of bytes of cosmeticData in use.
uint[] cosmeticDataThe packed cosmetic data, from a pooled array.

Methods​

MemberWhat it is
static async Task<CosmeticPresetData> AsyncRequest(CustomizationWrapper cosmeticWrapper)Writes a cosmetic setup to a new preset, using the async serializer.
void Clear()Returns the data array to the shared array pool and clears it.
static CosmeticPresetData Request(CustomizationWrapper cosmeticWrapper)Writes a cosmetic setup to a new preset.

Used in​

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