public class HelloPacket extends Packet {
public String buildVersion;
public int gameId;
public String guid;
public int randomInt1;
public String password;
public int randomInt2;
public String secret;
public int keyTime;
public byte[] key = new byte[0];
public String obf1;
public String obf2;
public String obf3;
public String obf4;
public String obf5;
public String obf6;
public String obf7;
@
override
public void parseFromInput(DataInput in) throws IOException
{
this.buildVersion = in.readUTF();
this.gameId = in.readInt();
this.guid = in.readUTF();
this.randomInt1 = in.readInt();
this.password = in.readUTF();
this.randomInt2 = in.readInt();
this.secret = in.readUTF();
this.keyTime = in.readInt();
this.key = new byte[in.readShort()];
in.readFully(this.key);
this.obf1 = in.readUTF();
this.obf2 = in.readUTF();
this.obf3 = in.readUTF();
this.obf4 = in.readUTF();
this.obf5 = in.readUTF();
this.obf6 = in.readUTF();
this.obf7 = in.readUTF();
}
@
override
public void writeToOutput(DataOutput out) throws IOException {
out.writeUTF(this.buildVersion);
out.writeInt(this.gameId);
out.writeUTF(this.guid);
out.writeInt(randomInt1);
out.writeUTF(this.password);
out.writeInt(randomInt2);
out.writeUTF(this.secret);
out.writeInt(this.keyTime);
out.writeShort(this.key.length);
out.write(this.key);
out.writeUTF(this.obf1);
out.writeUTF(this.obf2);
out.writeUTF(this.obf3);
out.writeUTF(this.obf4);
out.writeUTF(this.obf5);
out.writeUTF(this.obf6);
out.writeUTF(this.obf7);
}
}