Example #1
0
        void Events_Quit(object sender, QuitEventArgs e)
        {
            Console.Out.WriteLine("Quit requested");

            Quit();
            Events.QuitApplication();
        }
Example #2
0
 void Events_Quit(object sender, QuitEventArgs e)
 {
     MeleeMusic.Close();
     MeleeSound.Close();
     Events.QuitApplication();
     Application.Exit();
 }
Example #3
0
 private static void IrcClient_OnQuit(object sender, QuitEventArgs e)
 {
     world.Penalize(new Penalty()
     {
         PenaltyType = PenaltyType.Quit, Nick = e.Who
     });
 }
Example #4
0
 private void OnQuit(QuitEventArgs e)
 {
     if (Quit != null)
     {
         Quit(this, e);
     }
 }
Example #5
0
 void OnQuit(object sender, QuitEventArgs e)
 {
     Server.s.Log(e.Data.Nick + " has left IRC");
     Player.GlobalChat(null, Server.IRCColour + e.Data.Nick + Server.DefaultColor + " a quitte l'irc", false);
     irc.RfcNames(channel);
     irc.RfcNames(opchannel);
 }
Example #6
0
 internal void HandleOnQuit(object sender, QuitEventArgs e)
 {
     if (OnQuit != null)
     {
         OnQuit(this, e);
     }
 }
Example #7
0
 /// <summary>
 /// Processes a Quit event
 /// </summary>
 /// <param name="sender">Object that sent event</param>
 /// <param name="e">Event arguments</param>
 private void Update(object sender, QuitEventArgs e)
 {
     foreach (Sprite s in this)
     {
         s.Update(e);
     }
 }
Example #8
0
 private void OnUserQuit(object sender, QuitEventArgs e)
 {
     foreach (var channel in ChannelList)
     {
         channel.Value.RemoveUser(e.Identity.Nickname);
     }
 }
Example #9
0
 void ClientOnQuit(object sender, QuitEventArgs e)
 {
     _events.Enqueue(new IrcEvent {
         Type = IrcEvent.EventType.Quit, Event = e
     });
     _waitHandle.Set();
 }
Example #10
0
        private void Quit(object sender, QuitEventArgs e)
        {
            SdlMixer.Mix_CloseAudio();

            timer.Stop();
            Events.QuitApplication();
        }
 internal void OnShutdown(object u = null, QuitEventArgs au = null)
 {
     Debug.LogWarning("Discord services shutting down.");
     MasterActivityManager.ClearActivity((res) => { }); // no callback nescassary here
     MasterActivityManager = null;
     MasterDiscord.Dispose();
 }
Example #12
0
        /// <summary>
        /// Do not call. Button delegate only (NO REFERENCES)
        /// </summary>
        public void ErrorButtonOnClick()
        {
            switch (currentActionType)
            {
            case ActionType.ok:
                errorPopupGO.SetActive(false);
                if (inGameFlag)
                {
                    Time.timeScale = 1; Cursor.lockState = CursorLockMode.Locked;
                }
                break;

            case ActionType.quit:
                errorPopupGO.SetActive(false);
                break;

            case ActionType.saveAndQuit:
                errorPopupGO.SetActive(false);
                QuitEventArgs args = new QuitEventArgs();
                args.quitReason = QuitEventArgs.QuitReason.request;
                args.Requester  = "ErrorReporter.cs ErrorButonOnClick()";
                GetComponent <MasterMiscController>().InvokeApplicationQuitRequest(this, args);
                break;
            }
        }
Example #13
0
        private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
        {
            QuitEventArgs quit = new QuitEventArgs();

            OnQuit(quit);
            e.Cancel = quit.Cancel;
        }
Example #14
0
 void OnQuit(object sender, QuitEventArgs e)
 {
     Server.s.Log(Server.IRCColour + e.Data.Nick + "&g has quit IRC" + (!String.IsNullOrEmpty(e.QuitMessage) ? " (" + e.QuitMessage + ")" : ""));
     Player.GlobalChat(null, Server.IRCColour + e.Data.Nick + "&g has quit IRC" + (!String.IsNullOrEmpty(e.QuitMessage) ? " (" + e.QuitMessage + ")" : ""), false);
     irc.RfcNames(channel);
     irc.RfcNames(opchannel);
 }
Example #15
0
 /// <summary>
 /// Called when after the core application has quit.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="SdlDotNet.Core.QuitEventArgs"/> instance containing the event data.</param>
 public void OnAfterQuit(object sender, QuitEventArgs e)
 {
     if (AfterQuit != null)
     {
         AfterQuit(sender, e);
     }
 }
Example #16
0
 /// <summary>
 /// Called when the application is about to exit.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="SdlDotNet.Core.QuitEventArgs"/> instance containing the event data.</param>
 public void OnBeforeQuit(object sender, QuitEventArgs e)
 {
     if (BeforeQuit != null)
     {
         BeforeQuit(sender, e);
     }
 }
Example #17
0
 /// <summary>
 /// Ensures the application loop is properly shut down (this event must be included)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Quit(object sender, QuitEventArgs e)
 {
     if (SDLExitEvent != null)
     {
         SDLExitEvent();
     }
     Events.QuitApplication();
 }
Example #18
0
 void ircClient_OnQuit(object sender, QuitEventArgs e)
 {
     if (e.Data.Nick != m_Nick)
     {
         m_IRCClient.RfcNames(m_IRCChannel);
         System.Console.WriteLine(e.Data.Nick + " went Offline");
     }
 }
Example #19
0
    public void QuitGame()
    {
        QuitEventArgs args = new QuitEventArgs();

        args.quitReason = QuitEventArgs.QuitReason.request;
        args.Requester  = "MainMenu.cs QuitGame()";
        miscScriptContainer.GetComponent <MasterMiscController>().InvokeApplicationQuitRequest(this, args); // bruh for some reason i cant invoke outside mmc.
    }
