コード例 #1
0
 public void Read(PacketReader reader)
 {
     ProtocolVersion = (int)reader.ReadByte();
     Logger.LogToConsole( "Protocol version " + ProtocolVersion.ToString() );
     Username = reader.ReadString16(64);
     Logger.LogToConsole( "Username " + Username );
     ServerHost = reader.ReadString16(64);
     ServerPort = reader.ReadInt();
     Logger.LogToConsole( "Server " + ServerHost + ":" + ServerPort );
 }
コード例 #2
0
 public void Read(PacketReader reader)
 {
     Locale = reader.ReadString16(10);
     Logger.LogToConsole( Locale.ToString() );
     ViewDistance = reader.ReadByte();
     ChatFlags = reader.ReadByte();
     Difficulty = reader.ReadByte();
     ShowCapes = reader.ReadBoolean();
 }