Anvil
|
Public Member Functions | |||
NwItem | ChangeAppearance (Action< ItemAppearance > changes) | ||
Creates a new item with the specified appearance changes. The existing item is destroyed and replaced with the new item. If the item was equipped, it is restored to the original equipment slot. More... | |||
void | ClearArmorPieceColor (CreaturePart modelSlot, ItemAppearanceArmorColor colorSlot) | ||
Clears any per-part color overrides set for the specified part slot. More... | |||
void | CopyTo (NwItem otherItem) | ||
Copies this item appearance to another item.
| |||
void | Deserialize (string serialized) | ||
Updates this item appearance using the value retrieved through Serialize. More... | |||
byte | GetArmorColor (ItemAppearanceArmorColor slot) | ||
Gets the armor color of this item. More... | |||
ushort | GetArmorModel (CreaturePart slot) | ||
Gets the armor model of this item. More... | |||
byte | GetArmorPieceColor (CreaturePart modelSlot, ItemAppearanceArmorColor colorSlot) | ||
Gets the armor color for a piece of this item. More... | |||
ushort | GetSimpleModel () | ||
Gets the base model of this item. More... | |||
byte | GetWeaponColor (ItemAppearanceWeaponColor slot) | ||
Gets the weapon color of this item. More... | |||
ushort | GetWeaponModel (ItemAppearanceWeaponModel slot) | ||
Gets the weapon model of this item. More... | |||
string | Serialize () | ||
Gets a string containing the entire appearance for this item. More... | |||
void | SetArmorColor (ItemAppearanceArmorColor slot, byte value) | ||
Sets the armor color of this item. More... | |||
void | SetArmorModel (CreaturePart slot, ushort value) | ||
Sets the armor model of this item. More... | |||
void | SetArmorPieceColor (CreaturePart modelSlot, ItemAppearanceArmorColor colorSlot, byte value) | ||
Sets the armor color for a piece of this item. More... | |||
void | SetSimpleModel (ushort value) | ||
Sets the base model of this item. More... | |||
void | SetWeaponColor (ItemAppearanceWeaponColor slot, byte value) | ||
Sets the weapon color of this item. More... | |||
void | SetWeaponModel (ItemAppearanceWeaponModel slot, ushort value) | ||
Sets the weapon model of this item. More... | |||
|
inline |
Creates a new item with the specified appearance changes.
The existing item is destroyed and replaced with the new item.
If the item was equipped, it is restored to the original equipment slot.
changes | The appearance changes to apply. |
|
inline |
Clears any per-part color overrides set for the specified part slot.
modelSlot | The model portion of the slot to clear. |
colorSlot | The color portion of the slot to clear. |
|
inline |
Copies this item appearance to another item.
otherItem | The item to copy this appearance to. |
|
inline |
Updates this item appearance using the value retrieved through Serialize.
serialized | The serialized item appearance. |
ArgumentException | Thrown if an invalid serialized string is specified. |
|
inline |
Gets the armor color of this item.
slot | The armor color slot index to query. |
|
inline |
Gets the armor model of this item.
slot | The armor model slot index to query. |
|
inline |
Gets the armor color for a piece of this item.
modelSlot | The model portion of the slot to query. |
colorSlot | The color portion of the slot to query. |
|
inline |
Gets the base model of this item.
|
inline |
Gets the weapon color of this item.
slot | The weapon color index to query. |
|
inline |
Gets the weapon model of this item.
slot | The weapon model index to query. |
|
inline |
Gets a string containing the entire appearance for this item.
|
inline |
Sets the armor color of this item.
slot | The armor color slot index to be assigned. |
value | The new color to assign. |
|
inline |
Sets the armor model of this item.
slot | The armor model slot index to be assigned. |
value | The new model to assign. |
|
inline |
Sets the armor color for a piece of this item.
modelSlot | The model portion of the slot to assign. |
colorSlot | The color portion of the slot to assign. |
value | The new color to assign. |
|
inline |
Sets the base model of this item.
|
inline |
Sets the weapon color of this item.
slot | The weapon color index to be assigned. |
value | The new color to assign. |
|
inline |
Sets the weapon model of this item.
slot | The weapon model index to be assigned. |
value | The new model to assign. |