Example #1
0
 internal Player(Player player)
 {
     Appearance = new PlayerAppearance(player.Appearance);
     Health = new ValPidPair<short>(player.Health);
     Mana = new ValPidPair<short>(player.Mana);
     Buffs = new BuffList(player.Buffs);
     Inventory = new PlayerInventory(player.Inventory);
     PlayerId = player.PlayerId;
 }
 internal PlayerAppearance(PlayerAppearance value)
 {
     PlayerId = value.PlayerId;
     SkinVarient = value.SkinVarient;
     Hair = value.Hair;
     Name = value.Name;
     HairDye = value.HairDye;
     HideVisuals1 = value.HideVisuals1;
     HideVisuals2 = value.HideVisuals2;
     HideMisc = value.HideMisc;
     HairColor = value.HairColor;
     SkinColor = value.SkinColor;
     EyeColor = value.EyeColor;
     ShirtColor = value.ShirtColor;
     UnderShirtColor = value.UnderShirtColor;
     PantsColor = value.PantsColor;
     ShoeColor = value.ShoeColor;
     Difficulty = value.Difficulty;
 }
Example #3
0
 internal Player(PlayerAppearance appearance = null,
     ValPidPair<short> health = null, ValPidPair<short> mana = null,
     BuffList buffs = null, PlayerInventory inventory = null)
 {
     Appearance = appearance ?? new PlayerAppearance();
     Buffs = buffs ?? new BuffList();
     Inventory = inventory ?? new PlayerInventory();
     Health = health ?? new ValPidPair<short>(DefaultHp, DefaultHp);
     Mana = mana ?? new ValPidPair<short>(DefaultMana, DefaultMana);
 }