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_007_TownEntities_GetWalkPrediction()

void Terraria.NPC.AI_007_TownEntities_GetWalkPrediction ( int myTileX,
int homeFloorX,
bool canBreathUnderWater,
bool currentlyDrowning,
int tileX,
int tileY,
[Out] bool keepwalking,
[Out] bool avoidFalling )
inlineprivate

Definition at line 3610 of file NPC.cs.

3611 {
3612 if (this.townNPC)
3613 {
3614 float[] array = this.ai;
3615 Vector2 top = base.Top;
3616 Vector2 bottom = base.Bottom;
3617 int width = this.width;
3618 if (array == null)
3619 {
3620 }
3621 Rectangle hitbox = base.Hitbox;
3622 if (this.whoAmI == 0)
3623 {
3624 }
3626 bool flag = rectangle.Intersects(rectangle);
3627 }
3628 int num = 1;
3629 keepwalking.m_value = num != 0;
3630 }
class f__AnonymousType0<< Count > j__TPar
float[] ai
Definition NPC.cs:11384
bool townNPC
Definition NPC.cs:11519
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263

References Terraria.NPC.ai, System.array, Microsoft.Xna.Framework.Rectangle.Intersects(), j__TPar, Terraria.NPC.townNPC, Terraria.Entity.whoAmI, and Terraria.Entity.width.