Esempio n. 1
0
        public BuffList(BuffList value)
        {
            PlayerId = value.PlayerId;

            InternalBuffs = new byte[MaxBuffs];
            for (byte i = 0; i < MaxBuffs; i++)
                InternalBuffs[i] = value.InternalBuffs[i];
        }
 ///<summary>Sets the bot players buffs</summary>
 public void SetBuffs(BuffList buffs)
 {
     Buffs = buffs ?? new BuffList();
     Client.Send(TerrPacketType.UpdatePlayerBuff, Buffs.CreatePayload());
 }
Esempio n. 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);
 }
Esempio n. 4
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;
 }