示例#1
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);
            }
        }
示例#2
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);
            }
        }
        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);
            }
        }
示例#4
0
 /// <summary>
 /// Calls info.Fail
 /// </summary>
 /// <param name="info"></param>
 public void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     info.Fail(this.errorMsg);
 }
示例#5
0
 /// <summary>
 /// Calls info.Fail
 /// </summary>
 /// <param name="info"></param>
 public void BeforeJoin(IBeforeJoinGameCallInfo info)
 {
     info.Fail(this.errorMsg);
 }