Deserialize() 공개 메소드

public Deserialize ( NetworkReader reader ) : void
reader NetworkReader
리턴 void
예제 #1
0
 public override void Deserialize(NetworkReader reader)
 {
     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;
       }
 }
예제 #2
0
 public override void Deserialize(NetworkReader reader)
 {
     int num = reader.ReadUInt16();
     this.peers = new PeerInfoMessage[num];
     for (int i = 0; i < this.peers.Length; i++)
     {
         PeerInfoMessage message = new PeerInfoMessage();
         message.Deserialize(reader);
         this.peers[i] = message;
     }
 }
예제 #3
0
        public override void Deserialize(NetworkReader reader)
        {
            int num = (int)reader.ReadUInt16();

            this.peers = new PeerInfoMessage[num];
            for (int i = 0; i < this.peers.Length; i++)
            {
                PeerInfoMessage peerInfoMessage = new PeerInfoMessage();
                peerInfoMessage.Deserialize(reader);
                this.peers[i] = peerInfoMessage;
            }
        }
예제 #4
0
 public override void Deserialize(NetworkReader reader)
 {
     this.oldServerConnectionId = (int) reader.ReadPackedUInt32();
     int num = reader.ReadUInt16();
     this.peers = new PeerInfoMessage[num];
     for (int i = 0; i < this.peers.Length; i++)
     {
         PeerInfoMessage message = new PeerInfoMessage();
         message.Deserialize(reader);
         this.peers[i] = message;
     }
 }
예제 #5
0
        public override void Deserialize(NetworkReader reader)
        {
            oldServerConnectionId = (int)reader.ReadPackedUInt32();
            int numPeers = reader.ReadUInt16();

            peers = new PeerInfoMessage[numPeers];
            for (int i = 0; i < peers.Length; ++i)
            {
                var peerInfo = new PeerInfoMessage();
                peerInfo.Deserialize(reader);
                peers[i] = peerInfo;
            }
        }
예제 #6
0
        public override void Deserialize(NetworkReader reader)
        {
            this.oldServerConnectionId = (int)reader.ReadPackedUInt32();
            int num = (int)reader.ReadUInt16();

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