Beispiel #1
0
        public void SendSelectMonsterIndexList(List <int> toAddress, int[] selectMonsterIndexList)
        {
            PvPEnemyData value = new PvPEnemyData
            {
                hashValue    = Singleton <TCPUtil> .Instance.CreateHash(TCPMessageType.PvPEnemyData, DataMng.Instance().UserId, TCPMessageType.None),
                playerUserId = DataMng.Instance().UserId,
                indexId      = selectMonsterIndexList
            };

            this.messageBuffer.Clear();
            this.messageBuffer.Add(TCPMessageType.PvPEnemyData.ToString(), value);
            Singleton <TCPUtil> .Instance.SendTCPRequest(this.messageBuffer, toAddress, "enemyData");
        }
Beispiel #2
0
        public ColosseumMatchingNetworkSynchronize CreateSelectMonsterMessage(List <int> toAddress, int[] selectMonsterIndexList)
        {
            PvPEnemyData value = new PvPEnemyData
            {
                hashValue    = Singleton <TCPUtil> .Instance.CreateHash(TCPMessageType.PvPEnemyData, DataMng.Instance().UserId, TCPMessageType.None),
                playerUserId = DataMng.Instance().UserId,
                indexId      = selectMonsterIndexList
            };

            this.messageBuffer.Clear();
            this.messageBuffer.Add(TCPMessageType.PvPEnemyData.ToString(), value);
            ColosseumMatchingNetworkSynchronize colosseumMatchingNetworkSynchronize = new ColosseumMatchingNetworkSynchronize();

            colosseumMatchingNetworkSynchronize.SetIntervalAndTrialTime(5f, 15f);
            colosseumMatchingNetworkSynchronize.SetFailedAction(new Action(this.eventListener.OnFailedSelectMonsterSend));
            colosseumMatchingNetworkSynchronize.SetMessage(toAddress, this.messageBuffer, "enemyData");
            return(colosseumMatchingNetworkSynchronize);
        }