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); }
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); }
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; }
public static void Initialize() { castSpell = Helper.Magic.RegisterDelegate<CastSpellDelegate>(Offsets.CastSpell); getSpellCooldown = Helper.Magic.RegisterDelegate<GetSpellCooldownDelegate>(Offsets.GetSpellCooldown); }