Skip to main content

PlayerCharacterCustomizationManager

A class in Root.Township, Alta.Customization.

A player's cosmetics and equipment visuals, shared by every handler (body or dummy) attached to it. Reached through player.Customization.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private readonly ICustomizationVisualManager internalManagerThe CustomizationVisualManager that the cosmetic and equipment wrappers and the attached handlers work through.
private static readonly Logger loggerNLog logger for this class.

Properties​

MemberWhat it is
PlayerCosmeticWrapper Cosmetics { get; private set; }The player's cosmetic items and their history.
PlayerEquipmentWrapper Equipment { get; private set; }The equipment worn on the character.
IEnumerable<ICustomizationHandler> Handlers { get; }The handlers attached now.

Methods​

MemberWhat it is
void Attach(PlayerCustomizationHandler handler)Attaches a customization handler so it shows these cosmetics and equipment. Refuses destroyed handlers.
void Detach(PlayerCustomizationHandler handler)Detaches a handler so it stops following this manager.
void UpdateFirstPerson(PlayerCustomizationHandler handler)Refreshes a handler's first-person visuals.

Used in​

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