// Reads 10 bytes. public void read(MyByteBuffer buffer) { this.gamesPlayed = buffer.getShort(); this.gamesCompleted = buffer.getShort(); this.rank = buffer.get(); this.altarLevel = buffer.get(); this.tech = buffer.getInt(); }
// Writes 10 bytes. public void write(MyByteBuffer buffer) { buffer.putShort(this.gamesPlayed); buffer.putShort(this.gamesCompleted); buffer.put(this.rank); buffer.put(this.altarLevel); buffer.putInt(this.tech); }