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

            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);
        }