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
+34 -34
View File
@@ -18,45 +18,45 @@ import engine.net.client.Protocol;
public class RecyclePowerMsg extends ClientNetMsg {
protected int token;
protected int token;
public RecyclePowerMsg(int token) {
super(Protocol.RECYCLEPOWER);
this.token = token;
}
public RecyclePowerMsg(int token) {
super(Protocol.RECYCLEPOWER);
this.token = token;
}
/**
* 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 RecyclePowerMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.RECYCLEPOWER, 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 RecyclePowerMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.RECYCLEPOWER, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putInt(this.token);
}
/**
* Serializes the subclass specific items to the supplied NetMsgWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putInt(this.token);
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.token = reader.getInt();
}
/**
* Deserializes the subclass specific items from the supplied NetMsgReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.token = reader.getInt();
}
public int getToken() {
return this.token;
}
public int getToken() {
return this.token;
}
public void setToken(int value) {
this.token = value;
}
public void setToken(int value) {
this.token = value;
}
}