Files
SWG-Station-Chat/src/main/java/chat/protocol/response/ResLogoutAvatar.java
2016-10-24 02:09:13 +02:00

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) {
}
}