Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ProjectileAudioTracker.cs
Go to the documentation of this file.
1namespace Terraria.Audio;
2
4{
5 private int _expectedType;
6
7 private int _expectedIndex;
8
10 {
12 _expectedType = proj.type;
13 }
14
15 public bool IsActiveAndInGame()
16 {
17 if (Main.gameMenu)
18 {
19 return false;
20 }
22 if (projectile.active)
23 {
24 return projectile.type == _expectedType;
25 }
26 return false;
27 }
28}
static Projectile[] projectile
Definition Main.cs:1691
static bool gameMenu
Definition Main.cs:1926