Class ItemAppearance
Provides structured access to an item's visual appearance (models and colors), and utilities for cloning, copying, and serializing/deserializing appearance data.
public sealed class ItemAppearance
- Inheritance
-
ItemAppearance
- Inherited Members
- Extension Methods
Remarks
Appearance values include layered texture colors, base and per-part models, and per-part color overrides. Serialization encodes these values in a stable hex format for persistence and transfer.
Methods
- ChangeAppearance(Action<ItemAppearance>)
Creates a cloned item, applies the specified appearance changes to the clone, and replaces the original item.
- ClearArmorPieceColor(CreaturePart, ItemAppearanceArmorColor)
Clears any per-part color overrides set for the specified part slot.
- CopyTo(NwItem)
Copies this item's appearance values to another item.
- Deserialize(string)
Updates this item's appearance from a serialized string created by Serialize().
- GetArmorColor(ItemAppearanceArmorColor)
Gets the armor color value for the specified slot.
- GetArmorModel(CreaturePart)
Gets the armor model part value for the specified slot.
- GetArmorPieceColor(CreaturePart, ItemAppearanceArmorColor)
Gets the armor color for a specific piece and texture layer.
- GetSimpleModel()
Gets the base (simple) model value for this item.
- GetWeaponColor(ItemAppearanceWeaponColor)
Gets the weapon color value for the specified slot.
- GetWeaponModel(ItemAppearanceWeaponModel)
Gets the weapon model part value for the specified slot.
- Serialize()
Serializes the entire item appearance into a hex string.
- SetArmorColor(ItemAppearanceArmorColor, byte)
Sets the armor color value for the specified slot.
- SetArmorModel(CreaturePart, ushort)
Sets the armor model part value for the specified slot.
- SetArmorPieceColor(CreaturePart, ItemAppearanceArmorColor, byte)
Sets the armor color for a specific piece and texture layer.
- SetSimpleModel(ushort)
Sets the base (simple) model value for this item.
- SetWeaponColor(ItemAppearanceWeaponColor, byte)
Sets the weapon color value for the specified slot.
- SetWeaponModel(ItemAppearanceWeaponModel, ushort)
Sets the weapon model part value for the specified slot.