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

◆ CopyVisuals()

void Terraria.Player.CopyVisuals ( Player other)
inline

Definition at line 55041 of file Player.cs.

55042 {
55043 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
55044 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
55045 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
55046 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
55047 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
55048 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
55049 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
55050 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
55051 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
55052 //IL_0073: Unknown result type (might be due to invalid IL or missing references)
55053 //IL_007a: Unknown result type (might be due to invalid IL or missing references)
55054 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
55055 //IL_0086: Unknown result type (might be due to invalid IL or missing references)
55056 //IL_008b: Unknown result type (might be due to invalid IL or missing references)
55057 //IL_0092: Unknown result type (might be due to invalid IL or missing references)
55058 //IL_0097: Unknown result type (might be due to invalid IL or missing references)
55059 //IL_009e: Unknown result type (might be due to invalid IL or missing references)
55060 //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
55061 skinVariant = other.skinVariant;
55062 direction = other.direction;
55063 selectedItem = other.selectedItem;
55064 extraAccessory = other.extraAccessory;
55065 skinColor = other.skinColor;
55066 eyeColor = other.eyeColor;
55067 hair = other.hair;
55068 hairColor = other.hairColor;
55069 shirtColor = other.shirtColor;
55070 underShirtColor = other.underShirtColor;
55071 pantsColor = other.pantsColor;
55072 shoeColor = other.shoeColor;
55073 position = other.position;
55074 velocity = other.velocity;
55075 statLife = other.statLife;
55076 statLifeMax = other.statLifeMax;
55077 statLifeMax2 = other.statLifeMax2;
55078 statMana = other.statMana;
55079 statManaMax = other.statManaMax;
55080 statManaMax2 = other.statManaMax2;
55081 hideMisc = other.hideMisc;
55082 for (int i = 0; i < 59; i++)
55083 {
55084 inventory[i] = other.inventory[i].Clone();
55085 if (i < armor.Length)
55086 {
55087 armor[i] = other.armor[i].Clone();
55088 }
55089 if (i < dye.Length)
55090 {
55091 dye[i] = other.dye[i].Clone();
55092 }
55093 if (i < miscEquips.Length)
55094 {
55095 miscEquips[i] = other.miscEquips[i].Clone();
55096 }
55097 if (i < miscDyes.Length)
55098 {
55099 miscDyes[i] = other.miscDyes[i].Clone();
55100 }
55101 if (i < hideVisibleAccessory.Length)
55102 {
55103 hideVisibleAccessory[i] = other.hideVisibleAccessory[i];
55104 }
55105 }
55106 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int statLifeMax2
The maximum health this player can have, adjusted by buffs and equipment.
Definition Player.cs:2092
Color hairColor
Definition Player.cs:2715
int statManaMax2
The maximum mana this player can have, adjusted by buffs and equipment.
Definition Player.cs:2122
Color underShirtColor
Definition Player.cs:2723
int statManaMax
The maximum mana this player can have without adjustment. You should not modify this value....
Definition Player.cs:2117
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
Definition Player.cs:1651
Color shirtColor
Definition Player.cs:2721
int statLife
The current health of this player. Capped at F:Terraria.Player.statLifeMax2. If you increase this v...
Definition Player.cs:2102
BitsByte hideMisc
Definition Player.cs:1882
Item[] miscEquips
The player's equipment items. From indexes 0-4: Pet, Light Pet, Minecart, Mount, and Hook.
Definition Player.cs:1658
Color skinColor
Definition Player.cs:2717
Color pantsColor
Definition Player.cs:2725
bool extraAccessory
Definition Player.cs:1071
bool[] hideVisibleAccessory
Definition Player.cs:1880
Item[] miscDyes
Definition Player.cs:1660
int statLifeMax
The maximum health this player can have without adjustment. You should not modify this value....
Definition Player.cs:2087
Color shoeColor
Definition Player.cs:2727
int statMana
The current mana of this player. Capped at F:Terraria.Player.statManaMax2. If you increase this val...
Definition Player.cs:2111
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767

References Terraria.Player.armor, Terraria.Entity.direction, Terraria.Player.dye, Terraria.Player.extraAccessory, Terraria.Player.eyeColor, Terraria.Player.hair, Terraria.Player.hairColor, Terraria.Player.hideMisc, Terraria.Player.hideVisibleAccessory, Terraria.Player.inventory, Terraria.Player.miscDyes, Terraria.Player.miscEquips, Terraria.Player.pantsColor, Terraria.Entity.position, Terraria.Player.selectedItem, Terraria.Player.shirtColor, Terraria.Player.shoeColor, Terraria.Player.skinColor, Terraria.Player.skinVariant, Terraria.Player.statLife, Terraria.Player.statLifeMax, Terraria.Player.statLifeMax2, Terraria.Player.statMana, Terraria.Player.statManaMax, Terraria.Player.statManaMax2, Terraria.Player.underShirtColor, and Terraria.Entity.velocity.

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

+ Here is the caller graph for this function: