Project cleanup pre merge.
This commit is contained in:
@@ -17,75 +17,75 @@ import engine.net.client.Protocol;
|
||||
|
||||
public class ModifyStatMsg extends ClientNetMsg {
|
||||
|
||||
private int amount;
|
||||
private int type;
|
||||
private int unknown01;
|
||||
private int amount;
|
||||
private int type;
|
||||
private int unknown01;
|
||||
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public ModifyStatMsg() {
|
||||
super(Protocol.RAISEATTR);
|
||||
}
|
||||
/**
|
||||
* This is the general purpose constructor.
|
||||
*/
|
||||
public ModifyStatMsg() {
|
||||
super(Protocol.RAISEATTR);
|
||||
}
|
||||
|
||||
public ModifyStatMsg(int amount, int type, int unknown01) {
|
||||
super(Protocol.RAISEATTR);
|
||||
this.amount = amount;
|
||||
this.type = type;
|
||||
this.unknown01 = unknown01;
|
||||
}
|
||||
public ModifyStatMsg(int amount, int type, int unknown01) {
|
||||
super(Protocol.RAISEATTR);
|
||||
this.amount = amount;
|
||||
this.type = type;
|
||||
this.unknown01 = unknown01;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 ModifyStatMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.RAISEATTR, 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 ModifyStatMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||||
super(Protocol.RAISEATTR, origin, reader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putInt(this.amount);
|
||||
writer.putInt(this.type);
|
||||
writer.putInt(this.unknown01);
|
||||
}
|
||||
/**
|
||||
* Serializes the subclass specific items to the supplied NetMsgWriter.
|
||||
*/
|
||||
@Override
|
||||
protected void _serialize(ByteBufferWriter writer) {
|
||||
writer.putInt(this.amount);
|
||||
writer.putInt(this.type);
|
||||
writer.putInt(this.unknown01);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.amount = reader.getInt();
|
||||
this.type = reader.getInt();
|
||||
this.unknown01 = reader.getInt();
|
||||
}
|
||||
/**
|
||||
* Deserializes the subclass specific items from the supplied NetMsgReader.
|
||||
*/
|
||||
@Override
|
||||
protected void _deserialize(ByteBufferReader reader) {
|
||||
this.amount = reader.getInt();
|
||||
this.type = reader.getInt();
|
||||
this.unknown01 = reader.getInt();
|
||||
}
|
||||
|
||||
public int getAmount() {
|
||||
return this.amount;
|
||||
}
|
||||
public int getAmount() {
|
||||
return this.amount;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
public void setAmount(int value) {
|
||||
this.amount = value;
|
||||
}
|
||||
|
||||
public int getUnknown01() {
|
||||
return this.unknown01;
|
||||
}
|
||||
public int getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setAmount(int value) {
|
||||
this.amount = value;
|
||||
}
|
||||
public void setType(int value) {
|
||||
this.type = value;
|
||||
}
|
||||
|
||||
public void setType(int value) {
|
||||
this.type = value;
|
||||
}
|
||||
public int getUnknown01() {
|
||||
return this.unknown01;
|
||||
}
|
||||
|
||||
public void setUnknown01(int value) {
|
||||
this.unknown01 = value;
|
||||
}
|
||||
public void setUnknown01(int value) {
|
||||
this.unknown01 = value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user