예제 #1
0
 public void FromStream(DataStreamReader reader, ref DataStreamReader.Context ctx)
 {
     Header.FromStream(reader, ref ctx);
     Version       = reader.ReadUShortNetworkByteOrder(ref ctx);
     CurrentPacket = reader.ReadByte(ref ctx);
     LastPacket    = reader.ReadByte(ref ctx);
     Length        = reader.ReadUShortNetworkByteOrder(ref ctx);
 }
예제 #2
0
            public void FromStream(DataStreamReader reader, ref DataStreamReader.Context ctx)
            {
                CurrentPlayers = reader.ReadUShortNetworkByteOrder(ref ctx);
                MaxPlayers     = reader.ReadUShortNetworkByteOrder(ref ctx);

                ServerName = reader.ReadString(ref ctx, encoding);
                GameType   = reader.ReadString(ref ctx, encoding);
                BuildId    = reader.ReadString(ref ctx, encoding);
                Map        = reader.ReadString(ref ctx, encoding);

                Port = reader.ReadUShortNetworkByteOrder(ref ctx);
            }
예제 #3
0
 public void FromStream(DataStreamReader reader, ref DataStreamReader.Context ctx)
 {
     Header.FromStream(reader, ref ctx);
     Version         = reader.ReadUShortNetworkByteOrder(ref ctx);
     RequestedChunks = reader.ReadByte(ref ctx);
 }