From ed098357ae45c856232d5755051528549e1d0ae6 Mon Sep 17 00:00:00 2001 From: Treeku Date: Mon, 3 Mar 2014 12:22:45 +0000 Subject: [PATCH] Catching CommandQueueRemove --- src/resources/common/ObjControllerOpcodes.java | 1 + src/services/command/CommandService.java | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/resources/common/ObjControllerOpcodes.java b/src/resources/common/ObjControllerOpcodes.java index a7cac034..5834038e 100644 --- a/src/resources/common/ObjControllerOpcodes.java +++ b/src/resources/common/ObjControllerOpcodes.java @@ -26,6 +26,7 @@ public class ObjControllerOpcodes { public static final int DATA_TRANSFORM = 0x71000000; public static final int DATA_TRANSFORM_WITH_PARENT = 0xF1000000; public static final int COMMAND_QUEUE_ENQUEUE = 0x16010000; + public static final int COMMAND_QUEUE_REMOVE = 0x17010000; public static final int HOVER_TARGET = 0x26010000; // lookAtTarget public static final int TARGET_UPDATE = 0xC5040000; // intendedTarget public static final int OBJECT_MENU_REQUEST = 0x46010000; diff --git a/src/services/command/CommandService.java b/src/services/command/CommandService.java index 5c838cd1..1f63a445 100644 --- a/src/services/command/CommandService.java +++ b/src/services/command/CommandService.java @@ -22,7 +22,6 @@ package services.command; import java.nio.ByteOrder; -import java.util.HashMap; import java.util.Map; import java.util.Vector; import java.util.concurrent.ConcurrentHashMap; @@ -114,6 +113,15 @@ public class CommandService implements INetworkDispatch { } }); + + objControllerOpcodes.put(ObjControllerOpcodes.COMMAND_QUEUE_REMOVE, new INetworkRemoteEvent() { + + @Override + public void handlePacket(IoSession session, IoBuffer data) throws Exception { + + } + + }); }