2022-04-30 09:41:17 -04:00
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
package engine.net.client.msg.guild ;
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 SwearInGuildMsg extends ClientNetMsg {
2023-07-15 09:23:48 -04:00
private int guildType ;
private int guildUUID ;
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
private String message ;
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/**
* This is the general purpose constructor.
*/
public SwearInGuildMsg () {
super ( Protocol . SWEARINGUILD );
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/**
* 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 SwearInGuildMsg ( AbstractConnection origin , ByteBufferReader reader ) {
super ( Protocol . SWEARINGUILD , origin , reader );
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/**
* Serializes the subclass specific items to the supplied ByteBufferWriter.
*/
@Override
protected void _serialize ( ByteBufferWriter writer ) {
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/**
* Deserializes the subclass specific items from the supplied ByteBufferReader.
*/
@Override
protected void _deserialize ( ByteBufferReader reader ) {
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
this . guildType = reader . getInt ();
this . guildUUID = reader . getInt ();
reader . getInt ();
this . message = reader . getString ();
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/**
* @return the targetType
*/
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
public String getMessage () {
return message ;
}
public void setMessage ( String message ) {
this . message = message ;
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
public int getGuildUUID () {
return guildUUID ;
}
2022-04-30 09:41:17 -04:00
}