Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CopyVisuals()

void Terraria.Player.CopyVisuals ( Player other)
inline

Definition at line 50885 of file Player.cs.

50886 {
50887 skinVariant = other.skinVariant;
50888 direction = other.direction;
50889 selectedItem = other.selectedItem;
50890 extraAccessory = other.extraAccessory;
50891 skinColor = other.skinColor;
50892 eyeColor = other.eyeColor;
50893 hair = other.hair;
50894 hairColor = other.hairColor;
50895 shirtColor = other.shirtColor;
50896 underShirtColor = other.underShirtColor;
50897 pantsColor = other.pantsColor;
50898 shoeColor = other.shoeColor;
50899 position = other.position;
50900 velocity = other.velocity;
50901 statLife = other.statLife;
50902 statLifeMax = other.statLifeMax;
50903 statLifeMax2 = other.statLifeMax2;
50904 statMana = other.statMana;
50905 statManaMax = other.statManaMax;
50906 statManaMax2 = other.statManaMax2;
50907 hideMisc = other.hideMisc;
50908 for (int i = 0; i < 59; i++)
50909 {
50910 inventory[i] = other.inventory[i].Clone();
50911 if (i < armor.Length)
50912 {
50913 armor[i] = other.armor[i].Clone();
50914 }
50915 if (i < dye.Length)
50916 {
50917 dye[i] = other.dye[i].Clone();
50918 }
50919 if (i < miscEquips.Length)
50920 {
50921 miscEquips[i] = other.miscEquips[i].Clone();
50922 }
50923 if (i < miscDyes.Length)
50924 {
50925 miscDyes[i] = other.miscDyes[i].Clone();
50926 }
50927 if (i < hideVisibleAccessory.Length)
50928 {
50929 hideVisibleAccessory[i] = other.hideVisibleAccessory[i];
50930 }
50931 }
50932 }
Vector2 velocity
Definition Entity.cs:16
Vector2 position
Definition Entity.cs:14
Item Clone()
Definition Item.cs:49916
byte dye
Definition Item.cs:95
Color hairColor
Definition Player.cs:2133
Color underShirtColor
Definition Player.cs:2141
Color shirtColor
Definition Player.cs:2139
BitsByte hideMisc
Definition Player.cs:1369
Item[] miscEquips
Definition Player.cs:1171
Color skinColor
Definition Player.cs:2135
Color pantsColor
Definition Player.cs:2143
bool extraAccessory
Definition Player.cs:659
bool[] hideVisibleAccessory
Definition Player.cs:1367
Item[] miscDyes
Definition Player.cs:1173
Color shoeColor
Definition Player.cs:2145
Item[] inventory
Definition Player.cs:1257

References Terraria.Item.Clone(), Terraria.Item.dye, and System.other.

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