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

◆ PlayTrackedSound() [2/2]

static SlotId Terraria.Audio.SoundEngine.PlayTrackedSound ( SoundStyle style,
Vector2 position )
inlinestatic

Definition at line 109 of file SoundEngine.cs.

110 {
111 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
112 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
113 if (Main.dedServ || !IsAudioSupported)
114 {
115 return SlotId.Invalid;
116 }
117 return SoundPlayer.Play(style, position);
118 }
static SoundPlayer SoundPlayer
static readonly SlotId Invalid
Definition SlotId.cs:5

References Terraria.Main.dedServ, ReLogic.Utilities.SlotId.Invalid, Terraria.Audio.SoundEngine.IsAudioSupported, and Terraria.Audio.SoundPlayer.Play().

Referenced by Terraria.NPC.AI(), Terraria.Projectile.AI_001(), Terraria.NPC.AI_107_ImprovedWalkers(), Terraria.NPC.AI_108_DivingFlyer(), Terraria.NPC.AI_109_DarkMage(), Terraria.NPC.AI_110_Betsy(), Terraria.NPC.AI_111_DD2LightningBug(), Terraria.Projectile.AI_131_FlameBurstShot(), Terraria.Projectile.AI_134_Ballista(), Terraria.Projectile.AI_137_LightningAura(), Terraria.Projectile.AI_138_ExplosiveTrap(), Terraria.Projectile.AI_140_MonkStaffT1(), Terraria.Projectile.AI_143_MonkStaffT2Ghast(), Terraria.Projectile.AI_145_BookStaffStorm(), Terraria.Projectile.AI_177_IceWhipSlicer(), Terraria.Projectile.AI_187_ShadowHand(), Terraria.Projectile.Kill(), Terraria.Initializers.AchievementInitializer.OnAchievementCompleted(), and Terraria.Player.UpdateBiomes().