public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     if (!this.PluginHost.GameId.EndsWith("BeforeJoinForgotCall"))
     {
         base.BeforeJoin(info);
     }
 }
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     if (!this.PluginHost.GameId.EndsWith("BeforeJoinForgotCall"))
     {
         base.BeforeJoin(info);
     }
 }
Пример #3
0
 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");
 }
Пример #4
0
        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);
            }
        }
Пример #5
0
        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);
            }
        }
Пример #6
0
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     if (this.doSyncHttpAndTimer)
     {
         return;
     }
     this.MethodBody(info, MethodBase.GetCurrentMethod().Name);
 }
Пример #7
0
        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());
        }
Пример #8
0
 public void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     try
     {
         this.Plugin.BeforeJoin(info);
         this.StrictModeCheck(info);
     }
     catch (Exception e)
     {
         this.ExceptionHanlder(info, e);
     }
 }
Пример #9
0
 /// <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);
            }
        }
        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);
            }
        }
Пример #12
0
 /// <summary>
 /// Calls info.Fail
 /// </summary>
 /// <param name="info"></param>
 public void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     info.Fail(this.errorMsg);
 }
Пример #13
0
 /// <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();
 }
Пример #14
0
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     this.onBeforeJoinEvent.Set();
     info.Continue();
 }
Пример #15
0
 /// <summary>
 /// Calls info.Fail
 /// </summary>
 /// <param name="info"></param>
 public void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     info.Fail(this.errorMsg);
 }
Пример #16
0
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     this.BeforeJoinBeforeContinueFail(info);
     base.BeforeJoin(info);
     this.BeforeJoinAfterContinueFail(info);
 }
Пример #17
0
 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);
 }
Пример #20
0
 /// <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.BeforeJoinBeforeContinueFail(info);
     base.BeforeJoin(info);
     this.BeforeJoinAfterContinueFail(info);
 }
Пример #22
0
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     this.PluginHost.LogInfo("Joining player " + info.UserId);
     base.BeforeJoin(info);
 }
Пример #23
0
 /// <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());
     }
 }
Пример #24
0
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     this.MethodBody(info, MethodBase.GetCurrentMethod().Name);
 }
Пример #25
0
 public override void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     this.onBeforeJoinEvent.Set();
     info.Continue();
 }
Пример #26
0
 private void BeforeJoinBeforeContinueFail(IBeforeJoinGameCallInfo info)
 {
     this.GenerateExceptionIf(info.Nickname, "BeforeJoinBeforeContinueFail");
 }
Пример #27
0
 /// <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();
 }
Пример #28
0
 private void CheckIBeforeJoinGameCallInfo(IBeforeJoinGameCallInfo info)
 {
     this.CheckBaseInfo(info);
     CheckIJoinGameRequest(info.Request);
 }