ICustomizationPart
An interface in Root.Township, Alta.Customization.
One visual piece of a cosmetic that attaches to character models (third person body, first person hands and so on) in given slots.
- Listed in Customization and screenshots
- Derived types
CosmeticMeshPartBase<T>,CustomizationVisualPart,ICosmeticMeshPartBase
Properties
| Member | What it is |
|---|---|
bool IsPrimary { get; } | Whether this is the main part of the visual. |
int PartIndex { get; } | Index of this part within its visual. |
int[] Slots { get; } | The customization slots this part takes up. |
ICustomizationVisual Visual { get; set; } | The cosmetic visual this part belongs to. |
Methods
| Member | What it is |
|---|---|
void ChangeArguments(IEnumerable<ICustomizationHandler> handlers, CustomizationArguments arguments) | Reapplies new arguments (colours and so on) on each handler. |
void Hide(IEnumerable<ICustomizationHandler> handler) | Detaches the part from each handler. |
Task PostRandomize(PlayerCosmeticWrapper cosmeticWrapper) | Called after the outfit was randomized, so the part can adjust itself. |
void Show(IEnumerable<ICustomizationHandler> handlers, CustomizationArguments arguments) | Attaches the part to each handler with the given arguments. |
void UpdateFirstPerson(ICustomizationHandler handler, CustomizationArguments arguments) | Re-checks whether the part should show on a handler after it switches between first and third person. |
Used in
Members of other types that take, return or hold a ICustomizationPart: