Class HeldSounds
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Defines a set of sounds for a collectible object. Open in GitHub
[DocumentAsJson]
public class HeldSounds
- Inheritance
-
HeldSounds
- Inherited Members
- Extension Methods
Examples
"heldSoundsbyType": {
"*-lit-*": {
"idle": "held/torch-idle",
"equip": "held/torch-equip",
"unequip": "held/torch-unequip",
"attack": "held/torch-attack"
}
},
Constructors
HeldSounds()
public HeldSounds()
Fields
Attack
The path to a sound played when this item is used to attack.
[DocumentAsJson("Optional", "None", false)]
[JsonConverter(typeof(SoundAttributeConverter), new object[] { false })]
public SoundAttributes Attack
Field Value
Equip
The path to a sound played when this item is equipped.
[DocumentAsJson("Optional", "None", false)]
[JsonConverter(typeof(SoundAttributeConverter), new object[] { false })]
public SoundAttributes Equip
Field Value
Idle
The path to a sound played when this item is being held.
[DocumentAsJson("Optional", "None", false)]
[JsonConverter(typeof(SoundAttributeConverter), new object[] { false })]
public SoundAttributes Idle
Field Value
InvPickUpDefault
public static SoundAttributes InvPickUpDefault
Field Value
InvPickup
The path to a sound played when this item is picked up in the inventory using the mouse.
[DocumentAsJson("Optional", "player/clayformhi", false)]
[JsonConverter(typeof(SoundAttributeConverter), new object[] { false })]
public SoundAttributes InvPickup
Field Value
InvPlace
The path to a sound played when this item is placed in the inventory using the mouse.
[DocumentAsJson("Optional", "player/clayform", false)]
[JsonConverter(typeof(SoundAttributeConverter), new object[] { false })]
public SoundAttributes InvPlace
Field Value
InvPlaceDefault
public static SoundAttributes InvPlaceDefault
Field Value
SemirandomPitchDefault
public static NatFloat SemirandomPitchDefault
Field Value
ToolBreak
public static AssetLocation ToolBreak
Field Value
Unequip
The path to a sound played when this item is unequipped.
[DocumentAsJson("Optional", "None", false)]
[JsonConverter(typeof(SoundAttributeConverter), new object[] { false })]
public SoundAttributes Unequip
Field Value
Methods
Clone()
Clones the held sounds.
public HeldSounds Clone()