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

◆ TransformVisuals()

void Terraria.NPC.TransformVisuals ( int oldType,
int newType )
inline

Definition at line 6714 of file NPC.cs.

6715 {
6716 int num = 1;
6717 float x = this.position.X;
6718 float y = this.position.Y;
6719 float x2 = this.netOffset.X;
6720 float y2 = this.netOffset.Y;
6721 if (num == 0)
6722 {
6723 }
6724 if (num == 0)
6725 {
6726 float x3 = this.position.X;
6727 float y3 = this.position.Y;
6728 }
6729 float x4 = this.position.X;
6730 float y4 = this.position.Y;
6731 float x5 = this.velocity.X;
6732 float y5 = this.velocity.Y;
6733 float num2 = this.scale;
6734 if (num == 0)
6735 {
6736 }
6737 int height = this.height;
6738 float x6 = this.position.X;
6739 float y6 = this.position.Y;
6740 float x7 = this.velocity.X;
6741 float y7 = this.velocity.Y;
6742 float num3 = this.scale;
6743 int height2 = this.height;
6744 float x8 = this.position.X;
6745 float y8 = this.position.Y;
6746 float x9 = this.velocity.X;
6747 float y9 = this.velocity.Y;
6748 float num4 = this.scale;
6749 float x10 = this.position.X;
6750 float y10 = this.position.Y;
6751 float x11 = this.netOffset.X;
6752 float y11 = this.netOffset.Y;
6754 this.position.Y = (float)height2;
6755 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Vector2 netOffset
Definition NPC.cs:11129
float scale
Definition NPC.cs:11453

References Terraria.Entity.height, j__TPar, Terraria.NPC.netOffset, Terraria.Entity.position, Terraria.NPC.scale, Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.