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

◆ PlayInteractiveProjectileOpenCloseSound()

static void Terraria.Main.PlayInteractiveProjectileOpenCloseSound ( int projType,
bool open )
inlinestatic

Definition at line 48747 of file Main.cs.

48748 {
48749 switch (projType)
48750 {
48751 case 525:
48753 break;
48754 case 960:
48755 {
48756 SoundStyle style = (open ? SoundID.ChesterOpen : SoundID.ChesterClose);
48757 SoundEngine.PlaySound(in style);
48758 break;
48759 }
48760 }
48761 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static readonly SoundStyle ChesterClose
Definition SoundID.cs:245
static readonly SoundStyle Item59
Definition SoundID.cs:795
This data type describes in detail how a sound should be played. Passable to the M:Terraria....
Definition SoundStyle.cs:19

References Terraria.ID.SoundID.ChesterClose, Terraria.ID.SoundID.Item59, and Terraria.Audio.SoundEngine.PlaySound().

Referenced by Terraria.Player.HandleBeingInChestRange(), and Terraria.Main.TryInteractingWithMoneyTrough().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: