void Events_Quit(object sender, QuitEventArgs e) { Console.Out.WriteLine("Quit requested"); Quit(); Events.QuitApplication(); }
void Events_Quit(object sender, QuitEventArgs e) { MeleeMusic.Close(); MeleeSound.Close(); Events.QuitApplication(); Application.Exit(); }
private static void IrcClient_OnQuit(object sender, QuitEventArgs e) { world.Penalize(new Penalty() { PenaltyType = PenaltyType.Quit, Nick = e.Who }); }
private void OnQuit(QuitEventArgs e) { if (Quit != null) { Quit(this, e); } }
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); }
internal void HandleOnQuit(object sender, QuitEventArgs e) { if (OnQuit != null) { OnQuit(this, e); } }
/// <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); } }
private void OnUserQuit(object sender, QuitEventArgs e) { foreach (var channel in ChannelList) { channel.Value.RemoveUser(e.Identity.Nickname); } }
void ClientOnQuit(object sender, QuitEventArgs e) { _events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.Quit, Event = e }); _waitHandle.Set(); }
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(); }
/// <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; } }
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) { QuitEventArgs quit = new QuitEventArgs(); OnQuit(quit); e.Cancel = quit.Cancel; }
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); }
/// <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); } }
/// <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); } }
/// <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(); }
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"); } }
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. }
/// <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); }
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); } }
// 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); } }
/// <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); }); }
/// <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); } }
void ClientQuit(QuitEventArgs e) { var bot = Server.Bot(e.Who); if (bot != null) { bot.Connected = false; bot.LastMessage = "quited"; UpdateBot(bot); UpdateChannel(bot.Parent); } }
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); } }
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); }
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; } }
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); } }
void Quit(object source, QuitEventArgs e) { Shutdown(); }
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); } }
void Quit (object sender, QuitEventArgs e) { Events.QuitApplication(); }
void Quit( object source, QuitEventArgs e ) { System.Environment.Exit(0); }