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

◆ GetNearbyContainerProjectilesList()

List< int > Terraria.Player.GetNearbyContainerProjectilesList ( )
inline

Definition at line 21053 of file Player.cs.

21054 {
21055 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
21056 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
21057 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
21058 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
21059 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
21060 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
21061 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
21062 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
21063 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
21064 List<int> list = new List<int>();
21065 Vector2 center = base.Center;
21066 for (int i = 0; i < 1000; i++)
21067 {
21068 Projectile projectile = Main.projectile[i];
21069 if (!projectile.active)
21070 {
21071 continue;
21072 }
21073 int containerIndex = -1;
21074 if (projectile.TryGetContainerIndex(out containerIndex))
21075 {
21076 Point point = projectile.Hitbox.ClosestPointInRect(center).ToTileCoordinates();
21078 {
21079 list.Add(i);
21080 }
21081 }
21082 }
21083 return list;
21084 }
bool IsInTileInteractionRange(int targetX, int targetY, TileReachCheckSettings settings)
Definition Player.cs:29825

References Terraria.Entity.active, Terraria.Entity.Hitbox, Terraria.Player.IsInTileInteractionRange(), Terraria.Main.projectile, Terraria.DataStructures.TileReachCheckSettings.QuickStackToNearbyChests, and Terraria.Projectile.TryGetContainerIndex().

Referenced by Terraria.Player.QuickStackAllChests().

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