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

◆ CopyVisuals()

void Terraria.Player.CopyVisuals ( Player other)
inline

Definition at line 18294 of file Player.cs.

18295 {
18296 int num = other.skinVariant;
18297 this.skinVariant = num;
18298 int direction = other.direction;
18300 int num2 = other.selectedItem;
18302 bool flag = other.extraAccessory;
18303 this.extraAccessory = flag;
18305 this.skinColor = color;
18308 int num3 = other.hair;
18309 this.hair = num3;
18324 int num4 = other.statLife;
18326 int num5 = other.statLifeMax;
18328 int num6 = other.statLifeMax2;
18330 int num7 = other.statMana;
18332 int num8 = other.statManaMax2;
18334 BitsByte bitsByte = other.hideMisc;
18336 Item[] array = other.inventory;
18337 Item[] array2 = this.inventory;
18339 Item item;
18340 if (item == null || item != null)
18341 {
18342 Item[] array3 = this.armor;
18344 Item item2;
18345 if (item2 == null || item2 != null)
18346 {
18347 Item[] array4 = this.dye;
18349 Item item3;
18350 if (item3 == null || item3 != null)
18351 {
18352 Item[] array5 = this.miscEquips;
18353 Microsoft.Xna.Framework.Vector2 position5 = other.miscEquips.position;
18354 Item item4;
18355 if (item4 == null || item4 != null)
18356 {
18357 Item[] array6 = this.miscDyes;
18359 Item item5;
18360 if (item5 == null || item5 != null)
18361 {
18362 bool[] array7 = this.hideVisibleAccessory;
18363 bool[] array8 = other.hideVisibleAccessory;
18364 return;
18365 }
18366 }
18367 }
18368 }
18369 }
18370 throw new ArrayTypeMismatchException();
18371 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Item[] miscEquips
Definition Player.cs:21134
bool[] hideVisibleAccessory
Definition Player.cs:21431
Item[] miscDyes
Definition Player.cs:21137
Item[] inventory
Definition Player.cs:21263

References Terraria.Player.armor, System.array, Terraria.Entity.direction, Terraria.Player.dye, Terraria.Player.hideVisibleAccessory, Terraria.Player.inventory, System.item, j__TPar, Terraria.Player.miscDyes, Terraria.Player.miscEquips, Terraria.Entity.position, and Terraria.Entity.velocity.

Referenced by Terraria.GameContent.Animations.Segments.PlayerSegment.ResetPlayerAnimation().