forked from MagicBane/Server
73 lines
2.2 KiB
Java
73 lines
2.2 KiB
Java
|
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||
|
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||
|
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||
|
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||
|
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||
|
|
// Magicbane Emulator Project © 2013 - 2022
|
||
|
|
// www.magicbane.com
|
||
|
|
|
||
|
|
|
||
|
|
package engine.net.client.msg.group;
|
||
|
|
|
||
|
|
|
||
|
|
import engine.net.AbstractConnection;
|
||
|
|
import engine.net.ByteBufferReader;
|
||
|
|
import engine.net.ByteBufferWriter;
|
||
|
|
import engine.net.client.Protocol;
|
||
|
|
import engine.net.client.msg.ClientNetMsg;
|
||
|
|
|
||
|
|
public class ToggleGroupSplitMsg extends ClientNetMsg {
|
||
|
|
|
||
|
|
private int unknown01;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is the general purpose constructor.
|
||
|
|
*/
|
||
|
|
public ToggleGroupSplitMsg() {
|
||
|
|
super(Protocol.GROUPTREASURE);
|
||
|
|
this.unknown01 = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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 ToggleGroupSplitMsg(AbstractConnection origin, ByteBufferReader reader) {
|
||
|
|
super(Protocol.GROUPTREASURE, origin, reader);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Serializes the subclass specific items to the supplied ByteBufferWriter.
|
||
|
|
*/
|
||
|
|
@Override
|
||
|
|
protected void _serialize(ByteBufferWriter writer) {
|
||
|
|
writer.putInt(this.unknown01);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Deserializes the subclass specific items from the supplied ByteBufferReader.
|
||
|
|
*/
|
||
|
|
@Override
|
||
|
|
protected void _deserialize(ByteBufferReader reader) {
|
||
|
|
this.unknown01 = reader.getInt();
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @return the unknown01
|
||
|
|
*/
|
||
|
|
public int getUnknown01() {
|
||
|
|
return unknown01;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param unknown01
|
||
|
|
* the unknown01 to set
|
||
|
|
*/
|
||
|
|
public void setUnknown01(int unknown01) {
|
||
|
|
this.unknown01 = unknown01;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|