Пример #1
0
        public void StartBattle(IColosseumMatchingInfo matchingInfo)
        {
            PvPBattleStart startBattleRequest = matchingInfo.GetStartBattleRequest();

            this.messageBuffer.Clear();
            this.messageBuffer.Add("080108", startBattleRequest);
            Singleton <TCPUtil> .Instance.SendTCPRequest(this.messageBuffer, "activityList");
        }
Пример #2
0
        public void StopMatching(IColosseumMatchingInfo matchingInfo)
        {
            PvPMatching stopMatchingRequest = matchingInfo.GetStopMatchingRequest();

            this.messageBuffer.Clear();
            this.messageBuffer.Add("080106", stopMatchingRequest);
            Singleton <TCPUtil> .Instance.SendTCPRequest(this.messageBuffer, "activityList");
        }
Пример #3
0
        public void ResumeMatching(IColosseumMatchingInfo matchingInfo)
        {
            PvPBattleRecover resumeMatchingRequest = matchingInfo.GetResumeMatchingRequest();

            this.messageBuffer.Clear();
            this.messageBuffer.Add("080112", resumeMatchingRequest);
            Singleton <TCPUtil> .Instance.SendTCPRequest(this.messageBuffer, "activityList");
        }
Пример #4
0
 public ColosseumMatchingNetwork(IColosseumMatchingInfo info, ColosseumMatchingEventListener listener)
 {
     this.matchingInfo      = info;
     this.eventListener     = listener;
     this.httpAPI           = new ColosseumMatchingNetworkHTTP();
     this.socketAPI         = new ColosseumMatchingNetworkSocket(listener);
     this.addressUserIdList = new List <int>();
 }
 public void SetInstance(CMD_ColosseumMatching parent, MatchingConfig config, IColosseumMatchingInfo info, string dungeonId, ColosseumMatchingAnimation modelAnimation)
 {
     this.uiRoot         = parent;
     this.matchingConfig = config;
     this.network        = new ColosseumMatchingNetwork(info, this);
     this.anime          = modelAnimation;
     this.matchingResult = new MatchingResult
     {
         dungeonId = dungeonId
     };
 }