terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ AddIntoPlayersTownNPCSlots()

void Terraria.NPC.AddIntoPlayersTownNPCSlots ( )
inlineprivate

Definition at line 4888 of file NPC.cs.

4889 {
4890 int num = 1;
4891 float x = this.position.X;
4892 int width = this.width;
4893 if (num == 0)
4894 {
4895 }
4896 int height = this.height;
4897 int num2 = 32640;
4898 float y = this.position.Y;
4899 if (num == 0)
4900 {
4901 }
4902 if (height == 0)
4903 {
4904 }
4905 if (height != 0)
4906 {
4907 if (num2 == 0)
4908 {
4909 }
4910 if (height != 0)
4911 {
4912 if (height == 0)
4913 {
4914 }
4916 bool flag = rectangle.Intersects(rectangle);
4917 float num3 = this.npcSlots;
4918 }
4919 }
4920 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
float npcSlots
Definition NPC.cs:11201
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263

References Terraria.Entity.height, Microsoft.Xna.Framework.Rectangle.Intersects(), j__TPar, Terraria.NPC.npcSlots, Terraria.Entity.position, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.CheckActive().