示例#1
0
        public override void Initialize()
        {
            LatestVersion = Helpers.Version.CheckVersion();

            Helpers.Logger.PrintLog("You are using Version {0} of GGWP", Helpers.Version.CurrentLocalVersion.ToString());

            if (!LatestVersion)
            {
                Helpers.Logger.PrintLog(Colors.Red, "There is a new Version of Wrathful Paladin available, go to https://github.com/oruna/paladin-cr/ and download the latest Version");
            }

            HotkeysManager.Initialize(StyxWoW.Memory.Process.MainWindowHandle);
            PaladinSettings.Instance.Load();

            Lua.Events.AttachEvent("PLAYER_REGEN_DISABLED", OnCombatStarted);
            Lua.Events.AttachEvent("UPDATE_BATTLEFIELD_STATUS", BGArena);

            Hotkeys.RegisterHotkeys();
            Talents.Init();
        }