public override void BeforeCloseGame(IBeforeCloseGameCallInfo info) { ++this.CallsCount; try { this.CheckIBeforeCloseGameCallInfo(info); this.CheckBeforeBeforeCloseGame(); } catch (Exception e) { info.Fail(e.ToString()); return; } try { base.BeforeCloseGame(info); this.CheckAfterBeforeCloseGame(); } catch (Exception e) { this.PluginHost.BroadcastErrorInfoEvent(e.ToString(), info); } }
public void BeforeCloseGame(IBeforeCloseGameCallInfo info) { try { this.Plugin.BeforeCloseGame(info); this.StrictModeCheck(info); } catch (Exception e) { this.ExceptionHanlder(info, e); } }
/// <summary> /// Plugin callback called when a game instance is about to be removed from Photon servers memory. /// </summary> /// <param name="info">Data passed in the callback call.</param> void IGamePlugin.BeforeCloseGame(IBeforeCloseGameCallInfo info) { try { this.BeforeCloseGame(info); this.StrictModeCheck(info); } catch (Exception e) { ((IGamePlugin)this).ReportError(ErrorCodes.UnhandledException, e); CallFailSafe(info, e.ToString()); } }
public override void BeforeCloseGame(IBeforeCloseGameCallInfo info) { this.onBeforeCloseEvent.Set(); if (this.PluginHost.GameId.EndsWith("OnBeforeCloseForgotCall")) { return; } if (this.PluginHost.GameId.EndsWith("StopCloseGameIfThereIsActive")) { this.allowContinueEvent.WaitOne(); } var property = (string)this.PluginHost.GameProperties["key"]; if (property != null && (property == "BeforeCloseGameException" || property == "CloseFatalPlugin")) { throw new Exception("BeforeCloseGameException for test"); } info.Continue(); }
/// <summary> /// Calls info.Continue(). Override to change. /// </summary> /// <param name="info">Data passed in the callback call.</param> public virtual void BeforeCloseGame(IBeforeCloseGameCallInfo info) { info.Continue(); }
/// <summary> /// Calls info.Continue /// </summary> /// <param name="info"></param> public void BeforeCloseGame(IBeforeCloseGameCallInfo info) { info.Continue(); }
public override void BeforeCloseGame(IBeforeCloseGameCallInfo info) { base.BeforeCloseGame(info); }
/// <summary> /// Plugin callback called when a game instance is about to be removed from Photon servers memory. /// </summary> /// <param name="info">Data passed in the callback call.</param> void IGamePlugin.BeforeCloseGame(IBeforeCloseGameCallInfo info) { this.BeforeCloseGame(info); }
public override void BeforeCloseGame(IBeforeCloseGameCallInfo info) { this.PluginHost.LogInfo("Closing game. Player " + info.UserId); base.BeforeCloseGame(info); }
public override void BeforeCloseGame(IBeforeCloseGameCallInfo info) { this.MethodBody(info, MethodBase.GetCurrentMethod().Name); }
private void CheckIBeforeCloseGameCallInfo(IBeforeCloseGameCallInfo info) { this.CheckBaseInfo(info); Assert.AreEqual(0, info.Request.EmptyRoomTTL); }