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

◆ CheckActive()

void Terraria.NPC.CheckActive ( )
inline

Definition at line 4811 of file NPC.cs.

4812 {
4813 if (!this.active)
4814 {
4815 return;
4816 }
4817 bool flag = this.DoesntDespawnToInactivity();
4818 bool flag2 = this.townNPC;
4819 if (flag2)
4820 {
4822 return;
4823 }
4824 int num = this.type;
4825 float x = this.position.X;
4826 int width = this.width;
4827 if (!flag2)
4828 {
4829 }
4830 int height = this.height;
4831 float y = this.position.Y;
4832 int width2 = this.width;
4833 bool wet = this.wet;
4834 float x2 = this.position.X;
4835 float y2 = this.position.Y;
4836 if (width2 == 0)
4837 {
4838 }
4839 if (!wet)
4840 {
4841 }
4844 int num2 = this.type;
4845 if (num2 == 0)
4846 {
4847 }
4849 if (num2 == 0)
4850 {
4851 }
4852 if (num2 != 0)
4853 {
4854 int num3 = this.type;
4855 }
4856 int num4 = this.type;
4857 bool flag4 = this.boss;
4858 float[] array = this.ai;
4859 if (array == null)
4860 {
4861 }
4863 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
bool boss
Definition NPC.cs:11486
bool DoesntDespawnToInactivity()
Definition NPC.cs:4791
float[] ai
Definition NPC.cs:11384
void AddIntoPlayersTownNPCSlots()
Definition NPC.cs:4888
bool townNPC
Definition NPC.cs:11519
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263

References Terraria.Entity.active, Terraria.NPC.AddIntoPlayersTownNPCSlots(), Terraria.NPC.ai, System.array, Terraria.NPC.boss, Terraria.NPC.DoesntDespawnToInactivity(), Terraria.Entity.height, Microsoft.Xna.Framework.Rectangle.Intersects(), j__TPar, Terraria.Entity.position, Terraria.NPC.townNPC, Terraria.NPC.type, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.