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.
- Listed in Customization and screenshots
Constructors
| Member | What it is |
|---|---|
CosmeticPresetData() | Creates a CosmeticPresetData with default values. |
Fields
| Member | What it is |
|---|---|
int cosmeticBytes | Number of bytes of cosmeticData in use. |
uint[] cosmeticData | The packed cosmetic data, from a pooled array. |
Methods
| Member | What 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:
CosmeticCustomizationManager.originalData, CosmeticPresetTrophy.Data, CosmeticRotatingSlot.data, CosmeticRotatingSlot.GetDataFrom, CustomizationHistoryAction.CustomizationHistoryAction, CustomizationHistoryAction.newState, CustomizationHistoryAction.oldState, CustomizationWrapper.lastState, CustomizationWrapperSerializer.LoadAsync, StaticRandomCustomization.CurrentRandom.