Example #20
0
        /// <summary>
        /// Handles the Quit event of the Events control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="SdlDotNet.Core.QuitEventArgs"/> instance containing the event data.</param>
        void Events_Quit(object sender, QuitEventArgs e)
        {
            OnBeforeQuit(sender, e);

            MouseManager.Exit();
            Events.QuitApplication();
            Events.Close();

            OnAfterQuit(sender, e);
        }
Example #21
0
 void OnQuit(object sender, QuitEventArgs e)
 {
     try
     {
         Player.GlobalMessageDevs("To Devs: " + Server.GlobalChatColour + e.Data.Nick + "&g has quit the Global Chat IRC" + (!String.IsNullOrEmpty(e.QuitMessage) ? " (" + e.QuitMessage + ")" : ""));
         globalchat.RfcNames(channel);
         globalchat.RfcNames(devchannel);
     }
     catch (Exception ex) { Server.ErrorLog(ex); }
 }
Example #22
0
        // Callback for Builder QuitSignal
        private void OnQuit()
        {
            QuitEventArgs e = new QuitEventArgs();

            if (_builderQuitEventHandler != null)
            {
                //here we send all data to user event handlers
                _builderQuitEventHandler(this, e);
            }
        }
Example #23
0
        /// <summary>
        /// Verarbeitet das Verlassen eines Users des Servers
        /// </summary>
        /// <seealso cref="OnQuit"/>
        private void _connection_OnQuit(object sender, QuitEventArgs e)
        {
            Log.Information("{Nickname} hat den Server verlassen ({QuitMessage})", e.Who, e.QuitMessage);
            MaintainUser(e.Who);

            ThreadPool.QueueUserWorkItem(x =>
            {
                OnQuit?.Invoke(this, e);
            });
        }
Example #24
0
 /// <summary>
 /// Handles the IRC OnQuit event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">EventArgs.</param>
 void OnQuit(object sender, QuitEventArgs e)
 {
     if (OpList == null)
     {
         OpList = new Dictionary <string, string>();
     }
     if (OpList.ContainsKey(e.Who))
     {
         OpList.Remove(e.Who);
     }
 }
Example #25
0
        void ClientQuit(QuitEventArgs e)
        {
            var bot = Server.Bot(e.Who);

            if (bot != null)
            {
                bot.Connected   = false;
                bot.LastMessage = "quited";
                UpdateBot(bot);
                UpdateChannel(bot.Parent);
            }
        }
Example #26
0
        private void OnUserQuit(object sender, QuitEventArgs e)
        {
            foreach (var channel in Channels)
            {
                if (!Bootstrap.Client.ChannelList.GetChannel(channel.Key).HasUser(e.Identity.Nickname) || IsWhitelisted(e.Identity, channel.Key))
                {
                    continue;
                }

                ProcessQuit(e.Identity, channel.Key, channel.Value);
            }
        }
Example #27
0
        private static void OnQuit(object sender, QuitEventArgs e)
        {
            crcNicks.Remove(e.Who);
            Users.Remove(e.Who);
            Users.Sort();
            CRCDisplay.UpdateUsers();
            CRCGame.UpdateUsers();
            string message = e.Who + CRCStrings.Localize("client_part");

            CRCDisplay.AddInformation(message);
            CRCGame.AddInformation(message);
        }
Example #28
0
 public override bool OnUserQuit(object sender, QuitEventArgs e)
 {
     if (Environment.OSVersion.Platform == PlatformID.Unix || Environment.OSVersion.Platform == PlatformID.MacOSX)
     {
         if (this.ReviveBot && sender == this.ArenaConnection && ((IrcClient)sender).CaseMappingComparer.Equals(e.Sender.Nickname, this.ArenaNickname) &&
             e.Message.StartsWith("Ping timeout"))
         {
             // The bot has crashed. We'd better revive it.
             Task.Run(new Action(this.ReviveArenaBot));
         }
     }
     return(base.OnUserQuit(sender, e));
 }
        private void ApplicationQuitRequest(object unused, QuitEventArgs args)
        {
            switch (args.quitReason)
            {
            case QuitEventArgs.QuitReason.request:
                WriteData();
                break;

            case QuitEventArgs.QuitReason.force:
                WriteData();
                break;
            }
        }
Example #30
0
        private void OnQuitEvent(object sender, QuitEventArgs e)
        {
            List <string> appliedExemptionsKeys;

            lock (this.appliedExemptions)
            {
                appliedExemptionsKeys = this.appliedExemptions.Keys.ToList();
            }

            foreach (var channel in appliedExemptionsKeys)
            {
                this.RemoveExemption(channel, e.User);
            }
        }
Example #31
0
        void Events_Quit(object sender, QuitEventArgs e)
        {
            Console.Out.WriteLine("Quit requested");

            Quit();
            Events.QuitApplication();
        }
 void Quit(object source, QuitEventArgs e)
 {
     Shutdown();
 }
Example #33
0
 private static void OnQuit(object sender, QuitEventArgs quitEventArgs)
 {
     var information = MethodBase.GetCurrentMethod().Name;
     try
     {
         var serverUser = GetServerUser(sender);
         Trace.WriteLine(information, serverUser.ToString());
     }
     catch (Exception ex)
     {
         Console.WriteLine("{0} exception {1}", information, ex.Message);
     }
 }
Example #34
0
	void Quit (object sender, QuitEventArgs e)
	{
		Events.QuitApplication();
	}
Example #35
0
 void Quit( object source, QuitEventArgs e )
 {
     System.Environment.Exit(0);
 }