Пример #1
0
 public PetManager(WowUnit pet, TimeSpan healPetCooldown, CastMendPetFunction castMendPetFunction, CastCallPetFunction castCallPetFunction, CastRevivePetFunction castRevivePetFunction)
 {
     Pet = pet;
     HealPetCooldown = healPetCooldown;
     CastMendPet = castMendPetFunction;
     CastCallPet = castCallPetFunction;
     CastRevivePet = castRevivePetFunction;
 }
Пример #2
0
        public PetManager(WowInterface wowInterface, TimeSpan healPetCooldown, CastMendPetFunction castMendPetFunction, CastCallPetFunction castCallPetFunction, CastRevivePetFunction castRevivePetFunction)
        {
            WowInterface    = wowInterface;
            HealPetCooldown = healPetCooldown;
            CastMendPet     = castMendPetFunction;
            CastCallPet     = castCallPetFunction;
            CastRevivePet   = castRevivePetFunction;

            CallPetEvent = new TimegatedEvent(TimeSpan.FromSeconds(8));
        }