Skip to main content

CustomizationSlotEntry

A class in Root.Township, Alta.Customization.

One part of a cosmetic or equipment visual placed in a customization slot. Tracks whether other items cover it (impeded) or a slot disables it (hidden).

Constructors​

MemberWhat it is
CustomizationSlotEntry(ICustomizationVisual visual, ICustomizationPart part, CustomizationArguments arguments)Creates a CustomizationSlotEntry from visual, part and arguments.

Fields​

1 private and internal field
MemberWhat it is
private bool hasPartWhether the entry has a part to show; entries without one count as primary and skip show and hide.

Properties​

MemberWhat it is
CustomizationArguments Arguments { get; private set; }The current customization arguments for the part.
int DisablerCount { get; private set; }How many disabling slots hide this part. The part shows only when this is 0.
int ImpederCount { get; set; }How many other visuals in the slot cover this one. Above 0 sets IsImpeded in the arguments.
bool IsPrimary { get; }True if the part is primary, or if this entry has no part (the visual itself).
ICustomizationPart Part { get; }The visual part, or null for the entry that stands for the whole visual.
ICustomizationVisual Visual { get; }The customization visual this entry is part of.

Methods​

MemberWhat it is
void Add(IEnumerable<ICustomizationHandler> handlers)Shows the part on the given handlers unless something disables it.
void ApplyArguments(IEnumerable<ICustomizationHandler> handlers, CustomizationArguments arguments)Stores new arguments (colours and so on) and applies them to the shown part.
void ModifyDisablers(IEnumerable<ICustomizationHandler> handlers, bool isAdding)Adds or removes a disabler, hiding the part on the first and showing it again when the last goes.
void Remove(IEnumerable<ICustomizationHandler> handlers)Hides the part on the given handlers.
void UpdateFirstPerson(ICustomizationHandler handler)Updates how the part looks in first person for one handler.
void UpdateImpeded(IEnumerable<ICustomizationHandler> handlers)Reapplies the arguments after ImpederCount changes.

Used in​

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