package org.apollo.net.release.r377;

import org.apollo.game.message.impl.OpenDialogueOverlayMessage;
import org.apollo.net.codec.game.DataOrder;
import org.apollo.net.codec.game.DataType;
import org.apollo.net.codec.game.GamePacket;
import org.apollo.net.codec.game.GamePacketBuilder;
import org.apollo.net.release.MessageEncoder;

/**
 * A {@link MessageEncoder} for the {@link OpenDialogueOverlayMessage}.
 * 
 * @author Major
 */
public final class OpenDialogueOverlayMessageEncoder extends MessageEncoder<OpenDialogueOverlayMessage> {

	@Override
	public GamePacket encode(OpenDialogueOverlayMessage message) {
		GamePacketBuilder builder = new GamePacketBuilder(154);
		builder.put(DataType.SHORT, DataOrder.LITTLE, message.getInterfaceId());
		return builder.toGamePacket();
	}

}
@@ -667,9 +667,9 @@
 r(15
-4
+8
 );%0A%09

Correct opcode of the 377 OpenDialogueOverlayMessage.