Ejemplo n.º 1
0
 public override void Deserialize(NetworkReader reader)
 {
     this.oldServerConnectionId = (int)reader.ReadPackedUInt32();
     this.peers = new PeerInfoMessage[(int)reader.ReadUInt16()];
     for (int index = 0; index < this.peers.Length; ++index)
     {
         PeerInfoMessage peerInfoMessage = new PeerInfoMessage();
         peerInfoMessage.Deserialize(reader);
         this.peers[index] = peerInfoMessage;
     }
 }
 public override void Deserialize(NetworkReader reader)
 {
   this.oldServerConnectionId = (int) reader.ReadPackedUInt32();
   this.peers = new PeerInfoMessage[(int) reader.ReadUInt16()];
   for (int index = 0; index < this.peers.Length; ++index)
   {
     PeerInfoMessage peerInfoMessage = new PeerInfoMessage();
     peerInfoMessage.Deserialize(reader);
     this.peers[index] = peerInfoMessage;
   }
 }
Ejemplo n.º 3
0
        public override void Deserialize(NetworkReader reader)
        {
            int num = reader.ReadUInt16();

            peers = new PeerInfoMessage[num];
            for (int i = 0; i < peers.Length; i++)
            {
                PeerInfoMessage peerInfoMessage = new PeerInfoMessage();
                peerInfoMessage.Deserialize(reader);
                peers[i] = peerInfoMessage;
            }
        }
Ejemplo n.º 4
0
        public override void Deserialize(NetworkReader reader)
        {
            oldServerConnectionId = (int)reader.ReadPackedUInt32();
            int num = reader.ReadUInt16();

            peers = new PeerInfoMessage[num];
            for (int i = 0; i < peers.Length; i++)
            {
                PeerInfoMessage peerInfoMessage = new PeerInfoMessage();
                peerInfoMessage.Deserialize(reader);
                peers[i] = peerInfoMessage;
            }
        }