mirror of
https://github.com/Rabiator1/SWG-Station-Chat.git
synced 2026-01-16 20:04:20 -05:00
31 lines
557 B
Java
31 lines
557 B
Java
package chat.protocol.response;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.nio.ByteOrder;
|
|
|
|
import chat.protocol.GenericResponse;
|
|
|
|
public class ResLogoutAvatar extends GenericResponse {
|
|
|
|
public ResLogoutAvatar() {
|
|
type = RESPONSE_LOGOUTAVATAR;
|
|
}
|
|
|
|
@Override
|
|
public ByteBuffer serialize() {
|
|
ByteBuffer buf = ByteBuffer.allocate(14).order(ByteOrder.LITTLE_ENDIAN);
|
|
buf.putInt(0);
|
|
buf.putShort(type);
|
|
buf.putInt(track);
|
|
buf.putInt(result.ordinal());
|
|
writeSize(buf);
|
|
return buf;
|
|
}
|
|
|
|
@Override
|
|
public void deserialize(ByteBuffer buf) {
|
|
|
|
}
|
|
|
|
}
|