Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Play() [1/2]

SlotId Terraria.Audio.SoundPlayer.Play ( SoundStyle style)
inline

Definition at line 50 of file SoundPlayer.cs.

51 {
52 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
53 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
54 if (Main.dedServ || style == null || !style.IsTrackable)
55 {
56 return SlotId.Invalid;
57 }
58 ActiveSound activeSound = new ActiveSound(style);
60 }
void Add(TKey key, TValue value)
readonly SlotVector< ActiveSound > _trackedSounds
Definition SoundPlayer.cs:9
static readonly SlotId Invalid
Definition SlotId.cs:5

References Terraria.Audio.SoundPlayer._trackedSounds, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), Terraria.Main.dedServ, ReLogic.Utilities.SlotId.Invalid, and Terraria.Audio.SoundStyle.IsTrackable.