Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
@@ -21,85 +21,85 @@ import java.util.ArrayList;
public class LootWindowResponseMsg extends ClientNetMsg {
private int targetType;
private int targetID;
private ArrayList<Item> inventory;
private int unknown01 = 45;
private int targetType;
private int targetID;
private ArrayList<Item> inventory;
private int unknown01 = 45;
/**
* This is the general purpose constructor.
*/
public LootWindowResponseMsg(int targetType, int targetID, ArrayList<Item> inventory) {
super(Protocol.WEIGHTINVENTORY);
this.targetType = targetType;
this.targetID = targetID;
this.inventory = inventory;
}
/**
* This is the general purpose constructor.
*/
public LootWindowResponseMsg(int targetType, int targetID, ArrayList<Item> inventory) {
super(Protocol.WEIGHTINVENTORY);
this.targetType = targetType;
this.targetID = targetID;
this.inventory = inventory;
}
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the
* ByteBuffer into a message. If a BufferUnderflow occurs (based on reading
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public LootWindowResponseMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.WEIGHTINVENTORY, origin, reader);
}
/**
* This constructor is used by NetMsgFactory. It attempts to deserialize the
* ByteBuffer into a message. If a BufferUnderflow occurs (based on reading
* past the limit) then this constructor Throws that Exception to the
* caller.
*/
public LootWindowResponseMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.WEIGHTINVENTORY, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.put((byte) 1);
Item.putList(writer, this.inventory, false, this.targetID);
writer.putInt(this.unknown01);
writer.putInt(this.targetType);
writer.putInt(this.targetID);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.put((byte) 1);
Item.putList(writer, this.inventory, false, this.targetID);
writer.putInt(this.unknown01);
writer.putInt(this.targetType);
writer.putInt(this.targetID);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
}
public int getUnknown01() {
return this.unknown01;
}
public int getUnknown01() {
return this.unknown01;
}
public int getTargetType() {
return targetType;
}
public void setUnknown01(int value) {
this.unknown01 = value;
}
public int getTargetID() {
return targetID;
}
public int getTargetType() {
return targetType;
}
public ArrayList<Item> getInventory() {
return this.inventory;
}
public void setTargetType(int value) {
this.targetType = value;
}
public void setUnknown01(int value) {
this.unknown01 = value;
}
public int getTargetID() {
return targetID;
}
public void setTargetType(int value) {
this.targetType = value;
}
public void setTargetID(int value) {
this.targetID = value;
}
public void setTargetID(int value) {
this.targetID = value;
}
public ArrayList<Item> getInventory() {
return this.inventory;
}
public void setInventory(ArrayList<Item> value) {
this.inventory = value;
}
public void setInventory(ArrayList<Item> value) {
this.inventory = value;
}
@Override
protected int getPowerOfTwoBufferSize() {
// Larger size for historically larger opcodes
return 17; // 2^15 == 32,768
}
@Override
protected int getPowerOfTwoBufferSize() {
// Larger size for historically larger opcodes
return 17; // 2^15 == 32,768
}
}