Class HeldSounds
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Defines a set of sounds for a collectible object.
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"
}
},
Fields
Attack
The path to a sound played when this item is used to attack.
public AssetLocation Attack
Field Value
Equip
The path to a sound played when this item is equipped.
public AssetLocation Equip
Field Value
Idle
The path to a sound played when this item is being held.
public AssetLocation Idle
Field Value
InvPickUpDefault
public static AssetLocation InvPickUpDefault
Field Value
InvPickup
The path to a sound played when this item is picked up in the inventory using the mouse.
public AssetLocation InvPickup
Field Value
InvPlace
The path to a sound played when this item is placed in the inventory using the mouse.
public AssetLocation InvPlace
Field Value
InvPlaceDefault
public static AssetLocation InvPlaceDefault
Field Value
Unequip
The path to a sound played when this item is unequipped.
public AssetLocation Unequip
Field Value
Methods
Clone()
Clones the held sounds.
public HeldSounds Clone()
Returns
OnDeserializedMethod(StreamingContext)
[OnDeserialized]
public void OnDeserializedMethod(StreamingContext context)
Parameters
context
StreamingContext