public override void BeforeJoin(IBeforeJoinGameCallInfo info) { if (!this.PluginHost.GameId.EndsWith("BeforeJoinForgotCall")) { base.BeforeJoin(info); } }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { Loger.LogTagFormat(Loger.TagPlugin, "BeforeJoin===============BEGIN"); Loger.LogTagFormat(Loger.TagPlugin, info.ToStr()); base.BeforeJoin(info); Loger.LogTagFormat(Loger.TagPlugin, "BeforeJoin---------------END"); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { ++this.CallsCount; try { this.CheckIBeforeJoinGameCallInfo(info); this.CheckBeforeJoinPreContinue(); } catch (Exception e) { info.Fail(e.ToString()); return; } try { base.BeforeJoin(info); this.CheckBeforeJoinPostContinue(); } catch (Exception e) { this.PluginHost.BroadcastErrorInfoEvent(e.ToString(), info); } }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { var res = this.CheckBeforeBeforeJoin(); if (!string.IsNullOrEmpty(res)) { info.Fail(res); if (this.PluginHost.GameActors.Count != 1) { this.PluginHost.BroadcastErrorInfoEvent("this.PluginHost.GameActors.Count != 1", info); } return; } base.BeforeJoin(info); try { this.CheckAfterBeforeJoin(); } catch (Exception e) { this.PluginHost.BroadcastErrorInfoEvent(e.ToString(), info); } }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { if (this.doSyncHttpAndTimer) { return; } this.MethodBody(info, MethodBase.GetCurrentMethod().Name); }
public static string ToStr(this IBeforeJoinGameCallInfo info) { StringBuilder builder = new StringBuilder(); builder.AppendLine("IBeforeJoinGameCallInfo =========== BEGIN"); builder.AppendLine(((ITypedCallInfo <IJoinGameRequest>)info).ToStr <IJoinGameRequest>()); builder.AppendLine(((ICallInfo)info).ToStr()); builder.AppendLine("IBeforeJoinGameCallInfo ----------- END"); return(builder.ToString()); }
public void BeforeJoin(IBeforeJoinGameCallInfo info) { try { this.Plugin.BeforeJoin(info); this.StrictModeCheck(info); } catch (Exception e) { this.ExceptionHanlder(info, e); } }
/// <summary> /// Plugin callback called when a peer is about to join a room. /// This is triggered by Op Join when a game instance is in Photon servers memory. /// </summary> /// <param name="info">Data passed in the callback call.</param> void IGamePlugin.BeforeJoin(IBeforeJoinGameCallInfo info) { try { this.BeforeJoin(info); this.StrictModeCheck(info); } catch (Exception e) { ((IGamePlugin)this).ReportError(ErrorCodes.UnhandledException, e); CallFailSafe(info, e.ToString()); } }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { if (this.PluginHost.GameId.Contains("SetBeforeJoinBeforeContinue")) { this.PluginHost.SetProperties(2, new Hashtable { { "xxx", true } }, null, true); } base.BeforeJoin(info); if (this.PluginHost.GameId.Contains("SetBeforeJoinAfterContinue")) { this.PluginHost.SetProperties(2, new Hashtable { { "xxx", true } }, null, true); } }
/// <summary> /// Calls info.Fail /// </summary> /// <param name="info"></param> public void BeforeJoin(IBeforeJoinGameCallInfo info) { info.Fail(this.errorMsg); }
/// <summary> /// Calls info.Continue(). Override to change. /// </summary> /// <param name="info">Data passed in the callback call.</param> public virtual void BeforeJoin(IBeforeJoinGameCallInfo info) { System.Diagnostics.Debug.Assert(this.PluginHost != null); info.Continue(); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { this.onBeforeJoinEvent.Set(); info.Continue(); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { this.BeforeJoinBeforeContinueFail(info); base.BeforeJoin(info); this.BeforeJoinAfterContinueFail(info); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { base.BeforeJoin(info); }
private void BeforeJoinAfterContinueFail(IBeforeJoinGameCallInfo info) { this.GenerateExceptionIf(info.Nickname, "BeforeJoinAfterContinueFail"); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { PluginHost.LogDebug(string.Format("BeforeJoin {0}", info)); base.BeforeJoin(info); }
/// <summary> /// Plugin callback called when a peer is about to join a room. /// This is triggered by Op Join when a game instance is in Photon servers memory. /// </summary> /// <param name="info">Data passed in the callback call.</param> void IGamePlugin.BeforeJoin(IBeforeJoinGameCallInfo info) { this.BeforeJoin(info); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { this.PluginHost.LogInfo("Joining player " + info.UserId); base.BeforeJoin(info); }
public override void BeforeJoin(IBeforeJoinGameCallInfo info) { this.MethodBody(info, MethodBase.GetCurrentMethod().Name); }
private void BeforeJoinBeforeContinueFail(IBeforeJoinGameCallInfo info) { this.GenerateExceptionIf(info.Nickname, "BeforeJoinBeforeContinueFail"); }
private void CheckIBeforeJoinGameCallInfo(IBeforeJoinGameCallInfo info) { this.CheckBaseInfo(info); CheckIJoinGameRequest(info.Request); }