DefaultCosmeticInfo
A class in Root.Township, Alta.Customization.
A cosmetic every player must wear in a category unless they pick another, with its colours. Listed in CustomizationSettings.RequiredDefaults and added when loading a look that lacks one.
- Listed in Customization and screenshots
- Inherits or implements
ISerializationCallbackReceiver
Constructors
| Member | What it is |
|---|---|
DefaultCosmeticInfo() | Creates a DefaultCosmeticInfo from category, definition and colors. |
DefaultCosmeticInfo(CustomizationCategory category, PlayerCosmeticDefinition definition, IEnumerable<TwoColors> colors) | Creates a DefaultCosmeticInfo from category, definition and colors. |
Fields
| Member | What it is |
|---|---|
string name | Inspector label, copied from the category. |
3 private and internal fields
| Member | What it is |
|---|---|
private CustomizationCategory category | Backing field for Category. |
private TwoColors[] colors | Backing field for Colors. |
private PlayerCosmeticDefinition definition | Backing field for Definition. |
Properties
| Member | What it is |
|---|---|
CustomizationCategory Category { get; } | The customization category this default fills. |
IEnumerable<TwoColors> Colors { get; } | Colours applied with the default item. |
ICustomizationDefinition Definition { get; } | The cosmetic used as the default. |
Methods
Used in
Members of other types that take, return or hold a DefaultCosmeticInfo: