예제 #1
0
 public override void OnRegister()
 {
     base.OnRegister();
     this.View.ButtonAddListening(this.View.CloseButton,
                                  () =>
     {
         HallProxy hallProxy       = Facade.RetrieveProxy(Proxys.HALL_PROXY) as HallProxy;
         CancelMatchingC2S package = new CancelMatchingC2S();
         package.roomType          = (int)hallProxy.HallInfo.CompetitionRule;
         package.roomRounds        = (int)hallProxy.HallInfo.CompetitionRound;
         NetMgr.Instance.SendBuff <CancelMatchingC2S>(SocketType.HALL, MsgNoC2S.REQUEST_CANCELMATCHING_C2S.GetHashCode(), 0, package);
     });
     this.InitTimer();
 }
예제 #2
0
 public override void OnRegister()
 {
     base.OnRegister();
     this.View.ButtonAddListening(this.View.CloseButton,
                                  () =>
     {
         HallProxy hallProxy         = Facade.RetrieveProxy(Proxys.HALL_PROXY) as HallProxy;
         CancelMatchingC2S package   = new CancelMatchingC2S();
         hallProxy.HallInfo.gameRule = GameRule.ARENA;
         hallProxy.HallInfo.innings  = GameMode.ONE;
         package.roomType            = (int)hallProxy.HallInfo.gameRule;
         package.roomRounds          = (int)hallProxy.HallInfo.innings;
         NetMgr.Instance.SendBuff <CancelMatchingC2S>(SocketType.HALL, MsgNoC2S.C2S_Hall_Cancel_Match.GetHashCode(), 0, package);
     });
     this.InitTimer();
 }