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) { ++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); } }
/// <summary> /// Calls info.Fail /// </summary> /// <param name="info"></param> public void BeforeJoin(IBeforeJoinGameCallInfo info) { info.Fail(this.errorMsg); }
/// <summary> /// Calls info.Fail /// </summary> /// <param name="info"></param> public void BeforeJoin(IBeforeJoinGameCallInfo info) { info.Fail(this.errorMsg); }