2022-04-30 09:41:17 -04:00
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
package engine.net.client.msg.guild ;
import engine.Enum.GameObjectType ;
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 AcceptSubInviteMsg extends ClientNetMsg {
2023-07-15 09:23:48 -04:00
private int guildUUID ;
private int unknown01 ;
private int unknown02 ;
private String response ;
/**
* This is the general purpose constructor.
*/
public AcceptSubInviteMsg ( ) {
super ( Protocol . JOINFORPROVINCE ) ;
}
public AcceptSubInviteMsg ( int guildUUID , int unknown01 , int unknown02 , String response ) {
super ( Protocol . JOINFORPROVINCE ) ;
this . guildUUID = guildUUID ;
this . unknown01 = unknown01 ;
this . unknown02 = unknown02 ;
this . response = response ;
}
/**
* 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 AcceptSubInviteMsg ( AbstractConnection origin , ByteBufferReader reader ) {
super ( Protocol . JOINFORPROVINCE , origin , reader ) ;
}
/**
* Serializes the subclass specific items to the supplied ByteBufferWriter.
*/
@Override
protected void _serialize ( ByteBufferWriter writer ) {
writer . putInt ( GameObjectType . Guild . ordinal ( ) ) ;
writer . putInt ( this . guildUUID ) ;
writer . putInt ( this . unknown01 ) ;
writer . putInt ( this . unknown02 ) ;
writer . putString ( this . response ) ;
}
/**
* Deserializes the subclass specific items from the supplied ByteBufferReader.
*/
@Override
protected void _deserialize ( ByteBufferReader reader ) {
reader . getInt ( ) ; // Object Type Padding
this . guildUUID = reader . getInt ( ) ;
this . unknown01 = reader . getInt ( ) ;
this . unknown02 = reader . getInt ( ) ;
reader . getString ( ) ;
}
/**
* @return the guildUUID
*/
public int guildUUID ( ) {
return guildUUID ;
}
/**
* @return the unknown01
*/
public int getUnknown01 ( ) {
return unknown01 ;
}
/**
* @param unknown01 the unknown01 to set
*/
public void setUnknown01 ( int unknown01 ) {
this . unknown01 = unknown01 ;
}
/**
* @return the unknown02
*/
public int getUnknown02 ( ) {
return unknown02 ;
}
/**
* @param unknown02 the unknown02 to set
*/
public void setUnknown02 ( int unknown02 ) {
this . unknown02 = unknown02 ;
}
public String getResponse ( ) {
return this . response ;
}
public void setResponse ( String value ) {
this . response = value ;
}
2022-04-30 09:41:17 -04:00
}