Exemplo 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];
        }
Exemplo n.º 2
0
 ///<summary>Sets the bot players buffs</summary>
 public void SetBuffs(BuffList buffs)
 {
     Buffs = buffs ?? new BuffList();
     Client.Send(TerrPacketType.UpdatePlayerBuff, Buffs.CreatePayload());
 }
Exemplo 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);
 }
Exemplo 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;
 }