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
+47 -45
View File
@@ -18,54 +18,56 @@ import engine.net.client.Protocol;
public class ClaimAssetMsg extends ClientNetMsg {
private int pad;
private int objectType;
private int objectUUID;
private int pad;
private int objectType;
private int objectUUID;
public ClaimAssetMsg(int objectType, int objectUUID) {
super(Protocol.CLAIMASSET);
this.pad = 0;
this.objectType = objectType;
this.objectUUID = objectUUID;
}
/**
* 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 ClaimAssetMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.CLAIMASSET, origin, reader);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.pad = reader.getInt();
this.objectType = reader.getInt();
this.objectUUID = reader.getInt();
}
public ClaimAssetMsg(int objectType, int objectUUID) {
super(Protocol.CLAIMASSET);
this.pad = 0;
this.objectType = objectType;
this.objectUUID = objectUUID;
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) throws SerializationException {
writer.putInt(this.pad);
writer.putInt(this.objectType);
writer.putInt(this.objectUUID);
}
/**
* 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 ClaimAssetMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.CLAIMASSET, origin, reader);
}
public int getObjectType() {
return objectType;
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.pad = reader.getInt();
this.objectType = reader.getInt();
this.objectUUID = reader.getInt();
}
public void setObjectType(int value) {
this.objectType = value;
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) throws SerializationException {
writer.putInt(this.pad);
writer.putInt(this.objectType);
writer.putInt(this.objectUUID);
}
public int getUUID() {
return objectUUID;
}
public int getObjectType() {
return objectType;
}
public void setObjectType(int value) {
this.objectType = value;
}
public int getUUID() {
return objectUUID;
}
}