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

◆ AI_002_FloatingEye()

void Terraria.NPC.AI_002_FloatingEye ( )
inlineprivate

Definition at line 3334 of file NPC.cs.

3335 {
3336 if (this.type == 0)
3337 {
3338 }
3339 int num;
3340 if (num == 0)
3341 {
3342 float x = this.position.X;
3343 float y = this.position.Y;
3344 }
3345 bool flag = this.noTileCollide;
3346 int num2 = 1;
3347 this.noGravity = num2 != 0;
3348 if (!flag)
3349 {
3350 if (this.collideX)
3351 {
3352 float x2 = this.oldVelocity.X;
3353 int direction = this.direction;
3355 return;
3356 }
3357 if (this.collideY)
3358 {
3359 float y2 = this.oldVelocity.Y;
3361 return;
3362 }
3363 }
3364 int num3 = this.type;
3365 float x3 = this.position.X;
3366 float y3 = this.position.Y;
3367 int num4 = this.target;
3368 int num5 = this.timeLeft;
3369 int num6 = 10;
3371 float y4 = this.velocity.Y;
3372 int num7 = 1;
3373 this.despawnEncouraged = num7 != 0;
3376 float x4 = this.velocity.X;
3378 int num8 = 1;
3380 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Vector2 oldVelocity
Definition Entity.cs:469
int timeLeft
Definition NPC.cs:11399
bool collideX
Definition NPC.cs:11480
bool collideY
Definition NPC.cs:11483
bool noTileCollide
Definition NPC.cs:11471
int target
Definition NPC.cs:11402

References Terraria.NPC.collideX, Terraria.NPC.collideY, Terraria.Entity.direction, j__TPar, Terraria.NPC.noTileCollide, Terraria.Entity.oldVelocity, Terraria.Entity.position, Terraria.NPC.target, Terraria.NPC.timeLeft, Terraria.NPC.type, Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.