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

◆ GetGlobalProjectile< T >() [1/2]

T Terraria.Projectile.GetGlobalProjectile< T > ( )
inline

Gets the instance of the specified GlobalProjectile type. This will throw exceptions on failure.

Exceptions
T:System.Collections.Generic.KeyNotFoundException
Exceptions
T:System.IndexOutOfRangeException
Type Constraints
T :GlobalProjectile 

Definition at line 93047 of file Projectile.cs.

93048 {
93049 return GlobalType<GlobalProjectile>.GetGlobal<T>(type, EntityGlobals);
93050 }
This class allows you to modify and use hooks for all projectiles, including vanilla projectiles....
RefReadOnlyArray< GlobalProjectile > EntityGlobals
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...