示例#1
0
 // Token: 0x060012F1 RID: 4849 RVA: 0x00021184 File Offset: 0x0001F384
 private void RoomEntered(byte[] _bytes)
 {
     using (MemoryStream memoryStream = new MemoryStream(_bytes))
     {
         GameRoomData game = GameRoomDataProxy.Deserialize(memoryStream);
         this.OnRoomEntered(game);
     }
 }
示例#2
0
        // Token: 0x060012F8 RID: 4856 RVA: 0x00021394 File Offset: 0x0001F594
        private void GetGameInformation(byte[] _bytes)
        {
            using (MemoryStream memoryStream = new MemoryStream(_bytes))
            {
                GameRoomData         room    = GameRoomDataProxy.Deserialize(memoryStream);
                List <GameActorInfo> players = ListProxy <GameActorInfo> .Deserialize(memoryStream, new ListProxy <GameActorInfo> .Deserializer <GameActorInfo>(GameActorInfoProxy.Deserialize));

                int endTime = Int32Proxy.Deserialize(memoryStream);
                this.OnGetGameInformation(room, players, endTime);
            }
        }
 // Token: 0x060012B7 RID: 4791 RVA: 0x0001FD84 File Offset: 0x0001DF84
 public void SendCreateRoom(GameRoomData metaData, string password, string clientVersion, string authToken, string magicHash)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         GameRoomDataProxy.Serialize(memoryStream, metaData);
         StringProxy.Serialize(memoryStream, password);
         StringProxy.Serialize(memoryStream, clientVersion);
         StringProxy.Serialize(memoryStream, authToken);
         StringProxy.Serialize(memoryStream, magicHash);
         Dictionary <byte, object> customOpParameters = new Dictionary <byte, object>
         {
             {
                 this.__id,
                 memoryStream.ToArray()
             }
         };
         if (this.sendOperation != null)
         {
             this.sendOperation(6, customOpParameters, true, 0, false);
         }
     }
 }