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

◆ ValidateTrackedProjectile()

void Terraria.DataStructures.DroneCameraTracker.ValidateTrackedProjectile ( )
inlineprivate

Definition at line 31 of file DroneCameraTracker.cs.

32 {
33 if (_trackedProjectile == null || !_trackedProjectile.active || _trackedProjectile.type != _lastTrackedType || _trackedProjectile.owner != Main.myPlayer || !Main.LocalPlayer.remoteVisionForDrone)
34 {
35 Clear();
36 }
37 }
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
Definition Entity.cs:21
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.DataStructures.DroneCameraTracker._lastTrackedType, Terraria.DataStructures.DroneCameraTracker._trackedProjectile, Terraria.Entity.active, Terraria.DataStructures.DroneCameraTracker.Clear(), Terraria.Main.LocalPlayer, Terraria.Main.myPlayer, Terraria.Projectile.owner, and Terraria.Projectile.type.

Referenced by Terraria.DataStructures.DroneCameraTracker.TryTracking().

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