コード例 #1
0
 public void Read(UdpPacket packet)
 {
     this.AdminPassword  = packet.ReadString();
     this.ServerPassword = packet.ReadString();
     if (packet.CanRead())
     {
         int num = packet.ReadInt();
         if (num > 0)
         {
             this.steamBlobToken = new byte[num];
             for (int i = 0; i < this.steamBlobToken.Length; i++)
             {
                 this.steamBlobToken[i] = packet.ReadByte();
             }
         }
     }
 }