示例#1
0
        public void Dispose()
        {
            _discordPresenceManager?.Dispose();

            _pi.CommandManager.RemoveHandler("/prp");
            _pi.Dispose();
        }
示例#2
0
        public void Dispose()
        {
            _pi.Framework.OnUpdateEvent      -= Framework_OnUpdateEvent;
            _pi.ClientState.TerritoryChanged -= TerritoryChanged;
            _discordPresenceManager?.Dispose();

            _pi.CommandManager.RemoveHandler("/prp");
            _pi.Dispose();
        }
示例#3
0
        public void Dispose()
        {
            DalamudPluginInterface.LanguageChanged -= ReregisterCommand;
            UnregisterCommand();

            ClientState.Login            -= State_Login;
            ClientState.TerritoryChanged -= State_TerritoryChanged;
            ClientState.Logout           -= State_Logout;

            Framework.Update -= UpdateRichPresence;

            DalamudPluginInterface.UiBuilder.OpenConfigUi -= RichPresenceConfigWindow.Open;
            DalamudPluginInterface.UiBuilder.Draw         -= RichPresenceConfigWindow.DrawRichPresenceConfigWindow;

            LocalizationManager?.Dispose();

            DiscordPresenceManager.ClearPresence();
            DiscordPresenceManager?.Dispose();

            IpcManager?.Dispose();
        }