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

◆ UpdateNetworkCode()

void Terraria.NPC.UpdateNetworkCode ( int i)
inlineprivate

Definition at line 7523 of file NPC.cs.

7524 {
7525 int num;
7526 if (!this.active)
7527 {
7528 num = 1;
7529 this.netUpdate = num != 0;
7530 }
7531 if (num == 0)
7532 {
7533 }
7534 bool netHost = Main.NetHost;
7535 if (num == 0)
7536 {
7537 }
7538 if (!this.townNPC)
7539 {
7540 int num2;
7541 if (num2 == 0)
7542 {
7543 }
7544 while (num2 == 0)
7545 {
7546 }
7547 float x = this.velocity.X;
7548 if (num2 == 0)
7549 {
7550 }
7551 float y = this.velocity.Y;
7552 if (this.netStream == 0)
7553 {
7554 }
7555 Vector2 center = base.Center;
7556 Vector2 center2 = base.Center;
7557 int[] array = this.streamPlayer;
7558 return;
7559 }
7560 if (!this.townNPC)
7561 {
7562 int num3 = this.aiStyle;
7563 }
7564 if (this.netUpdate2)
7565 {
7566 int num4 = 1;
7567 this.netUpdate = num4 != 0;
7568 }
7569 if (!this.active)
7570 {
7571 }
7572 if (!this.netUpdate)
7573 {
7574 int num5 = this.netSpam;
7576 if (this.active && this.townNPC)
7577 {
7578 int num6 = NPC.TypeToDefaultHeadIndex(this.type);
7579 bool flag = this.homeless;
7580 bool flag2 = this.oldHomeless;
7581 int num7 = this.homeTileX;
7582 int num8 = this.oldHomeTileX;
7583 int num9 = this.homeTileY;
7584 int num10 = this.oldHomeTileY;
7585 if (!flag)
7586 {
7587 }
7588 if (num7 == 0)
7589 {
7590 }
7591 if (num7 == 0)
7592 {
7593 }
7594 bool flag3 = this.homeless;
7595 int num11 = this.homeTileX;
7596 int num12 = this.homeTileY;
7600 }
7601 return;
7602 }
7603 if (this.boss)
7604 {
7605 float x2 = this.oldPosition.X;
7606 float y2 = this.oldPosition.Y;
7607 float x3 = this.position.X;
7608 float y3 = this.position.Y;
7609 int num2 = this.netSpam;
7610 return;
7611 }
7612 int num13 = this.netSpam;
7613 }
class f__AnonymousType0<< Count > j__TPar
Vector2 oldPosition
Definition Entity.cs:466
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
bool boss
Definition NPC.cs:11486
int netSpam
Definition NPC.cs:11084
bool oldHomeless
Definition NPC.cs:11534
int aiStyle
Definition NPC.cs:11393
int oldHomeTileX
Definition NPC.cs:11537
bool netUpdate2
Definition NPC.cs:11477
int homeTileX
Definition NPC.cs:11525
int oldHomeTileY
Definition NPC.cs:11540
int netStream
Definition NPC.cs:11171
bool homeless
Definition NPC.cs:11522
int[] streamPlayer
Definition NPC.cs:11174
bool netUpdate
Definition NPC.cs:11474
bool townNPC
Definition NPC.cs:11519
int homeTileY
Definition NPC.cs:11528

References Terraria.Entity.active, Terraria.NPC.aiStyle, System.array, Terraria.NPC.boss, Terraria.NPC.homeless, Terraria.NPC.homeTileX, Terraria.NPC.homeTileY, j__TPar, Terraria.Main.NetHost, Terraria.NPC.netSpam, Terraria.NPC.netStream, Terraria.NPC.netUpdate, Terraria.NPC.netUpdate2, Terraria.NPC.oldHomeless, Terraria.NPC.oldHomeTileX, Terraria.NPC.oldHomeTileY, Terraria.Entity.oldPosition, Terraria.Entity.position, Terraria.NPC.streamPlayer, Terraria.NPC.townNPC, Terraria.NPC.type, Terraria.NPC.TypeToDefaultHeadIndex(), Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.