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

◆ FillPlayerHitboxes()

static void Terraria.GameContent.Tile_Entities.TELogicSensor.FillPlayerHitboxes ( )
inlinestaticprivate

Definition at line 79 of file TELogicSensor.cs.

80 {
81 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
83 {
84 return;
85 }
86 for (int i = 0; i < 255; i++)
87 {
88 Player player = Main.player[i];
89 if (player.active && !player.dead && !player.ghost)
90 {
91 playerBox[i] = player.getRect();
92 }
93 }
94 playerBoxFilled = true;
95 }
static Dictionary< int, Rectangle > playerBox

References Terraria.Entity.active, Terraria.Player.dead, Terraria.Player.getRect(), Terraria.Player.ghost, Terraria.Main.player, Terraria.GameContent.Tile_Entities.TELogicSensor.playerBox, and Terraria.GameContent.Tile_Entities.TELogicSensor.playerBoxFilled.

Referenced by Terraria.GameContent.Tile_Entities.TELogicSensor.UpdateStartInternal().

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