summaryrefslogtreecommitdiff
path: root/src/net/tmwa/protocol.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-04 17:48:35 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-04 17:51:13 +0100
commitd5ebad4e74da011777f9ba1a13fbb37d18c827b9 (patch)
tree0e24171179162b37c20aaaed460d9788660b4fd6 /src/net/tmwa/protocol.h
parent12bec57276d30cd513b1f6b865ee116bce86fc17 (diff)
downloadmana-d5ebad4e74da011777f9ba1a13fbb37d18c827b9.tar.gz
mana-d5ebad4e74da011777f9ba1a13fbb37d18c827b9.tar.bz2
mana-d5ebad4e74da011777f9ba1a13fbb37d18c827b9.tar.xz
mana-d5ebad4e74da011777f9ba1a13fbb37d18c827b9.zip
Added support for handling SMSG_NPC_COMMAND
This only adds support for the NPC_CLOSE_DIALOG and NPC_CLEAR_DIALOG sub-commands. Closes #47
Diffstat (limited to 'src/net/tmwa/protocol.h')
-rw-r--r--src/net/tmwa/protocol.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/tmwa/protocol.h b/src/net/tmwa/protocol.h
index ea3d430e..e50948c5 100644
--- a/src/net/tmwa/protocol.h
+++ b/src/net/tmwa/protocol.h
@@ -60,6 +60,23 @@ enum
SPRITE_VECTOREND
};
+enum NpcCommand
+{
+ NPC_REQUEST_LANG = 0,
+ NPC_CAMERA_ACTOR = 1,
+ NPC_CAMERA_POS = 2,
+ NPC_CAMERA_RESTORE = 3,
+ NPC_CAMERA_RELATIVE = 4,
+ NPC_CLOSE_DIALOG = 5,
+ NPC_SHOW_AVATAR = 6,
+ NPC_SET_AVATAR_DIRECTION = 7,
+ NPC_SET_AVATAR_ACTION = 8,
+ NPC_CLEAR_DIALOG = 9,
+ NPC_REQUEST_ITEM = 10,
+ NPC_REQUEST_ITEM_INDEX = 11,
+ NPC_REQUEST_ITEMS = 12,
+};
+
static const int INVENTORY_OFFSET = 2;
static const int STORAGE_OFFSET = 1;