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
@@ -18,93 +18,90 @@ import engine.net.client.msg.ClientNetMsg;
public class MOTDCommitMsg extends ClientNetMsg {
private String message;
private int unknown01;
private int type;
private String message;
private int unknown01;
private int type;
/**
* This is the general purpose constructor.
*/
public MOTDCommitMsg() {
super(Protocol.SETMOTD);
this.message = "";
this.unknown01 = 0;
this.type = 0;
}
/**
* This is the general purpose constructor.
*/
public MOTDCommitMsg() {
super(Protocol.SETMOTD);
this.message = "";
this.unknown01 = 0;
this.type = 0;
}
/**
* 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 MOTDCommitMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.SETMOTD, 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 MOTDCommitMsg(AbstractConnection origin, ByteBufferReader reader) {
super(Protocol.SETMOTD, origin, reader);
}
/**
* Serializes the subclass specific items to the supplied ByteBufferWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putString(this.message);
writer.putInt(this.unknown01);
writer.putInt(this.type);
}
/**
* Serializes the subclass specific items to the supplied ByteBufferWriter.
*/
@Override
protected void _serialize(ByteBufferWriter writer) {
writer.putString(this.message);
writer.putInt(this.unknown01);
writer.putInt(this.type);
}
/**
* Deserializes the subclass specific items from the supplied ByteBufferReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.message = reader.getString();
this.unknown01 = reader.getInt();
this.type = reader.getInt();
}
/**
* Deserializes the subclass specific items from the supplied ByteBufferReader.
*/
@Override
protected void _deserialize(ByteBufferReader reader) {
this.message = reader.getString();
this.unknown01 = reader.getInt();
this.type = reader.getInt();
}
/**
* @return the message
*/
public String getMessage() {
return message;
}
/**
* @return the message
*/
public String getMessage() {
return message;
}
/**
* @param message
* the message to set
*/
public void setMessage(String message) {
this.message = message;
}
/**
* @param message the message to set
*/
public void setMessage(String message) {
this.message = message;
}
/**
* @return the unknown01
*/
public int getUnknown01() {
return unknown01;
}
/**
* @return the unknown01
*/
public int getUnknown01() {
return unknown01;
}
/**
* @param unknown01
* the unknown01 to set
*/
public void setUnknown01(int unknown01) {
this.unknown01 = unknown01;
}
/**
* @param unknown01 the unknown01 to set
*/
public void setUnknown01(int unknown01) {
this.unknown01 = unknown01;
}
/**
* @return the type
*/
public int getType() {
return type;
}
/**
* @return the type
*/
public int getType() {
return type;
}
/**
* @param type
* the type to set
*/
public void setType(int type) {
this.type = type;
}
/**
* @param type the type to set
*/
public void setType(int type) {
this.type = type;
}
}