Пример #1
0
        public static void Initialize()
        {
            _performanceCounter = Magic.RegisterDelegate <PerformanceCounterDelegate>(Offsets.PerformanceCounter);
            _castSpell          = Magic.RegisterDelegate <CastSpellDelegate>(Offsets.CastSpell);

            Events.Register("PLAYER_REGEN_DISABLED", SetInCombat);
            Events.Register("PLAYER_REGEN_ENABLED", UnsetInCombat);
        }
Пример #2
0
        public static void Initialize()
        {
            _performanceCounter = Magic.RegisterDelegate<PerformanceCounterDelegate>(Offsets.PerformanceCounter);
            _castSpell = Magic.RegisterDelegate<CastSpellDelegate>(Offsets.CastSpell);

            Events.Register("PLAYER_REGEN_DISABLED", SetInCombat);
            Events.Register("PLAYER_REGEN_ENABLED", UnsetInCombat);
        }
Пример #3
0
        public SpellCollection()
        {
            _castSpell        = Manager.Memory.RegisterDelegate <CastSpellDelegate>((IntPtr)Pointers.Spell.CastSpell);
            _getSpellCooldown =
                Manager.Memory.RegisterDelegate <GetSpellCooldownDelegate>((IntPtr)Pointers.Spell.GetSpellCooldown);

            KnownSpells = new List <WoWSpell>();
            Update      = true;
        }
Пример #4
0
 public static void Initialize()
 {
     castSpell = Helper.Magic.RegisterDelegate<CastSpellDelegate>(Offsets.CastSpell);
     getSpellCooldown = Helper.Magic.RegisterDelegate<GetSpellCooldownDelegate>(Offsets.GetSpellCooldown);
 }