Skip to main content

ICustomizationWrapper

An interface in Root.Township, Alta.Customization.

Holds a character's set of cosmetic items and their arguments, and loads their assets in sessions.

Properties​

MemberWhat it is
IEnumerable<uint> Items { get; }Hashes of the cosmetic items in the set.
Dictionary<ICustomizationDefinition, ICustomizationDefinition> OverrideSet { get; set; }Map that swaps one cosmetic definition for another.

Methods​

MemberWhat it is
void ApplyStreamItems(IEnumerable<CustomizationItemAndArguments> items)Replaces the set with items read from a stream.
void Clear()Empties the set.
void FinishLoad(CancellationTokenSource source)Ends the load started with that token.
CustomizationArguments[] GetArguments(uint hash)Arguments (colours and so on) for an item's parts.
Task<ICustomizationDefinition> GetItem(uint hash)Loads a cosmetic definition by hash.
CancellationTokenSource StartLoad()Starts a load and returns a token to cancel it.
Task StartSession(AddressableSession serializeSession)Starts using an addressable session to load assets.
void StopSession(AddressableSession serializeSession)Stops using an addressable session.

Used in​

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