From 4611d9a3b0aea6f42c55a3d18f12cf374c6c5fa6 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Sun, 19 Apr 2020 14:37:04 +0200 Subject: [PATCH] update network --- README.md | 19 +- modules/{command => action}/SCsub | 0 .../{command => action}/action_factory.cpp | 677 +++---- modules/{command => action}/action_factory.h | 0 modules/{command => action}/config.py | 0 .../{command => action}/register_types.cpp | 6 +- modules/{command => action}/register_types.h | 4 +- modules/impulse/SCsub | 5 + modules/impulse/config.py | 15 + modules/impulse/impulsebase.cpp | 1716 +++++++++++++++++ modules/impulse/impulsebase.h | 382 ++++ modules/impulse/register_types.cpp | 14 + modules/impulse/register_types.h | 5 + modules/networkconnection/register_types.cpp | 8 +- modules/networkconnection/state_connexion.cpp | 6 +- .../referentialmessagecore.cpp | 1712 +--------------- .../referentialmessagecore.h | 345 +--- modules/referentialmessage/register_types.cpp | 5 +- 18 files changed, 2524 insertions(+), 2395 deletions(-) rename modules/{command => action}/SCsub (100%) rename modules/{command => action}/action_factory.cpp (52%) rename modules/{command => action}/action_factory.h (100%) rename modules/{command => action}/config.py (100%) rename modules/{command => action}/register_types.cpp (57%) rename modules/{command => action}/register_types.h (61%) create mode 100644 modules/impulse/SCsub create mode 100644 modules/impulse/config.py create mode 100644 modules/impulse/impulsebase.cpp create mode 100644 modules/impulse/impulsebase.h create mode 100644 modules/impulse/register_types.cpp create mode 100644 modules/impulse/register_types.h diff --git a/README.md b/README.md index 77e25ea..3af93df 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,13 @@ for file in ../../../modules/* do if [ -d $file ] then - echo "$file" - ln -s $file . + if [ -L $file ] + then + echo "Create link $(basename $file)" + ln -s $file . + else + echo "Link $(basename $file) exist" + fi fi done cd .. @@ -36,6 +41,11 @@ scons -j$(nproc) platform=x11 target=debug scons -j$(nproc) platform=x11 target=release_debug # or build release -> becarefull, this version works on root project and impossible to launch editor scons -j$(nproc) platform=x11 target=release tools=no + +# Build optimized with GCC +scons -j$(nproc) platform=x11 target=release_debug use_lto=yes +# Build optimized with CLang +scons -j$(nproc) platform=x11 target=release_debug use_llvm=yes use_lld=yes cd ../.. ``` @@ -284,4 +294,7 @@ Action code : TargetOrPickup (2 bits unsigned) ACTION_DUMMY_CODE = 99 : khanat-opennel-code/code/ryzom/common/src/game_share/action_dummy.h virtual void unpack (NLMISC::CBitMemStream &message) Dummy1 ( 32 bits unsigned ) - Dummy2 ( 32 bits unsigned ) \ No newline at end of file + Dummy2 ( 32 bits unsigned ) + + + Impulse : (include on ACTION_GENERIC_CODE or ACTION_GENERIC_MULTI_PART_CODE) \ No newline at end of file diff --git a/modules/command/SCsub b/modules/action/SCsub similarity index 100% rename from modules/command/SCsub rename to modules/action/SCsub diff --git a/modules/command/action_factory.cpp b/modules/action/action_factory.cpp similarity index 52% rename from modules/command/action_factory.cpp rename to modules/action/action_factory.cpp index 1c2541c..dd7a0b6 100644 --- a/modules/command/action_factory.cpp +++ b/modules/action/action_factory.cpp @@ -24,930 +24,931 @@ #include "modules/debug/debug.h" #include "modules/networkconnection/network_data.h" #include "modules/networkconnection/state_connexion.h" -#include "modules/command/action_factory.h" #include "modules/referentialmessage/referentialmessage.h" #include "modules/referentialmessage/referentialmessagecore.h" +#include "modules/impulse/impulsebase.h" +#include "action_factory.h" void ActionFactory::decode_message(NetworkData * data, Ref msgin) { Dictionary value; ReferentialMessage ref_msg; uint32_t id = ref_msg.read_command(msgin); - DBG_PRINT("Decode message:" + get_command_name(id)); + DBG_PRINT("Decode message:" + ImpulseBase::get_command_name(id)); value["command"] = id; #ifdef DEBUG_ENABLED - value["command_debug"] = get_command_name(id); + value["command_debug"] = ImpulseBase::get_command_name(id); #endif switch(id) { - case ReferentialMessageCore::Command::TARGET_PARTY: + case ImpulseBase::Impulse::TARGET_PARTY: { break; } - case ReferentialMessageCore::Command::TARGET_INVENTORY: + case ImpulseBase::Impulse::TARGET_INVENTORY: { break; } - case ReferentialMessageCore::Command::TARGET_FOLLOW: + case ImpulseBase::Impulse::TARGET_FOLLOW: { break; } - case ReferentialMessageCore::Command::TARGET_NO_FOLLOW: + case ImpulseBase::Impulse::TARGET_NO_FOLLOW: { break; } - case ReferentialMessageCore::Command::CONNECTION_USER_CHAR: + case ImpulseBase::Impulse::CONNECTION_USER_CHAR: { break; } - case ReferentialMessageCore::Command::CONNECTION_NO_USER_CHAR: + case ImpulseBase::Impulse::CONNECTION_NO_USER_CHAR: { break; } - case ReferentialMessageCore::Command::CONNECTION_USER_CHARS: + case ImpulseBase::Impulse::CONNECTION_USER_CHARS: { break; } - case ReferentialMessageCore::Command::CONNECTION_CREATE_CHAR: + case ImpulseBase::Impulse::CONNECTION_CREATE_CHAR: { break; } - case ReferentialMessageCore::Command::CONNECTION_SELECT_CHAR: + case ImpulseBase::Impulse::CONNECTION_SELECT_CHAR: { break; } - case ReferentialMessageCore::Command::CONNECTION_DELETE_CHAR: + case ImpulseBase::Impulse::CONNECTION_DELETE_CHAR: { break; } - case ReferentialMessageCore::Command::CONNECTION_RENAME_CHAR: + case ImpulseBase::Impulse::CONNECTION_RENAME_CHAR: { break; } - case ReferentialMessageCore::Command::CONNECTION_ENTER: + case ImpulseBase::Impulse::CONNECTION_ENTER: { break; } - case ReferentialMessageCore::Command::CONNECTION_READY: + case ImpulseBase::Impulse::CONNECTION_READY: { break; } - case ReferentialMessageCore::Command::CONNECTION_TIME_DATE_SYNCHRO: + case ImpulseBase::Impulse::CONNECTION_TIME_DATE_SYNCHRO: { break; } - case ReferentialMessageCore::Command::CONNECTION_ASK_NAME: + case ImpulseBase::Impulse::CONNECTION_ASK_NAME: { break; } - case ReferentialMessageCore::Command::CONNECTION_VALID_NAME: + case ImpulseBase::Impulse::CONNECTION_VALID_NAME: { break; } - case ReferentialMessageCore::Command::CONNECTION_CREATE_CHAR_ERROR: + case ImpulseBase::Impulse::CONNECTION_CREATE_CHAR_ERROR: { break; } - case ReferentialMessageCore::Command::CONNECTION_RECONNECT: + case ImpulseBase::Impulse::CONNECTION_RECONNECT: { break; } - case ReferentialMessageCore::Command::CONNECTION_SERVER_RECONNECT_OK: + case ImpulseBase::Impulse::CONNECTION_SERVER_RECONNECT_OK: { break; } - case ReferentialMessageCore::Command::CONNECTION_SHARD_ID: + case ImpulseBase::Impulse::CONNECTION_SHARD_ID: { break; } - case ReferentialMessageCore::Command::CONNECTION_SERVER_QUIT_OK: + case ImpulseBase::Impulse::CONNECTION_SERVER_QUIT_OK: { break; } - case ReferentialMessageCore::Command::CONNECTION_SERVER_QUIT_ABORT: + case ImpulseBase::Impulse::CONNECTION_SERVER_QUIT_ABORT: { break; } - case ReferentialMessageCore::Command::CONNECTION_CLIENT_QUIT_REQUEST: + case ImpulseBase::Impulse::CONNECTION_CLIENT_QUIT_REQUEST: { break; } - case ReferentialMessageCore::Command::CONNECTION_MAIL_AVAILABLE: + case ImpulseBase::Impulse::CONNECTION_MAIL_AVAILABLE: { break; } - case ReferentialMessageCore::Command::CONNECTION_GUILD_MESSAGE_AVAILABLE: + case ImpulseBase::Impulse::CONNECTION_GUILD_MESSAGE_AVAILABLE: { break; } - case ReferentialMessageCore::Command::CONNECTION_PERMANENT_BAN: + case ImpulseBase::Impulse::CONNECTION_PERMANENT_BAN: { break; } - case ReferentialMessageCore::Command::CONNECTION_UNBAN: + case ImpulseBase::Impulse::CONNECTION_UNBAN: { break; } - case ReferentialMessageCore::Command::CONNECTION_FAR_TP: + case ImpulseBase::Impulse::CONNECTION_FAR_TP: { break; } - case ReferentialMessageCore::Command::CONNECTION_RET_MAINLAND: + case ImpulseBase::Impulse::CONNECTION_RET_MAINLAND: { break; } - case ReferentialMessageCore::Command::DB_UPD_PLR: + case ImpulseBase::Impulse::DB_UPD_PLR: { break; } - case ReferentialMessageCore::Command::DB_UPD_INV: + case ImpulseBase::Impulse::DB_UPD_INV: { break; } - case ReferentialMessageCore::Command::DB_INIT_PLR: + case ImpulseBase::Impulse::DB_INIT_PLR: { break; } - case ReferentialMessageCore::Command::DB_INIT_INV: + case ImpulseBase::Impulse::DB_INIT_INV: { break; } - case ReferentialMessageCore::Command::DB_GROUP_UPDATE_BANK: + case ImpulseBase::Impulse::DB_GROUP_UPDATE_BANK: { break; } - case ReferentialMessageCore::Command::DB_GROUP_INIT_BANK: + case ImpulseBase::Impulse::DB_GROUP_INIT_BANK: { break; } - case ReferentialMessageCore::Command::DB_GROUP_RESET_BANK: + case ImpulseBase::Impulse::DB_GROUP_RESET_BANK: { break; } - case ReferentialMessageCore::Command::POSITION: + case ImpulseBase::Impulse::POSITION: { break; } - case ReferentialMessageCore::Command::HARVEST_DEPOSIT: + case ImpulseBase::Impulse::HARVEST_DEPOSIT: { break; } - case ReferentialMessageCore::Command::HARVEST_CORPSE: + case ImpulseBase::Impulse::HARVEST_CORPSE: { break; } - case ReferentialMessageCore::Command::HARVEST_INTERRUPT: + case ImpulseBase::Impulse::HARVEST_INTERRUPT: { break; } - case ReferentialMessageCore::Command::HARVEST_CLOSE_TEMP_INVENTORY: + case ImpulseBase::Impulse::HARVEST_CLOSE_TEMP_INVENTORY: { break; } - case ReferentialMessageCore::Command::TRAINING: + case ImpulseBase::Impulse::TRAINING: { break; } - case ReferentialMessageCore::Command::JOB_SET_JOB_STATUS: + case ImpulseBase::Impulse::JOB_SET_JOB_STATUS: { break; } - case ReferentialMessageCore::Command::JOB_SWAP_JOB_STATUS: + case ImpulseBase::Impulse::JOB_SWAP_JOB_STATUS: { break; } - case ReferentialMessageCore::Command::CASTING_BEGIN: + case ImpulseBase::Impulse::CASTING_BEGIN: { break; } - case ReferentialMessageCore::Command::CASTING_INTERRUPT: + case ImpulseBase::Impulse::CASTING_INTERRUPT: { break; } - case ReferentialMessageCore::Command::FABER_OPEN: + case ImpulseBase::Impulse::FABER_OPEN: { break; } - case ReferentialMessageCore::Command::FABER_CLOSE: + case ImpulseBase::Impulse::FABER_CLOSE: { break; } - case ReferentialMessageCore::Command::FABER_EXECUTE: + case ImpulseBase::Impulse::FABER_EXECUTE: { break; } - case ReferentialMessageCore::Command::FABER_SET_NUM_ITEM: + case ImpulseBase::Impulse::FABER_SET_NUM_ITEM: { break; } - case ReferentialMessageCore::Command::FABER_START_CREATE: + case ImpulseBase::Impulse::FABER_START_CREATE: { break; } - case ReferentialMessageCore::Command::FABER_START_REPAIR: + case ImpulseBase::Impulse::FABER_START_REPAIR: { break; } - case ReferentialMessageCore::Command::FABER_START_REFINE: + case ImpulseBase::Impulse::FABER_START_REFINE: { break; } - case ReferentialMessageCore::Command::FABER_SET_MP_QUALITY: + case ImpulseBase::Impulse::FABER_SET_MP_QUALITY: { break; } - case ReferentialMessageCore::Command::FABER_SET_MP_REFINE: + case ImpulseBase::Impulse::FABER_SET_MP_REFINE: { break; } - case ReferentialMessageCore::Command::FABER_SET_TOOL: + case ImpulseBase::Impulse::FABER_SET_TOOL: { break; } - case ReferentialMessageCore::Command::FABER_RESET_TOOL: + case ImpulseBase::Impulse::FABER_RESET_TOOL: { break; } - case ReferentialMessageCore::Command::FABER_INTERRUPT: + case ImpulseBase::Impulse::FABER_INTERRUPT: { break; } - case ReferentialMessageCore::Command::COMBAT_ENGAGE: + case ImpulseBase::Impulse::COMBAT_ENGAGE: { break; } - case ReferentialMessageCore::Command::COMBAT_DISENGAGE: + case ImpulseBase::Impulse::COMBAT_DISENGAGE: { break; } - case ReferentialMessageCore::Command::COMBAT_DEFAULT_ATTACK: + case ImpulseBase::Impulse::COMBAT_DEFAULT_ATTACK: { break; } - case ReferentialMessageCore::Command::COMBAT_ENGAGE_FAILED: + case ImpulseBase::Impulse::COMBAT_ENGAGE_FAILED: { break; } - case ReferentialMessageCore::Command::COMBAT_VALIDATE_MELEE: + case ImpulseBase::Impulse::COMBAT_VALIDATE_MELEE: { break; } - case ReferentialMessageCore::Command::COMBAT_PARRY: + case ImpulseBase::Impulse::COMBAT_PARRY: { break; } - case ReferentialMessageCore::Command::COMBAT_DODGE: + case ImpulseBase::Impulse::COMBAT_DODGE: { break; } - case ReferentialMessageCore::Command::COMBAT_PROTECTED_SLOT: + case ImpulseBase::Impulse::COMBAT_PROTECTED_SLOT: { break; } - case ReferentialMessageCore::Command::COMBAT_FLYING_ChaScore1_DELTA: + case ImpulseBase::Impulse::COMBAT_FLYING_ChaScore1_DELTA: { break; } - case ReferentialMessageCore::Command::COMBAT_FLYING_TEXT_ISE: + case ImpulseBase::Impulse::COMBAT_FLYING_TEXT_ISE: { break; } - case ReferentialMessageCore::Command::COMBAT_FLYING_TEXT: + case ImpulseBase::Impulse::COMBAT_FLYING_TEXT: { break; } - case ReferentialMessageCore::Command::STRING_TELL: + case ImpulseBase::Impulse::STRING_TELL: { break; } - case ReferentialMessageCore::Command::STRING_FAR_TELL: + case ImpulseBase::Impulse::STRING_FAR_TELL: { break; } - case ReferentialMessageCore::Command::STRING_CHAT: + case ImpulseBase::Impulse::STRING_CHAT: { break; } - case ReferentialMessageCore::Command::STRING_CHAT_TEAM: + case ImpulseBase::Impulse::STRING_CHAT_TEAM: { break; } - case ReferentialMessageCore::Command::STRING_ADD_DYN_STR: + case ImpulseBase::Impulse::STRING_ADD_DYN_STR: { break; } - case ReferentialMessageCore::Command::STRING_FILTER: + case ImpulseBase::Impulse::STRING_FILTER: { break; } - case ReferentialMessageCore::Command::STRING_CHAT_MODE: + case ImpulseBase::Impulse::STRING_CHAT_MODE: { break; } - case ReferentialMessageCore::Command::STRING_CHAT2: + case ImpulseBase::Impulse::STRING_CHAT2: { break; } - case ReferentialMessageCore::Command::STRING_TELL2: + case ImpulseBase::Impulse::STRING_TELL2: { break; } - case ReferentialMessageCore::Command::STRING_DYN_STRING: + case ImpulseBase::Impulse::STRING_DYN_STRING: { break; } - case ReferentialMessageCore::Command::STRING_DYN_STRING_GROUP: + case ImpulseBase::Impulse::STRING_DYN_STRING_GROUP: { break; } - case ReferentialMessageCore::Command::STRING_AFK_TXT: + case ImpulseBase::Impulse::STRING_AFK_TXT: { break; } - case ReferentialMessageCore::Command::STUN_STUN: + case ImpulseBase::Impulse::STUN_STUN: { break; } - case ReferentialMessageCore::Command::STUN_WAKE_UP: + case ImpulseBase::Impulse::STUN_WAKE_UP: { break; } - case ReferentialMessageCore::Command::SENTENCE_EXECUTE: + case ImpulseBase::Impulse::SENTENCE_EXECUTE: { break; } - case ReferentialMessageCore::Command::SENTENCE_CANCEL: + case ImpulseBase::Impulse::SENTENCE_CANCEL: { break; } - case ReferentialMessageCore::Command::SENTENCE_CANCEL_CURRENT: + case ImpulseBase::Impulse::SENTENCE_CANCEL_CURRENT: { break; } - case ReferentialMessageCore::Command::SENTENCE_CANCEL_ALL: + case ImpulseBase::Impulse::SENTENCE_CANCEL_ALL: { break; } - case ReferentialMessageCore::Command::SENTENCE_CLEAR: + case ImpulseBase::Impulse::SENTENCE_CLEAR: { break; } - case ReferentialMessageCore::Command::SENTENCE_MEMORIZE: + case ImpulseBase::Impulse::SENTENCE_MEMORIZE: { break; } - case ReferentialMessageCore::Command::SENTENCE_FORGET: + case ImpulseBase::Impulse::SENTENCE_FORGET: { break; } - case ReferentialMessageCore::Command::SENTENCE_EVALUATE: + case ImpulseBase::Impulse::SENTENCE_EVALUATE: { break; } - case ReferentialMessageCore::Command::SENTENCE_ADD_BRICK: + case ImpulseBase::Impulse::SENTENCE_ADD_BRICK: { break; } - case ReferentialMessageCore::Command::SENTENCE_REMOVE_BRICK: + case ImpulseBase::Impulse::SENTENCE_REMOVE_BRICK: { break; } - case ReferentialMessageCore::Command::SENTENCE_START: + case ImpulseBase::Impulse::SENTENCE_START: { break; } - case ReferentialMessageCore::Command::SENTENCE_STOP: + case ImpulseBase::Impulse::SENTENCE_STOP: { break; } - case ReferentialMessageCore::Command::TEAM_JOIN: + case ImpulseBase::Impulse::TEAM_JOIN: { break; } - case ReferentialMessageCore::Command::TEAM_LEAVE: + case ImpulseBase::Impulse::TEAM_LEAVE: { break; } - case ReferentialMessageCore::Command::TEAM_INVITATION: + case ImpulseBase::Impulse::TEAM_INVITATION: { break; } - case ReferentialMessageCore::Command::TEAM_JOIN_PROPOSAL: + case ImpulseBase::Impulse::TEAM_JOIN_PROPOSAL: { break; } - case ReferentialMessageCore::Command::TEAM_JOIN_PROPOSAL_DECLINE: + case ImpulseBase::Impulse::TEAM_JOIN_PROPOSAL_DECLINE: { break; } - case ReferentialMessageCore::Command::TEAM_KICK: + case ImpulseBase::Impulse::TEAM_KICK: { break; } - case ReferentialMessageCore::Command::TEAM_SET_SUCCESSOR: + case ImpulseBase::Impulse::TEAM_SET_SUCCESSOR: { break; } - case ReferentialMessageCore::Command::TEAM_SHARE_OPEN: + case ImpulseBase::Impulse::TEAM_SHARE_OPEN: { break; } - case ReferentialMessageCore::Command::TEAM_SHARE_VALID_ITEM: + case ImpulseBase::Impulse::TEAM_SHARE_VALID_ITEM: { break; } - case ReferentialMessageCore::Command::TEAM_SHARE_INVALID_ITEM: + case ImpulseBase::Impulse::TEAM_SHARE_INVALID_ITEM: { break; } - case ReferentialMessageCore::Command::TEAM_SHARE_VALID: + case ImpulseBase::Impulse::TEAM_SHARE_VALID: { break; } - case ReferentialMessageCore::Command::TEAM_SHARE_INVALID: + case ImpulseBase::Impulse::TEAM_SHARE_INVALID: { break; } - case ReferentialMessageCore::Command::TEAM_SHARE_CLOSE: + case ImpulseBase::Impulse::TEAM_SHARE_CLOSE: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_INIT: + case ImpulseBase::Impulse::TEAM_CONTACT_INIT: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_ADD: + case ImpulseBase::Impulse::TEAM_CONTACT_ADD: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_DEL: + case ImpulseBase::Impulse::TEAM_CONTACT_DEL: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_MOVE: + case ImpulseBase::Impulse::TEAM_CONTACT_MOVE: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_CREATE: + case ImpulseBase::Impulse::TEAM_CONTACT_CREATE: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_STATUS: + case ImpulseBase::Impulse::TEAM_CONTACT_STATUS: { break; } - case ReferentialMessageCore::Command::TEAM_CONTACT_REMOVE: + case ImpulseBase::Impulse::TEAM_CONTACT_REMOVE: { break; } - case ReferentialMessageCore::Command::ITEM_DROP: + case ImpulseBase::Impulse::ITEM_DROP: { break; } - case ReferentialMessageCore::Command::ITEM_PICK_UP: + case ImpulseBase::Impulse::ITEM_PICK_UP: { break; } - case ReferentialMessageCore::Command::ITEM_PICK_UP_CLOSE: + case ImpulseBase::Impulse::ITEM_PICK_UP_CLOSE: { break; } - case ReferentialMessageCore::Command::ITEM_SWAP: + case ImpulseBase::Impulse::ITEM_SWAP: { break; } - case ReferentialMessageCore::Command::ITEM_ACTIVATE_SHEATH: + case ImpulseBase::Impulse::ITEM_ACTIVATE_SHEATH: { break; } - case ReferentialMessageCore::Command::ITEM_HARVEST: + case ImpulseBase::Impulse::ITEM_HARVEST: { break; } - case ReferentialMessageCore::Command::ITEM_HARVEST_CLOSE: + case ImpulseBase::Impulse::ITEM_HARVEST_CLOSE: { break; } - case ReferentialMessageCore::Command::ITEM_GIVE: + case ImpulseBase::Impulse::ITEM_GIVE: { break; } - case ReferentialMessageCore::Command::ITEM_DESTROY: + case ImpulseBase::Impulse::ITEM_DESTROY: { break; } - case ReferentialMessageCore::Command::ITEM_EQUIP: + case ImpulseBase::Impulse::ITEM_EQUIP: { break; } - case ReferentialMessageCore::Command::ITEM_UNEQUIP: + case ImpulseBase::Impulse::ITEM_UNEQUIP: { break; } - case ReferentialMessageCore::Command::ITEM_TEMP_TO_BAG: + case ImpulseBase::Impulse::ITEM_TEMP_TO_BAG: { break; } - case ReferentialMessageCore::Command::ITEM_ALL_TEMP: + case ImpulseBase::Impulse::ITEM_ALL_TEMP: { break; } - case ReferentialMessageCore::Command::ITEM_NO_TEMP: + case ImpulseBase::Impulse::ITEM_NO_TEMP: { break; } - case ReferentialMessageCore::Command::ITEM_ENCHANT: + case ImpulseBase::Impulse::ITEM_ENCHANT: { break; } - case ReferentialMessageCore::Command::ITEM_OPEN_ROOM_INVENTORY: + case ImpulseBase::Impulse::ITEM_OPEN_ROOM_INVENTORY: { break; } - case ReferentialMessageCore::Command::ITEM_CLOSE_ROOM_INVENTORY: + case ImpulseBase::Impulse::ITEM_CLOSE_ROOM_INVENTORY: { break; } - case ReferentialMessageCore::Command::ITEM_USE_ITEM: + case ImpulseBase::Impulse::ITEM_USE_ITEM: { break; } - case ReferentialMessageCore::Command::ITEM_STOP_USE_XP_CAT: + case ImpulseBase::Impulse::ITEM_STOP_USE_XP_CAT: { break; } - case ReferentialMessageCore::Command::TP_RESPAWN: + case ImpulseBase::Impulse::TP_RESPAWN: { break; } - case ReferentialMessageCore::Command::TP_BOT: + case ImpulseBase::Impulse::TP_BOT: { break; } - case ReferentialMessageCore::Command::TP_WANTED: + case ImpulseBase::Impulse::TP_WANTED: { break; } - case ReferentialMessageCore::Command::TP_DEST: + case ImpulseBase::Impulse::TP_DEST: { break; } - case ReferentialMessageCore::Command::TP_DEST_WITH_SEASON: + case ImpulseBase::Impulse::TP_DEST_WITH_SEASON: { break; } - case ReferentialMessageCore::Command::TP_ACK: + case ImpulseBase::Impulse::TP_ACK: { break; } - case ReferentialMessageCore::Command::TP_CORRECT: + case ImpulseBase::Impulse::TP_CORRECT: { break; } - case ReferentialMessageCore::Command::DEATH_RESPAWN_POINT: + case ImpulseBase::Impulse::DEATH_RESPAWN_POINT: { break; } - case ReferentialMessageCore::Command::DEATH_ASK_RESPAWN: + case ImpulseBase::Impulse::DEATH_ASK_RESPAWN: { break; } - case ReferentialMessageCore::Command::DEATH_RESPAWN: + case ImpulseBase::Impulse::DEATH_RESPAWN: { break; } - case ReferentialMessageCore::Command::ANIMALS_BEAST: + case ImpulseBase::Impulse::ANIMALS_BEAST: { break; } - case ReferentialMessageCore::Command::ANIMALS_MOUNT_ABORT: + case ImpulseBase::Impulse::ANIMALS_MOUNT_ABORT: { break; } - case ReferentialMessageCore::Command::EXCHANGE_INVITATION: + case ImpulseBase::Impulse::EXCHANGE_INVITATION: { break; } - case ReferentialMessageCore::Command::EXCHANGE_CLOSE_INVITATION: + case ImpulseBase::Impulse::EXCHANGE_CLOSE_INVITATION: { break; } - case ReferentialMessageCore::Command::EXCHANGE_PROPOSAL: + case ImpulseBase::Impulse::EXCHANGE_PROPOSAL: { break; } - case ReferentialMessageCore::Command::EXCHANGE_ACCEPT_INVITATION: + case ImpulseBase::Impulse::EXCHANGE_ACCEPT_INVITATION: { break; } - case ReferentialMessageCore::Command::EXCHANGE_DECLINE_INVITATION: + case ImpulseBase::Impulse::EXCHANGE_DECLINE_INVITATION: { break; } - case ReferentialMessageCore::Command::EXCHANGE_VALIDATE: + case ImpulseBase::Impulse::EXCHANGE_VALIDATE: { break; } - case ReferentialMessageCore::Command::EXCHANGE_INVALIDATE: + case ImpulseBase::Impulse::EXCHANGE_INVALIDATE: { break; } - case ReferentialMessageCore::Command::EXCHANGE_END: + case ImpulseBase::Impulse::EXCHANGE_END: { break; } - case ReferentialMessageCore::Command::EXCHANGE_SEEDS: + case ImpulseBase::Impulse::EXCHANGE_SEEDS: { break; } - case ReferentialMessageCore::Command::EXCHANGE_ADD: + case ImpulseBase::Impulse::EXCHANGE_ADD: { break; } - case ReferentialMessageCore::Command::EXCHANGE_REMOVE: + case ImpulseBase::Impulse::EXCHANGE_REMOVE: { break; } - case ReferentialMessageCore::Command::DEBUG_WHERE: + case ImpulseBase::Impulse::DEBUG_WHERE: { break; } - case ReferentialMessageCore::Command::DEBUG_WHO: + case ImpulseBase::Impulse::DEBUG_WHO: { break; } - case ReferentialMessageCore::Command::DEBUG_REPLY_WHERE: + case ImpulseBase::Impulse::DEBUG_REPLY_WHERE: { break; } - case ReferentialMessageCore::Command::DEBUG_SERVICES: + case ImpulseBase::Impulse::DEBUG_SERVICES: { break; } - case ReferentialMessageCore::Command::DEBUG_CMD: + case ImpulseBase::Impulse::DEBUG_CMD: { break; } - case ReferentialMessageCore::Command::DEBUG_PING: + case ImpulseBase::Impulse::DEBUG_PING: { break; } - case ReferentialMessageCore::Command::DEBUG_COUNTER: + case ImpulseBase::Impulse::DEBUG_COUNTER: { break; } - case ReferentialMessageCore::Command::COMMAND_EMOTE: + case ImpulseBase::Impulse::COMMAND_EMOTE: { break; } - case ReferentialMessageCore::Command::COMMAND_CUSTOM_EMOTE: + case ImpulseBase::Impulse::COMMAND_CUSTOM_EMOTE: { break; } - case ReferentialMessageCore::Command::COMMAND_WHERE: + case ImpulseBase::Impulse::COMMAND_WHERE: { break; } - case ReferentialMessageCore::Command::COMMAND_ADMIN: + case ImpulseBase::Impulse::COMMAND_ADMIN: { break; } - case ReferentialMessageCore::Command::COMMAND_ADMIN_OFFLINE: + case ImpulseBase::Impulse::COMMAND_ADMIN_OFFLINE: { break; } - case ReferentialMessageCore::Command::COMMAND_REMOTE_ADMIN: + case ImpulseBase::Impulse::COMMAND_REMOTE_ADMIN: { break; } - case ReferentialMessageCore::Command::COMMAND_REMOTE_ADMIN_ANSWER: + case ImpulseBase::Impulse::COMMAND_REMOTE_ADMIN_ANSWER: { break; } - case ReferentialMessageCore::Command::COMMAND_SIT: + case ImpulseBase::Impulse::COMMAND_SIT: { break; } - case ReferentialMessageCore::Command::COMMAND_AFK: + case ImpulseBase::Impulse::COMMAND_AFK: { break; } - case ReferentialMessageCore::Command::COMMAND_RANDOM: + case ImpulseBase::Impulse::COMMAND_RANDOM: { break; } - case ReferentialMessageCore::Command::COMMAND_GUILDMOTD: + case ImpulseBase::Impulse::COMMAND_GUILDMOTD: { break; } - case ReferentialMessageCore::Command::MP_EVAL_SET_MP: + case ImpulseBase::Impulse::MP_EVAL_SET_MP: { break; } - case ReferentialMessageCore::Command::MP_EVAL_SET_MP_LEVEL: + case ImpulseBase::Impulse::MP_EVAL_SET_MP_LEVEL: { break; } - case ReferentialMessageCore::Command::MP_EVAL_SET_MARKET: + case ImpulseBase::Impulse::MP_EVAL_SET_MARKET: { break; } - case ReferentialMessageCore::Command::MP_EVAL_EXECUTE: + case ImpulseBase::Impulse::MP_EVAL_EXECUTE: { break; } - case ReferentialMessageCore::Command::BOTCHAT_NEXT_PAGE_ITEM: + case ImpulseBase::Impulse::BOTCHAT_NEXT_PAGE_ITEM: { break; } - case ReferentialMessageCore::Command::BOTCHAT_NEXT_PAGE_MISSION: + case ImpulseBase::Impulse::BOTCHAT_NEXT_PAGE_MISSION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_ITEM: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_ITEM: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_TELEPORT: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_TELEPORT: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_FACTION: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_FACTION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_SKILL: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_SKILL: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_PACT: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_PACT: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_ACTION: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_ACTION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_BUY: + case ImpulseBase::Impulse::BOTCHAT_BUY: { break; } - case ReferentialMessageCore::Command::BOTCHAT_SELL: + case ImpulseBase::Impulse::BOTCHAT_SELL: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DESTROY_ITEM: + case ImpulseBase::Impulse::BOTCHAT_DESTROY_ITEM: { break; } - case ReferentialMessageCore::Command::BOTCHAT_REFRESH_TRADE_LIST: + case ImpulseBase::Impulse::BOTCHAT_REFRESH_TRADE_LIST: { break; } - case ReferentialMessageCore::Command::BOTCHAT_SET_FILTERS: + case ImpulseBase::Impulse::BOTCHAT_SET_FILTERS: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_CHOOSE_MISSION: + case ImpulseBase::Impulse::BOTCHAT_START_CHOOSE_MISSION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_DYNAMIC_MISSION: + case ImpulseBase::Impulse::BOTCHAT_START_DYNAMIC_MISSION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_CONTINUE_MISSION: + case ImpulseBase::Impulse::BOTCHAT_CONTINUE_MISSION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_VALIDATE_PLAYER_GIFT: + case ImpulseBase::Impulse::BOTCHAT_VALIDATE_PLAYER_GIFT: { break; } - case ReferentialMessageCore::Command::BOTCHAT_PICK_MISSION: + case ImpulseBase::Impulse::BOTCHAT_PICK_MISSION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DM_CHOICE: + case ImpulseBase::Impulse::BOTCHAT_DM_CHOICE: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DM_ACCEPT: + case ImpulseBase::Impulse::BOTCHAT_DM_ACCEPT: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_NEWS: + case ImpulseBase::Impulse::BOTCHAT_START_NEWS: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_CREATE_GUILD: + case ImpulseBase::Impulse::BOTCHAT_START_CREATE_GUILD: { break; } - case ReferentialMessageCore::Command::BOTCHAT_END: + case ImpulseBase::Impulse::BOTCHAT_END: { break; } - case ReferentialMessageCore::Command::BOTCHAT_FORCE_END: + case ImpulseBase::Impulse::BOTCHAT_FORCE_END: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_CHOOSE_DUTY: + case ImpulseBase::Impulse::BOTCHAT_START_CHOOSE_DUTY: { break; } - case ReferentialMessageCore::Command::BOTCHAT_NEXT_PAGE_DUTY: + case ImpulseBase::Impulse::BOTCHAT_NEXT_PAGE_DUTY: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DUTY_APPLY: + case ImpulseBase::Impulse::BOTCHAT_DUTY_APPLY: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DUTY_CANCEL_APPLY: + case ImpulseBase::Impulse::BOTCHAT_DUTY_CANCEL_APPLY: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_GUILD_OPTIONS: + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_GUILD_OPTIONS: { break; } - case ReferentialMessageCore::Command::BOTCHAT_BUY_GUILD_OPTION: + case ImpulseBase::Impulse::BOTCHAT_BUY_GUILD_OPTION: { break; } - case ReferentialMessageCore::Command::BOTCHAT_START_GUILD_RESEARCH: + case ImpulseBase::Impulse::BOTCHAT_START_GUILD_RESEARCH: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DESTROY_BUILDING: + case ImpulseBase::Impulse::BOTCHAT_DESTROY_BUILDING: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DYNCHAT_OPEN: + case ImpulseBase::Impulse::BOTCHAT_DYNCHAT_OPEN: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DYNCHAT_CLOSE: + case ImpulseBase::Impulse::BOTCHAT_DYNCHAT_CLOSE: { break; } - case ReferentialMessageCore::Command::BOTCHAT_DYNCHAT_SEND: + case ImpulseBase::Impulse::BOTCHAT_DYNCHAT_SEND: { break; } - case ReferentialMessageCore::Command::JOURNAL_INIT_COMPLETED_MISSIONS: + case ImpulseBase::Impulse::JOURNAL_INIT_COMPLETED_MISSIONS: { break; } - case ReferentialMessageCore::Command::JOURNAL_UPDATE_COMPLETED_MISSIONS: + case ImpulseBase::Impulse::JOURNAL_UPDATE_COMPLETED_MISSIONS: { break; } - case ReferentialMessageCore::Command::JOURNAL_MISSION_ABANDON: + case ImpulseBase::Impulse::JOURNAL_MISSION_ABANDON: { break; } - case ReferentialMessageCore::Command::JOURNAL_GROUP_MISSION_ABANDON: + case ImpulseBase::Impulse::JOURNAL_GROUP_MISSION_ABANDON: { break; } - case ReferentialMessageCore::Command::JOURNAL_ADD_COMPASS: + case ImpulseBase::Impulse::JOURNAL_ADD_COMPASS: { break; } - case ReferentialMessageCore::Command::JOURNAL_ADD_COMPASS_BOT: + case ImpulseBase::Impulse::JOURNAL_ADD_COMPASS_BOT: { break; } - case ReferentialMessageCore::Command::JOURNAL_REMOVE_COMPASS: + case ImpulseBase::Impulse::JOURNAL_REMOVE_COMPASS: { break; } - case ReferentialMessageCore::Command::JOURNAL_REMOVE_COMPASS_BOT: + case ImpulseBase::Impulse::JOURNAL_REMOVE_COMPASS_BOT: { break; } - case ReferentialMessageCore::Command::STRING_MANAGER_SET_LANGUAGE: + case ImpulseBase::Impulse::STRING_MANAGER_SET_LANGUAGE: { break; } - case ReferentialMessageCore::Command::STRING_MANAGER_PHRASE_SEND: + case ImpulseBase::Impulse::STRING_MANAGER_PHRASE_SEND: { break; } - case ReferentialMessageCore::Command::STRING_MANAGER_STRING_RQ: + case ImpulseBase::Impulse::STRING_MANAGER_STRING_RQ: { break; } - case ReferentialMessageCore::Command::STRING_MANAGER_STRING_RESP: + case ImpulseBase::Impulse::STRING_MANAGER_STRING_RESP: { break; } - case ReferentialMessageCore::Command::STRING_MANAGER_RELOAD_CACHE: + case ImpulseBase::Impulse::STRING_MANAGER_RELOAD_CACHE: { uint32_t timestamp = msgin->get_uint32(); - DBG_PRINT("Decode message:" + get_command_name(id) + " timestamp:" + itos(timestamp)); + DBG_PRINT("Decode message:" + ImpulseBase::get_command_name(id) + " timestamp:" + itos(timestamp)); //param.push_back(timestamp); value["timestamp"] = timestamp; @@ -955,431 +956,431 @@ void ActionFactory::decode_message(NetworkData * data, Ref msgin) data->_server_messages.push_back(value); break; } - case ReferentialMessageCore::Command::GUILD_CREATE: + case ImpulseBase::Impulse::GUILD_CREATE: { break; } - case ReferentialMessageCore::Command::GUILD_ABORT_CREATION: + case ImpulseBase::Impulse::GUILD_ABORT_CREATION: { break; } - case ReferentialMessageCore::Command::GUILD_OPEN_GUILD_WINDOW: + case ImpulseBase::Impulse::GUILD_OPEN_GUILD_WINDOW: { break; } - case ReferentialMessageCore::Command::GUILD_INVITATION: + case ImpulseBase::Impulse::GUILD_INVITATION: { break; } - case ReferentialMessageCore::Command::GUILD_ACCEPT_INVITATION: + case ImpulseBase::Impulse::GUILD_ACCEPT_INVITATION: { break; } - case ReferentialMessageCore::Command::GUILD_REFUSE_INVITATION: + case ImpulseBase::Impulse::GUILD_REFUSE_INVITATION: { break; } - case ReferentialMessageCore::Command::GUILD_JOIN_PROPOSAL: + case ImpulseBase::Impulse::GUILD_JOIN_PROPOSAL: { break; } - case ReferentialMessageCore::Command::GUILD_SET_GRADE: + case ImpulseBase::Impulse::GUILD_SET_GRADE: { break; } - case ReferentialMessageCore::Command::GUILD_SET_LEADER: + case ImpulseBase::Impulse::GUILD_SET_LEADER: { break; } - case ReferentialMessageCore::Command::GUILD_KICK_MEMBER: + case ImpulseBase::Impulse::GUILD_KICK_MEMBER: { break; } - case ReferentialMessageCore::Command::GUILD_TELEPORT: + case ImpulseBase::Impulse::GUILD_TELEPORT: { break; } - case ReferentialMessageCore::Command::GUILD_ASCENSOR: + case ImpulseBase::Impulse::GUILD_ASCENSOR: { break; } - case ReferentialMessageCore::Command::GUILD_FIRST_ASCENSOR_PAGE: + case ImpulseBase::Impulse::GUILD_FIRST_ASCENSOR_PAGE: { break; } - case ReferentialMessageCore::Command::GUILD_NEXT_ASCENSOR_PAGE: + case ImpulseBase::Impulse::GUILD_NEXT_ASCENSOR_PAGE: { break; } - case ReferentialMessageCore::Command::GUILD_LEAVE_ASCENSOR: + case ImpulseBase::Impulse::GUILD_LEAVE_ASCENSOR: { break; } - case ReferentialMessageCore::Command::GUILD_QUIT: + case ImpulseBase::Impulse::GUILD_QUIT: { break; } - case ReferentialMessageCore::Command::GUILD_SET_PLAYER_TITLE: + case ImpulseBase::Impulse::GUILD_SET_PLAYER_TITLE: { break; } - case ReferentialMessageCore::Command::GUILD_UPDATE_PLAYER_TITLE: + case ImpulseBase::Impulse::GUILD_UPDATE_PLAYER_TITLE: { break; } - case ReferentialMessageCore::Command::GUILD_USE_FEMALE_TITLES: + case ImpulseBase::Impulse::GUILD_USE_FEMALE_TITLES: { break; } - case ReferentialMessageCore::Command::GUILD_PUT_MONEY: + case ImpulseBase::Impulse::GUILD_PUT_MONEY: { break; } - case ReferentialMessageCore::Command::GUILD_TAKE_MONEY: + case ImpulseBase::Impulse::GUILD_TAKE_MONEY: { break; } - case ReferentialMessageCore::Command::GUILD_OPEN_INVENTORY: + case ImpulseBase::Impulse::GUILD_OPEN_INVENTORY: { break; } - case ReferentialMessageCore::Command::GUILD_CLOSE_INVENTORY: + case ImpulseBase::Impulse::GUILD_CLOSE_INVENTORY: { break; } - case ReferentialMessageCore::Command::OUTPOST_GIVEUP_OUTPOST: + case ImpulseBase::Impulse::OUTPOST_GIVEUP_OUTPOST: { break; } - case ReferentialMessageCore::Command::OUTPOST_SELECT: + case ImpulseBase::Impulse::OUTPOST_SELECT: { break; } - case ReferentialMessageCore::Command::OUTPOST_UNSELECT: + case ImpulseBase::Impulse::OUTPOST_UNSELECT: { break; } - case ReferentialMessageCore::Command::OUTPOST_DECLARE_WAR_START: + case ImpulseBase::Impulse::OUTPOST_DECLARE_WAR_START: { break; } - case ReferentialMessageCore::Command::OUTPOST_DECLARE_WAR_ACK: + case ImpulseBase::Impulse::OUTPOST_DECLARE_WAR_ACK: { break; } - case ReferentialMessageCore::Command::OUTPOST_DECLARE_WAR_VALIDATE: + case ImpulseBase::Impulse::OUTPOST_DECLARE_WAR_VALIDATE: { break; } - case ReferentialMessageCore::Command::OUTPOST_SET_DEF_PERIOD: + case ImpulseBase::Impulse::OUTPOST_SET_DEF_PERIOD: { break; } - case ReferentialMessageCore::Command::OUTPOST_SET_SQUAD: + case ImpulseBase::Impulse::OUTPOST_SET_SQUAD: { break; } - case ReferentialMessageCore::Command::OUTPOST_SET_SQUAD_SPAWN: + case ImpulseBase::Impulse::OUTPOST_SET_SQUAD_SPAWN: { break; } - case ReferentialMessageCore::Command::OUTPOST_INSERT_SQUAD: + case ImpulseBase::Impulse::OUTPOST_INSERT_SQUAD: { break; } - case ReferentialMessageCore::Command::OUTPOST_REMOVE_SQUAD: + case ImpulseBase::Impulse::OUTPOST_REMOVE_SQUAD: { break; } - case ReferentialMessageCore::Command::OUTPOST_SET_SQUAD_CAPITAL: + case ImpulseBase::Impulse::OUTPOST_SET_SQUAD_CAPITAL: { break; } - case ReferentialMessageCore::Command::OUTPOST_CHOOSE_SIDE: + case ImpulseBase::Impulse::OUTPOST_CHOOSE_SIDE: { break; } - case ReferentialMessageCore::Command::OUTPOST_SIDE_CHOSEN: + case ImpulseBase::Impulse::OUTPOST_SIDE_CHOSEN: { break; } - case ReferentialMessageCore::Command::OUTPOST_BANISH_PLAYER: + case ImpulseBase::Impulse::OUTPOST_BANISH_PLAYER: { break; } - case ReferentialMessageCore::Command::OUTPOST_BANISH_GUILD: + case ImpulseBase::Impulse::OUTPOST_BANISH_GUILD: { break; } - case ReferentialMessageCore::Command::OUTPOST_BUY_BUILDING: + case ImpulseBase::Impulse::OUTPOST_BUY_BUILDING: { break; } - case ReferentialMessageCore::Command::OUTPOST_DESTROY_BUILDING: + case ImpulseBase::Impulse::OUTPOST_DESTROY_BUILDING: { break; } - case ReferentialMessageCore::Command::PHRASE_DELETE: + case ImpulseBase::Impulse::PHRASE_DELETE: { break; } - case ReferentialMessageCore::Command::PHRASE_LEARN: + case ImpulseBase::Impulse::PHRASE_LEARN: { break; } - case ReferentialMessageCore::Command::PHRASE_MEMORIZE: + case ImpulseBase::Impulse::PHRASE_MEMORIZE: { break; } - case ReferentialMessageCore::Command::PHRASE_FORGET: + case ImpulseBase::Impulse::PHRASE_FORGET: { break; } - case ReferentialMessageCore::Command::PHRASE_EXECUTE: + case ImpulseBase::Impulse::PHRASE_EXECUTE: { break; } - case ReferentialMessageCore::Command::PHRASE_EXECUTE_CYCLIC: + case ImpulseBase::Impulse::PHRASE_EXECUTE_CYCLIC: { break; } - case ReferentialMessageCore::Command::PHRASE_EXECUTE_FABER: + case ImpulseBase::Impulse::PHRASE_EXECUTE_FABER: { break; } - case ReferentialMessageCore::Command::PHRASE_DOWNLOAD: + case ImpulseBase::Impulse::PHRASE_DOWNLOAD: { break; } - case ReferentialMessageCore::Command::PHRASE_BUY: + case ImpulseBase::Impulse::PHRASE_BUY: { break; } - case ReferentialMessageCore::Command::PHRASE_CONFIRM_BUY: + case ImpulseBase::Impulse::PHRASE_CONFIRM_BUY: { break; } - case ReferentialMessageCore::Command::PHRASE_BUY_SHEET: + case ImpulseBase::Impulse::PHRASE_BUY_SHEET: { break; } - case ReferentialMessageCore::Command::PHRASE_CANCEL_LINK: + case ImpulseBase::Impulse::PHRASE_CANCEL_LINK: { break; } - case ReferentialMessageCore::Command::PHRASE_CANCEL_TOP: + case ImpulseBase::Impulse::PHRASE_CANCEL_TOP: { break; } - case ReferentialMessageCore::Command::PHRASE_CANCEL_ALL: + case ImpulseBase::Impulse::PHRASE_CANCEL_ALL: { break; } - case ReferentialMessageCore::Command::PHRASE_CRISTALIZE: + case ImpulseBase::Impulse::PHRASE_CRISTALIZE: { break; } - case ReferentialMessageCore::Command::PHRASE_EXEC_CYCLIC_ACK: + case ImpulseBase::Impulse::PHRASE_EXEC_CYCLIC_ACK: { break; } - case ReferentialMessageCore::Command::PHRASE_EXEC_NEXT_ACK: + case ImpulseBase::Impulse::PHRASE_EXEC_NEXT_ACK: { break; } - case ReferentialMessageCore::Command::ITEM_INFO_GET: + case ImpulseBase::Impulse::ITEM_INFO_GET: { break; } - case ReferentialMessageCore::Command::ITEM_INFO_SET: + case ImpulseBase::Impulse::ITEM_INFO_SET: { break; } - case ReferentialMessageCore::Command::ITEM_INFO_REFRESH_VERSION: + case ImpulseBase::Impulse::ITEM_INFO_REFRESH_VERSION: { break; } - case ReferentialMessageCore::Command::MISSION_PREREQ_GET: + case ImpulseBase::Impulse::MISSION_PREREQ_GET: { break; } - case ReferentialMessageCore::Command::MISSION_PREREQ_SET: + case ImpulseBase::Impulse::MISSION_PREREQ_SET: { break; } - case ReferentialMessageCore::Command::MISSION_ENTER_CRITICAL: + case ImpulseBase::Impulse::MISSION_ENTER_CRITICAL: { break; } - case ReferentialMessageCore::Command::MISSION_ASK_ENTER_CRITICAL: + case ImpulseBase::Impulse::MISSION_ASK_ENTER_CRITICAL: { break; } - case ReferentialMessageCore::Command::MISSION_CLOSE_ENTER_CRITICAL: + case ImpulseBase::Impulse::MISSION_CLOSE_ENTER_CRITICAL: { break; } - case ReferentialMessageCore::Command::MISSION_WAKE: + case ImpulseBase::Impulse::MISSION_WAKE: { break; } - case ReferentialMessageCore::Command::MISSION_GROUP_WAKE: + case ImpulseBase::Impulse::MISSION_GROUP_WAKE: { break; } - case ReferentialMessageCore::Command::DUEL_ASK: + case ImpulseBase::Impulse::DUEL_ASK: { break; } - case ReferentialMessageCore::Command::DUEL_ACCEPT: + case ImpulseBase::Impulse::DUEL_ACCEPT: { break; } - case ReferentialMessageCore::Command::DUEL_REFUSE: + case ImpulseBase::Impulse::DUEL_REFUSE: { break; } - case ReferentialMessageCore::Command::DUEL_ABANDON: + case ImpulseBase::Impulse::DUEL_ABANDON: { break; } - case ReferentialMessageCore::Command::DUEL_INVITATION: + case ImpulseBase::Impulse::DUEL_INVITATION: { break; } - case ReferentialMessageCore::Command::DUEL_CANCEL_INVITATION: + case ImpulseBase::Impulse::DUEL_CANCEL_INVITATION: { break; } - case ReferentialMessageCore::Command::PVP_CHALLENGE_ASK: + case ImpulseBase::Impulse::PVP_CHALLENGE_ASK: { break; } - case ReferentialMessageCore::Command::PVP_CHALLENGE_ACCEPT: + case ImpulseBase::Impulse::PVP_CHALLENGE_ACCEPT: { break; } - case ReferentialMessageCore::Command::PVP_CHALLENGE_REFUSE: + case ImpulseBase::Impulse::PVP_CHALLENGE_REFUSE: { break; } - case ReferentialMessageCore::Command::PVP_CHALLENGE_ABANDON: + case ImpulseBase::Impulse::PVP_CHALLENGE_ABANDON: { break; } - case ReferentialMessageCore::Command::PVP_CHALLENGE_INVITATION: + case ImpulseBase::Impulse::PVP_CHALLENGE_INVITATION: { break; } - case ReferentialMessageCore::Command::PVP_CHALLENGE_CANCEL_INVITATION: + case ImpulseBase::Impulse::PVP_CHALLENGE_CANCEL_INVITATION: { break; } - case ReferentialMessageCore::Command::PVP_PVP_TAG: + case ImpulseBase::Impulse::PVP_PVP_TAG: { break; } - case ReferentialMessageCore::Command::PVP_SET_NEUTRAL_ALLEGIANCE: + case ImpulseBase::Impulse::PVP_SET_NEUTRAL_ALLEGIANCE: { break; } - case ReferentialMessageCore::Command::PVP_SET_NEUTRAL_ALLEGIANCE_GUILD: + case ImpulseBase::Impulse::PVP_SET_NEUTRAL_ALLEGIANCE_GUILD: { break; } - case ReferentialMessageCore::Command::PVP_FACTION_PUSH_FACTION_WAR: + case ImpulseBase::Impulse::PVP_FACTION_PUSH_FACTION_WAR: { break; } - case ReferentialMessageCore::Command::PVP_FACTION_POP_FACTION_WAR: + case ImpulseBase::Impulse::PVP_FACTION_POP_FACTION_WAR: { break; } - case ReferentialMessageCore::Command::PVP_FACTION_FACTION_WARS: + case ImpulseBase::Impulse::PVP_FACTION_FACTION_WARS: { break; } - case ReferentialMessageCore::Command::ENCYCLOPEDIA_UPDATE: + case ImpulseBase::Impulse::ENCYCLOPEDIA_UPDATE: { break; } - case ReferentialMessageCore::Command::ENCYCLOPEDIA_INIT: + case ImpulseBase::Impulse::ENCYCLOPEDIA_INIT: { break; } - case ReferentialMessageCore::Command::USER_BARS: + case ImpulseBase::Impulse::USER_BARS: { break; } - case ReferentialMessageCore::Command::USER_POPUP: + case ImpulseBase::Impulse::USER_POPUP: { break; } - case ReferentialMessageCore::Command::EVENT_SET_ITEM_CUSTOM_TEXT: + case ImpulseBase::Impulse::EVENT_SET_ITEM_CUSTOM_TEXT: { break; } - case ReferentialMessageCore::Command::EVENT_DUMMY: + case ImpulseBase::Impulse::EVENT_DUMMY: { break; } - case ReferentialMessageCore::Command::TOTEM_BUILD: + case ImpulseBase::Impulse::TOTEM_BUILD: { break; } - case ReferentialMessageCore::Command::TOTEM_DUMMY: + case ImpulseBase::Impulse::TOTEM_DUMMY: { break; } - case ReferentialMessageCore::Command::MODULE_GATEWAY_FEOPEN: + case ImpulseBase::Impulse::MODULE_GATEWAY_FEOPEN: { break; } - case ReferentialMessageCore::Command::MODULE_GATEWAY_GATEWAY_MSG: + case ImpulseBase::Impulse::MODULE_GATEWAY_GATEWAY_MSG: { break; } - case ReferentialMessageCore::Command::MODULE_GATEWAY_FECLOSE: + case ImpulseBase::Impulse::MODULE_GATEWAY_FECLOSE: { break; } - case ReferentialMessageCore::Command::SEASON_SET: + case ImpulseBase::Impulse::SEASON_SET: { break; } - case ReferentialMessageCore::Command::SEASON_DUMMY: + case ImpulseBase::Impulse::SEASON_DUMMY: { break; } - case ReferentialMessageCore::Command::DM_GIFT_BEGIN: + case ImpulseBase::Impulse::DM_GIFT_BEGIN: { break; } - case ReferentialMessageCore::Command::DM_GIFT_VALIDATE: + case ImpulseBase::Impulse::DM_GIFT_VALIDATE: { break; } - case ReferentialMessageCore::Command::RING_MISSION_MISSION_RING_SELECT: + case ImpulseBase::Impulse::RING_MISSION_MISSION_RING_SELECT: { break; } - case ReferentialMessageCore::Command::RING_MISSION_DSS_DOWN: + case ImpulseBase::Impulse::RING_MISSION_DSS_DOWN: { break; } - case ReferentialMessageCore::Command::NPC_ICON_GET_DESC: + case ImpulseBase::Impulse::NPC_ICON_GET_DESC: { break; } - case ReferentialMessageCore::Command::NPC_ICON_SET_DESC: + case ImpulseBase::Impulse::NPC_ICON_SET_DESC: { break; } - case ReferentialMessageCore::Command::NPC_ICON_SVR_EVENT_MIS_AVL: + case ImpulseBase::Impulse::NPC_ICON_SVR_EVENT_MIS_AVL: { break; } - case ReferentialMessageCore::Command::NPC_ICON_SET_TIMER: + case ImpulseBase::Impulse::NPC_ICON_SET_TIMER: { break; } diff --git a/modules/command/action_factory.h b/modules/action/action_factory.h similarity index 100% rename from modules/command/action_factory.h rename to modules/action/action_factory.h diff --git a/modules/command/config.py b/modules/action/config.py similarity index 100% rename from modules/command/config.py rename to modules/action/config.py diff --git a/modules/command/register_types.cpp b/modules/action/register_types.cpp similarity index 57% rename from modules/command/register_types.cpp rename to modules/action/register_types.cpp index 578a000..9934347 100644 --- a/modules/command/register_types.cpp +++ b/modules/action/register_types.cpp @@ -5,10 +5,10 @@ #include "core/class_db.h" #include "action_factory.h" -void register_command_types() { - // ClassDB::register_class(); +void register_action_types() { + //ClassDB::register_class(); } -void unregister_command_types() { +void unregister_action_types() { // Nothing to do here in this example. } diff --git a/modules/command/register_types.h b/modules/action/register_types.h similarity index 61% rename from modules/command/register_types.h rename to modules/action/register_types.h index a7655e2..65ad125 100644 --- a/modules/command/register_types.h +++ b/modules/action/register_types.h @@ -1,5 +1,5 @@ /* register_types.h */ -void register_command_types(); -void unregister_command_types(); +void register_action_types(); +void unregister_action_types(); /* yes, the word in the middle must be the same as the module folder name */ diff --git a/modules/impulse/SCsub b/modules/impulse/SCsub new file mode 100644 index 0000000..e208d38 --- /dev/null +++ b/modules/impulse/SCsub @@ -0,0 +1,5 @@ +# SCsub + +Import('env') + +env.add_source_files(env.modules_sources, "*.cpp") # Add all cpp files to the build diff --git a/modules/impulse/config.py b/modules/impulse/config.py new file mode 100644 index 0000000..1445a21 --- /dev/null +++ b/modules/impulse/config.py @@ -0,0 +1,15 @@ +# config.py + +def can_build(env, platform): + return True + +def configure(env): + pass + +def get_doc_classes(): + return [ + "ImpulseBase", + ] + +def get_doc_path(): + return "doc_classes" diff --git a/modules/impulse/impulsebase.cpp b/modules/impulse/impulsebase.cpp new file mode 100644 index 0000000..95719a6 --- /dev/null +++ b/modules/impulse/impulsebase.cpp @@ -0,0 +1,1716 @@ +/* + Impulse Library + + Copyright (C) 2019 AleaJactaEst + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +*/ + +#include "impulsebase.h" +#include "core/class_db.h" + +void ImpulseBase::_bind_methods() +{ + BIND_ENUM_CONSTANT(TARGET_PARTY); + BIND_ENUM_CONSTANT(TARGET_INVENTORY); + BIND_ENUM_CONSTANT(TARGET_FOLLOW); + BIND_ENUM_CONSTANT(TARGET_NO_FOLLOW); + BIND_ENUM_CONSTANT(CONNECTION_USER_CHAR); + BIND_ENUM_CONSTANT(CONNECTION_NO_USER_CHAR); + BIND_ENUM_CONSTANT(CONNECTION_USER_CHARS); + BIND_ENUM_CONSTANT(CONNECTION_CREATE_CHAR); + BIND_ENUM_CONSTANT(CONNECTION_SELECT_CHAR); + BIND_ENUM_CONSTANT(CONNECTION_DELETE_CHAR); + BIND_ENUM_CONSTANT(CONNECTION_RENAME_CHAR); + BIND_ENUM_CONSTANT(CONNECTION_ENTER); + BIND_ENUM_CONSTANT(CONNECTION_READY); + BIND_ENUM_CONSTANT(CONNECTION_TIME_DATE_SYNCHRO); + BIND_ENUM_CONSTANT(CONNECTION_ASK_NAME); + BIND_ENUM_CONSTANT(CONNECTION_VALID_NAME); + BIND_ENUM_CONSTANT(CONNECTION_CREATE_CHAR_ERROR); + BIND_ENUM_CONSTANT(CONNECTION_RECONNECT); + BIND_ENUM_CONSTANT(CONNECTION_SERVER_RECONNECT_OK); + BIND_ENUM_CONSTANT(CONNECTION_SHARD_ID); + BIND_ENUM_CONSTANT(CONNECTION_SERVER_QUIT_OK); + BIND_ENUM_CONSTANT(CONNECTION_SERVER_QUIT_ABORT); + BIND_ENUM_CONSTANT(CONNECTION_CLIENT_QUIT_REQUEST); + BIND_ENUM_CONSTANT(CONNECTION_MAIL_AVAILABLE); + BIND_ENUM_CONSTANT(CONNECTION_GUILD_MESSAGE_AVAILABLE); + BIND_ENUM_CONSTANT(CONNECTION_PERMANENT_BAN); + BIND_ENUM_CONSTANT(CONNECTION_UNBAN); + BIND_ENUM_CONSTANT(CONNECTION_FAR_TP); + BIND_ENUM_CONSTANT(CONNECTION_RET_MAINLAND); + BIND_ENUM_CONSTANT(DB_UPD_PLR); + BIND_ENUM_CONSTANT(DB_UPD_INV); + BIND_ENUM_CONSTANT(DB_INIT_PLR); + BIND_ENUM_CONSTANT(DB_INIT_INV); + BIND_ENUM_CONSTANT(DB_GROUP_UPDATE_BANK); + BIND_ENUM_CONSTANT(DB_GROUP_INIT_BANK); + BIND_ENUM_CONSTANT(DB_GROUP_RESET_BANK); + BIND_ENUM_CONSTANT(POSITION); + BIND_ENUM_CONSTANT(HARVEST_DEPOSIT); + BIND_ENUM_CONSTANT(HARVEST_CORPSE); + BIND_ENUM_CONSTANT(HARVEST_INTERRUPT); + BIND_ENUM_CONSTANT(HARVEST_CLOSE_TEMP_INVENTORY); + BIND_ENUM_CONSTANT(TRAINING); + BIND_ENUM_CONSTANT(JOB_SET_JOB_STATUS); + BIND_ENUM_CONSTANT(JOB_SWAP_JOB_STATUS); + BIND_ENUM_CONSTANT(CASTING_BEGIN); + BIND_ENUM_CONSTANT(CASTING_INTERRUPT); + BIND_ENUM_CONSTANT(FABER_OPEN); + BIND_ENUM_CONSTANT(FABER_CLOSE); + BIND_ENUM_CONSTANT(FABER_EXECUTE); + BIND_ENUM_CONSTANT(FABER_SET_NUM_ITEM); + BIND_ENUM_CONSTANT(FABER_START_CREATE); + BIND_ENUM_CONSTANT(FABER_START_REPAIR); + BIND_ENUM_CONSTANT(FABER_START_REFINE); + BIND_ENUM_CONSTANT(FABER_SET_MP_QUALITY); + BIND_ENUM_CONSTANT(FABER_SET_MP_REFINE); + BIND_ENUM_CONSTANT(FABER_SET_TOOL); + BIND_ENUM_CONSTANT(FABER_RESET_TOOL); + BIND_ENUM_CONSTANT(FABER_INTERRUPT); + BIND_ENUM_CONSTANT(COMBAT_ENGAGE); + BIND_ENUM_CONSTANT(COMBAT_DISENGAGE); + BIND_ENUM_CONSTANT(COMBAT_DEFAULT_ATTACK); + BIND_ENUM_CONSTANT(COMBAT_ENGAGE_FAILED); + BIND_ENUM_CONSTANT(COMBAT_VALIDATE_MELEE); + BIND_ENUM_CONSTANT(COMBAT_PARRY); + BIND_ENUM_CONSTANT(COMBAT_DODGE); + BIND_ENUM_CONSTANT(COMBAT_PROTECTED_SLOT); + BIND_ENUM_CONSTANT(COMBAT_FLYING_ChaScore1_DELTA); + BIND_ENUM_CONSTANT(COMBAT_FLYING_TEXT_ISE); + BIND_ENUM_CONSTANT(COMBAT_FLYING_TEXT); + BIND_ENUM_CONSTANT(STRING_TELL); + BIND_ENUM_CONSTANT(STRING_FAR_TELL); + BIND_ENUM_CONSTANT(STRING_CHAT); + BIND_ENUM_CONSTANT(STRING_CHAT_TEAM); + BIND_ENUM_CONSTANT(STRING_ADD_DYN_STR); + BIND_ENUM_CONSTANT(STRING_FILTER); + BIND_ENUM_CONSTANT(STRING_CHAT_MODE); + BIND_ENUM_CONSTANT(STRING_CHAT2); + BIND_ENUM_CONSTANT(STRING_TELL2); + BIND_ENUM_CONSTANT(STRING_DYN_STRING); + BIND_ENUM_CONSTANT(STRING_DYN_STRING_GROUP); + BIND_ENUM_CONSTANT(STRING_AFK_TXT); + BIND_ENUM_CONSTANT(STUN_STUN); + BIND_ENUM_CONSTANT(STUN_WAKE_UP); + BIND_ENUM_CONSTANT(SENTENCE_EXECUTE); + BIND_ENUM_CONSTANT(SENTENCE_CANCEL); + BIND_ENUM_CONSTANT(SENTENCE_CANCEL_CURRENT); + BIND_ENUM_CONSTANT(SENTENCE_CANCEL_ALL); + BIND_ENUM_CONSTANT(SENTENCE_CLEAR); + BIND_ENUM_CONSTANT(SENTENCE_MEMORIZE); + BIND_ENUM_CONSTANT(SENTENCE_FORGET); + BIND_ENUM_CONSTANT(SENTENCE_EVALUATE); + BIND_ENUM_CONSTANT(SENTENCE_ADD_BRICK); + BIND_ENUM_CONSTANT(SENTENCE_REMOVE_BRICK); + BIND_ENUM_CONSTANT(SENTENCE_START); + BIND_ENUM_CONSTANT(SENTENCE_STOP); + BIND_ENUM_CONSTANT(TEAM_JOIN); + BIND_ENUM_CONSTANT(TEAM_LEAVE); + BIND_ENUM_CONSTANT(TEAM_INVITATION); + BIND_ENUM_CONSTANT(TEAM_JOIN_PROPOSAL); + BIND_ENUM_CONSTANT(TEAM_JOIN_PROPOSAL_DECLINE); + BIND_ENUM_CONSTANT(TEAM_KICK); + BIND_ENUM_CONSTANT(TEAM_SET_SUCCESSOR); + BIND_ENUM_CONSTANT(TEAM_SHARE_OPEN); + BIND_ENUM_CONSTANT(TEAM_SHARE_VALID_ITEM); + BIND_ENUM_CONSTANT(TEAM_SHARE_INVALID_ITEM); + BIND_ENUM_CONSTANT(TEAM_SHARE_VALID); + BIND_ENUM_CONSTANT(TEAM_SHARE_INVALID); + BIND_ENUM_CONSTANT(TEAM_SHARE_CLOSE); + BIND_ENUM_CONSTANT(TEAM_CONTACT_INIT); + BIND_ENUM_CONSTANT(TEAM_CONTACT_ADD); + BIND_ENUM_CONSTANT(TEAM_CONTACT_DEL); + BIND_ENUM_CONSTANT(TEAM_CONTACT_MOVE); + BIND_ENUM_CONSTANT(TEAM_CONTACT_CREATE); + BIND_ENUM_CONSTANT(TEAM_CONTACT_STATUS); + BIND_ENUM_CONSTANT(TEAM_CONTACT_REMOVE); + BIND_ENUM_CONSTANT(ITEM_DROP); + BIND_ENUM_CONSTANT(ITEM_PICK_UP); + BIND_ENUM_CONSTANT(ITEM_PICK_UP_CLOSE); + BIND_ENUM_CONSTANT(ITEM_SWAP); + BIND_ENUM_CONSTANT(ITEM_ACTIVATE_SHEATH); + BIND_ENUM_CONSTANT(ITEM_HARVEST); + BIND_ENUM_CONSTANT(ITEM_HARVEST_CLOSE); + BIND_ENUM_CONSTANT(ITEM_GIVE); + BIND_ENUM_CONSTANT(ITEM_DESTROY); + BIND_ENUM_CONSTANT(ITEM_EQUIP); + BIND_ENUM_CONSTANT(ITEM_UNEQUIP); + BIND_ENUM_CONSTANT(ITEM_TEMP_TO_BAG); + BIND_ENUM_CONSTANT(ITEM_ALL_TEMP); + BIND_ENUM_CONSTANT(ITEM_NO_TEMP); + BIND_ENUM_CONSTANT(ITEM_ENCHANT); + BIND_ENUM_CONSTANT(ITEM_OPEN_ROOM_INVENTORY); + BIND_ENUM_CONSTANT(ITEM_CLOSE_ROOM_INVENTORY); + BIND_ENUM_CONSTANT(ITEM_USE_ITEM); + BIND_ENUM_CONSTANT(ITEM_STOP_USE_XP_CAT); + BIND_ENUM_CONSTANT(TP_RESPAWN); + BIND_ENUM_CONSTANT(TP_BOT); + BIND_ENUM_CONSTANT(TP_WANTED); + BIND_ENUM_CONSTANT(TP_DEST); + BIND_ENUM_CONSTANT(TP_DEST_WITH_SEASON); + BIND_ENUM_CONSTANT(TP_ACK); + BIND_ENUM_CONSTANT(TP_CORRECT); + BIND_ENUM_CONSTANT(DEATH_RESPAWN_POINT); + BIND_ENUM_CONSTANT(DEATH_ASK_RESPAWN); + BIND_ENUM_CONSTANT(DEATH_RESPAWN); + BIND_ENUM_CONSTANT(ANIMALS_BEAST); + BIND_ENUM_CONSTANT(ANIMALS_MOUNT_ABORT); + BIND_ENUM_CONSTANT(EXCHANGE_INVITATION); + BIND_ENUM_CONSTANT(EXCHANGE_CLOSE_INVITATION); + BIND_ENUM_CONSTANT(EXCHANGE_PROPOSAL); + BIND_ENUM_CONSTANT(EXCHANGE_ACCEPT_INVITATION); + BIND_ENUM_CONSTANT(EXCHANGE_DECLINE_INVITATION); + BIND_ENUM_CONSTANT(EXCHANGE_VALIDATE); + BIND_ENUM_CONSTANT(EXCHANGE_INVALIDATE); + BIND_ENUM_CONSTANT(EXCHANGE_END); + BIND_ENUM_CONSTANT(EXCHANGE_SEEDS); + BIND_ENUM_CONSTANT(EXCHANGE_ADD); + BIND_ENUM_CONSTANT(EXCHANGE_REMOVE); + BIND_ENUM_CONSTANT(DEBUG_WHERE); + BIND_ENUM_CONSTANT(DEBUG_WHO); + BIND_ENUM_CONSTANT(DEBUG_REPLY_WHERE); + BIND_ENUM_CONSTANT(DEBUG_SERVICES); + BIND_ENUM_CONSTANT(DEBUG_CMD); + BIND_ENUM_CONSTANT(DEBUG_PING); + BIND_ENUM_CONSTANT(DEBUG_COUNTER); + BIND_ENUM_CONSTANT(COMMAND_EMOTE); + BIND_ENUM_CONSTANT(COMMAND_CUSTOM_EMOTE); + BIND_ENUM_CONSTANT(COMMAND_WHERE); + BIND_ENUM_CONSTANT(COMMAND_ADMIN); + BIND_ENUM_CONSTANT(COMMAND_ADMIN_OFFLINE); + BIND_ENUM_CONSTANT(COMMAND_REMOTE_ADMIN); + BIND_ENUM_CONSTANT(COMMAND_REMOTE_ADMIN_ANSWER); + BIND_ENUM_CONSTANT(COMMAND_SIT); + BIND_ENUM_CONSTANT(COMMAND_AFK); + BIND_ENUM_CONSTANT(COMMAND_RANDOM); + BIND_ENUM_CONSTANT(COMMAND_GUILDMOTD); + BIND_ENUM_CONSTANT(MP_EVAL_SET_MP); + BIND_ENUM_CONSTANT(MP_EVAL_SET_MP_LEVEL); + BIND_ENUM_CONSTANT(MP_EVAL_SET_MARKET); + BIND_ENUM_CONSTANT(MP_EVAL_EXECUTE); + BIND_ENUM_CONSTANT(BOTCHAT_NEXT_PAGE_ITEM); + BIND_ENUM_CONSTANT(BOTCHAT_NEXT_PAGE_MISSION); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_ITEM); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_TELEPORT); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_FACTION); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_SKILL); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_PACT); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_ACTION); + BIND_ENUM_CONSTANT(BOTCHAT_BUY); + BIND_ENUM_CONSTANT(BOTCHAT_SELL); + BIND_ENUM_CONSTANT(BOTCHAT_DESTROY_ITEM); + BIND_ENUM_CONSTANT(BOTCHAT_REFRESH_TRADE_LIST); + BIND_ENUM_CONSTANT(BOTCHAT_SET_FILTERS); + BIND_ENUM_CONSTANT(BOTCHAT_START_CHOOSE_MISSION); + BIND_ENUM_CONSTANT(BOTCHAT_START_DYNAMIC_MISSION); + BIND_ENUM_CONSTANT(BOTCHAT_CONTINUE_MISSION); + BIND_ENUM_CONSTANT(BOTCHAT_VALIDATE_PLAYER_GIFT); + BIND_ENUM_CONSTANT(BOTCHAT_PICK_MISSION); + BIND_ENUM_CONSTANT(BOTCHAT_DM_CHOICE); + BIND_ENUM_CONSTANT(BOTCHAT_DM_ACCEPT); + BIND_ENUM_CONSTANT(BOTCHAT_START_NEWS); + BIND_ENUM_CONSTANT(BOTCHAT_START_CREATE_GUILD); + BIND_ENUM_CONSTANT(BOTCHAT_END); + BIND_ENUM_CONSTANT(BOTCHAT_FORCE_END); + BIND_ENUM_CONSTANT(BOTCHAT_START_CHOOSE_DUTY); + BIND_ENUM_CONSTANT(BOTCHAT_NEXT_PAGE_DUTY); + BIND_ENUM_CONSTANT(BOTCHAT_DUTY_APPLY); + BIND_ENUM_CONSTANT(BOTCHAT_DUTY_CANCEL_APPLY); + BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_GUILD_OPTIONS); + BIND_ENUM_CONSTANT(BOTCHAT_BUY_GUILD_OPTION); + BIND_ENUM_CONSTANT(BOTCHAT_START_GUILD_RESEARCH); + BIND_ENUM_CONSTANT(BOTCHAT_DESTROY_BUILDING); + BIND_ENUM_CONSTANT(BOTCHAT_DYNCHAT_OPEN); + BIND_ENUM_CONSTANT(BOTCHAT_DYNCHAT_CLOSE); + BIND_ENUM_CONSTANT(BOTCHAT_DYNCHAT_SEND); + BIND_ENUM_CONSTANT(JOURNAL_INIT_COMPLETED_MISSIONS); + BIND_ENUM_CONSTANT(JOURNAL_UPDATE_COMPLETED_MISSIONS); + BIND_ENUM_CONSTANT(JOURNAL_MISSION_ABANDON); + BIND_ENUM_CONSTANT(JOURNAL_GROUP_MISSION_ABANDON); + BIND_ENUM_CONSTANT(JOURNAL_ADD_COMPASS); + BIND_ENUM_CONSTANT(JOURNAL_ADD_COMPASS_BOT); + BIND_ENUM_CONSTANT(JOURNAL_REMOVE_COMPASS); + BIND_ENUM_CONSTANT(JOURNAL_REMOVE_COMPASS_BOT); + BIND_ENUM_CONSTANT(STRING_MANAGER_SET_LANGUAGE); + BIND_ENUM_CONSTANT(STRING_MANAGER_PHRASE_SEND); + BIND_ENUM_CONSTANT(STRING_MANAGER_STRING_RQ); + BIND_ENUM_CONSTANT(STRING_MANAGER_STRING_RESP); + BIND_ENUM_CONSTANT(STRING_MANAGER_RELOAD_CACHE); + BIND_ENUM_CONSTANT(GUILD_CREATE); + BIND_ENUM_CONSTANT(GUILD_ABORT_CREATION); + BIND_ENUM_CONSTANT(GUILD_OPEN_GUILD_WINDOW); + BIND_ENUM_CONSTANT(GUILD_INVITATION); + BIND_ENUM_CONSTANT(GUILD_ACCEPT_INVITATION); + BIND_ENUM_CONSTANT(GUILD_REFUSE_INVITATION); + BIND_ENUM_CONSTANT(GUILD_JOIN_PROPOSAL); + BIND_ENUM_CONSTANT(GUILD_SET_GRADE); + BIND_ENUM_CONSTANT(GUILD_SET_LEADER); + BIND_ENUM_CONSTANT(GUILD_KICK_MEMBER); + BIND_ENUM_CONSTANT(GUILD_TELEPORT); + BIND_ENUM_CONSTANT(GUILD_ASCENSOR); + BIND_ENUM_CONSTANT(GUILD_FIRST_ASCENSOR_PAGE); + BIND_ENUM_CONSTANT(GUILD_NEXT_ASCENSOR_PAGE); + BIND_ENUM_CONSTANT(GUILD_LEAVE_ASCENSOR); + BIND_ENUM_CONSTANT(GUILD_QUIT); + BIND_ENUM_CONSTANT(GUILD_SET_PLAYER_TITLE); + BIND_ENUM_CONSTANT(GUILD_UPDATE_PLAYER_TITLE); + BIND_ENUM_CONSTANT(GUILD_USE_FEMALE_TITLES); + BIND_ENUM_CONSTANT(GUILD_PUT_MONEY); + BIND_ENUM_CONSTANT(GUILD_TAKE_MONEY); + BIND_ENUM_CONSTANT(GUILD_OPEN_INVENTORY); + BIND_ENUM_CONSTANT(GUILD_CLOSE_INVENTORY); + BIND_ENUM_CONSTANT(OUTPOST_GIVEUP_OUTPOST); + BIND_ENUM_CONSTANT(OUTPOST_SELECT); + BIND_ENUM_CONSTANT(OUTPOST_UNSELECT); + BIND_ENUM_CONSTANT(OUTPOST_DECLARE_WAR_START); + BIND_ENUM_CONSTANT(OUTPOST_DECLARE_WAR_ACK); + BIND_ENUM_CONSTANT(OUTPOST_DECLARE_WAR_VALIDATE); + BIND_ENUM_CONSTANT(OUTPOST_SET_DEF_PERIOD); + BIND_ENUM_CONSTANT(OUTPOST_SET_SQUAD); + BIND_ENUM_CONSTANT(OUTPOST_SET_SQUAD_SPAWN); + BIND_ENUM_CONSTANT(OUTPOST_INSERT_SQUAD); + BIND_ENUM_CONSTANT(OUTPOST_REMOVE_SQUAD); + BIND_ENUM_CONSTANT(OUTPOST_SET_SQUAD_CAPITAL); + BIND_ENUM_CONSTANT(OUTPOST_CHOOSE_SIDE); + BIND_ENUM_CONSTANT(OUTPOST_SIDE_CHOSEN); + BIND_ENUM_CONSTANT(OUTPOST_BANISH_PLAYER); + BIND_ENUM_CONSTANT(OUTPOST_BANISH_GUILD); + BIND_ENUM_CONSTANT(OUTPOST_BUY_BUILDING); + BIND_ENUM_CONSTANT(OUTPOST_DESTROY_BUILDING); + BIND_ENUM_CONSTANT(PHRASE_DELETE); + BIND_ENUM_CONSTANT(PHRASE_LEARN); + BIND_ENUM_CONSTANT(PHRASE_MEMORIZE); + BIND_ENUM_CONSTANT(PHRASE_FORGET); + BIND_ENUM_CONSTANT(PHRASE_EXECUTE); + BIND_ENUM_CONSTANT(PHRASE_EXECUTE_CYCLIC); + BIND_ENUM_CONSTANT(PHRASE_EXECUTE_FABER); + BIND_ENUM_CONSTANT(PHRASE_DOWNLOAD); + BIND_ENUM_CONSTANT(PHRASE_BUY); + BIND_ENUM_CONSTANT(PHRASE_CONFIRM_BUY); + BIND_ENUM_CONSTANT(PHRASE_BUY_SHEET); + BIND_ENUM_CONSTANT(PHRASE_CANCEL_LINK); + BIND_ENUM_CONSTANT(PHRASE_CANCEL_TOP); + BIND_ENUM_CONSTANT(PHRASE_CANCEL_ALL); + BIND_ENUM_CONSTANT(PHRASE_CRISTALIZE); + BIND_ENUM_CONSTANT(PHRASE_EXEC_CYCLIC_ACK); + BIND_ENUM_CONSTANT(PHRASE_EXEC_NEXT_ACK); + BIND_ENUM_CONSTANT(ITEM_INFO_GET); + BIND_ENUM_CONSTANT(ITEM_INFO_SET); + BIND_ENUM_CONSTANT(ITEM_INFO_REFRESH_VERSION); + BIND_ENUM_CONSTANT(MISSION_PREREQ_GET); + BIND_ENUM_CONSTANT(MISSION_PREREQ_SET); + BIND_ENUM_CONSTANT(MISSION_ENTER_CRITICAL); + BIND_ENUM_CONSTANT(MISSION_ASK_ENTER_CRITICAL); + BIND_ENUM_CONSTANT(MISSION_CLOSE_ENTER_CRITICAL); + BIND_ENUM_CONSTANT(MISSION_WAKE); + BIND_ENUM_CONSTANT(MISSION_GROUP_WAKE); + BIND_ENUM_CONSTANT(DUEL_ASK); + BIND_ENUM_CONSTANT(DUEL_ACCEPT); + BIND_ENUM_CONSTANT(DUEL_REFUSE); + BIND_ENUM_CONSTANT(DUEL_ABANDON); + BIND_ENUM_CONSTANT(DUEL_INVITATION); + BIND_ENUM_CONSTANT(DUEL_CANCEL_INVITATION); + BIND_ENUM_CONSTANT(PVP_CHALLENGE_ASK); + BIND_ENUM_CONSTANT(PVP_CHALLENGE_ACCEPT); + BIND_ENUM_CONSTANT(PVP_CHALLENGE_REFUSE); + BIND_ENUM_CONSTANT(PVP_CHALLENGE_ABANDON); + BIND_ENUM_CONSTANT(PVP_CHALLENGE_INVITATION); + BIND_ENUM_CONSTANT(PVP_CHALLENGE_CANCEL_INVITATION); + BIND_ENUM_CONSTANT(PVP_PVP_TAG); + BIND_ENUM_CONSTANT(PVP_SET_NEUTRAL_ALLEGIANCE); + BIND_ENUM_CONSTANT(PVP_SET_NEUTRAL_ALLEGIANCE_GUILD); + BIND_ENUM_CONSTANT(PVP_FACTION_PUSH_FACTION_WAR); + BIND_ENUM_CONSTANT(PVP_FACTION_POP_FACTION_WAR); + BIND_ENUM_CONSTANT(PVP_FACTION_FACTION_WARS); + BIND_ENUM_CONSTANT(ENCYCLOPEDIA_UPDATE); + BIND_ENUM_CONSTANT(ENCYCLOPEDIA_INIT); + BIND_ENUM_CONSTANT(USER_BARS); + BIND_ENUM_CONSTANT(USER_POPUP); + BIND_ENUM_CONSTANT(EVENT_SET_ITEM_CUSTOM_TEXT); + BIND_ENUM_CONSTANT(EVENT_DUMMY); + BIND_ENUM_CONSTANT(TOTEM_BUILD); + BIND_ENUM_CONSTANT(TOTEM_DUMMY); + BIND_ENUM_CONSTANT(MODULE_GATEWAY_FEOPEN); + BIND_ENUM_CONSTANT(MODULE_GATEWAY_GATEWAY_MSG); + BIND_ENUM_CONSTANT(MODULE_GATEWAY_FECLOSE); + BIND_ENUM_CONSTANT(SEASON_SET); + BIND_ENUM_CONSTANT(SEASON_DUMMY); + BIND_ENUM_CONSTANT(DM_GIFT_BEGIN); + BIND_ENUM_CONSTANT(DM_GIFT_VALIDATE); + BIND_ENUM_CONSTANT(RING_MISSION_MISSION_RING_SELECT); + BIND_ENUM_CONSTANT(RING_MISSION_DSS_DOWN); + BIND_ENUM_CONSTANT(NPC_ICON_GET_DESC); + BIND_ENUM_CONSTANT(NPC_ICON_SET_DESC); + BIND_ENUM_CONSTANT(NPC_ICON_SVR_EVENT_MIS_AVL); + BIND_ENUM_CONSTANT(NPC_ICON_SET_TIMER); + BIND_ENUM_CONSTANT(__LAST_ELEMENT); +} + +int ImpulseBase::get_command(String name) +{ + if( name == "TARGET_PARTY" ) { + return ImpulseBase::TARGET_PARTY; + } else if( name == "TARGET_INVENTORY" ) { + return ImpulseBase::TARGET_INVENTORY; + } else if( name == "TARGET_FOLLOW" ) { + return ImpulseBase::TARGET_FOLLOW; + } else if( name == "TARGET_NO_FOLLOW" ) { + return ImpulseBase::TARGET_NO_FOLLOW; + } else if( name == "CONNECTION_USER_CHAR" ) { + return ImpulseBase::CONNECTION_USER_CHAR; + } else if( name == "CONNECTION_NO_USER_CHAR" ) { + return ImpulseBase::CONNECTION_NO_USER_CHAR; + } else if( name == "CONNECTION_USER_CHARS" ) { + return ImpulseBase::CONNECTION_USER_CHARS; + } else if( name == "CONNECTION_CREATE_CHAR" ) { + return ImpulseBase::CONNECTION_CREATE_CHAR; + } else if( name == "CONNECTION_SELECT_CHAR" ) { + return ImpulseBase::CONNECTION_SELECT_CHAR; + } else if( name == "CONNECTION_DELETE_CHAR" ) { + return ImpulseBase::CONNECTION_DELETE_CHAR; + } else if( name == "CONNECTION_RENAME_CHAR" ) { + return ImpulseBase::CONNECTION_RENAME_CHAR; + } else if( name == "CONNECTION_ENTER" ) { + return ImpulseBase::CONNECTION_ENTER; + } else if( name == "CONNECTION_READY" ) { + return ImpulseBase::CONNECTION_READY; + } else if( name == "CONNECTION_TIME_DATE_SYNCHRO" ) { + return ImpulseBase::CONNECTION_TIME_DATE_SYNCHRO; + } else if( name == "CONNECTION_ASK_NAME" ) { + return ImpulseBase::CONNECTION_ASK_NAME; + } else if( name == "CONNECTION_VALID_NAME" ) { + return ImpulseBase::CONNECTION_VALID_NAME; + } else if( name == "CONNECTION_CREATE_CHAR_ERROR" ) { + return ImpulseBase::CONNECTION_CREATE_CHAR_ERROR; + } else if( name == "CONNECTION_RECONNECT" ) { + return ImpulseBase::CONNECTION_RECONNECT; + } else if( name == "CONNECTION_SERVER_RECONNECT_OK" ) { + return ImpulseBase::CONNECTION_SERVER_RECONNECT_OK; + } else if( name == "CONNECTION_SHARD_ID" ) { + return ImpulseBase::CONNECTION_SHARD_ID; + } else if( name == "CONNECTION_SERVER_QUIT_OK" ) { + return ImpulseBase::CONNECTION_SERVER_QUIT_OK; + } else if( name == "CONNECTION_SERVER_QUIT_ABORT" ) { + return ImpulseBase::CONNECTION_SERVER_QUIT_ABORT; + } else if( name == "CONNECTION_CLIENT_QUIT_REQUEST" ) { + return ImpulseBase::CONNECTION_CLIENT_QUIT_REQUEST; + } else if( name == "CONNECTION_MAIL_AVAILABLE" ) { + return ImpulseBase::CONNECTION_MAIL_AVAILABLE; + } else if( name == "CONNECTION_GUILD_MESSAGE_AVAILABLE" ) { + return ImpulseBase::CONNECTION_GUILD_MESSAGE_AVAILABLE; + } else if( name == "CONNECTION_PERMANENT_BAN" ) { + return ImpulseBase::CONNECTION_PERMANENT_BAN; + } else if( name == "CONNECTION_UNBAN" ) { + return ImpulseBase::CONNECTION_UNBAN; + } else if( name == "CONNECTION_FAR_TP" ) { + return ImpulseBase::CONNECTION_FAR_TP; + } else if( name == "CONNECTION_RET_MAINLAND" ) { + return ImpulseBase::CONNECTION_RET_MAINLAND; + } else if( name == "DB_UPD_PLR" ) { + return ImpulseBase::DB_UPD_PLR; + } else if( name == "DB_UPD_INV" ) { + return ImpulseBase::DB_UPD_INV; + } else if( name == "DB_INIT_PLR" ) { + return ImpulseBase::DB_INIT_PLR; + } else if( name == "DB_INIT_INV" ) { + return ImpulseBase::DB_INIT_INV; + } else if( name == "DB_GROUP_UPDATE_BANK" ) { + return ImpulseBase::DB_GROUP_UPDATE_BANK; + } else if( name == "DB_GROUP_INIT_BANK" ) { + return ImpulseBase::DB_GROUP_INIT_BANK; + } else if( name == "DB_GROUP_RESET_BANK" ) { + return ImpulseBase::DB_GROUP_RESET_BANK; + } else if( name == "POSITION" ) { + return ImpulseBase::POSITION; + } else if( name == "HARVEST_DEPOSIT" ) { + return ImpulseBase::HARVEST_DEPOSIT; + } else if( name == "HARVEST_CORPSE" ) { + return ImpulseBase::HARVEST_CORPSE; + } else if( name == "HARVEST_INTERRUPT" ) { + return ImpulseBase::HARVEST_INTERRUPT; + } else if( name == "HARVEST_CLOSE_TEMP_INVENTORY" ) { + return ImpulseBase::HARVEST_CLOSE_TEMP_INVENTORY; + } else if( name == "TRAINING" ) { + return ImpulseBase::TRAINING; + } else if( name == "JOB_SET_JOB_STATUS" ) { + return ImpulseBase::JOB_SET_JOB_STATUS; + } else if( name == "JOB_SWAP_JOB_STATUS" ) { + return ImpulseBase::JOB_SWAP_JOB_STATUS; + } else if( name == "CASTING_BEGIN" ) { + return ImpulseBase::CASTING_BEGIN; + } else if( name == "CASTING_INTERRUPT" ) { + return ImpulseBase::CASTING_INTERRUPT; + } else if( name == "FABER_OPEN" ) { + return ImpulseBase::FABER_OPEN; + } else if( name == "FABER_CLOSE" ) { + return ImpulseBase::FABER_CLOSE; + } else if( name == "FABER_EXECUTE" ) { + return ImpulseBase::FABER_EXECUTE; + } else if( name == "FABER_SET_NUM_ITEM" ) { + return ImpulseBase::FABER_SET_NUM_ITEM; + } else if( name == "FABER_START_CREATE" ) { + return ImpulseBase::FABER_START_CREATE; + } else if( name == "FABER_START_REPAIR" ) { + return ImpulseBase::FABER_START_REPAIR; + } else if( name == "FABER_START_REFINE" ) { + return ImpulseBase::FABER_START_REFINE; + } else if( name == "FABER_SET_MP_QUALITY" ) { + return ImpulseBase::FABER_SET_MP_QUALITY; + } else if( name == "FABER_SET_MP_REFINE" ) { + return ImpulseBase::FABER_SET_MP_REFINE; + } else if( name == "FABER_SET_TOOL" ) { + return ImpulseBase::FABER_SET_TOOL; + } else if( name == "FABER_RESET_TOOL" ) { + return ImpulseBase::FABER_RESET_TOOL; + } else if( name == "FABER_INTERRUPT" ) { + return ImpulseBase::FABER_INTERRUPT; + } else if( name == "COMBAT_ENGAGE" ) { + return ImpulseBase::COMBAT_ENGAGE; + } else if( name == "COMBAT_DISENGAGE" ) { + return ImpulseBase::COMBAT_DISENGAGE; + } else if( name == "COMBAT_DEFAULT_ATTACK" ) { + return ImpulseBase::COMBAT_DEFAULT_ATTACK; + } else if( name == "COMBAT_ENGAGE_FAILED" ) { + return ImpulseBase::COMBAT_ENGAGE_FAILED; + } else if( name == "COMBAT_VALIDATE_MELEE" ) { + return ImpulseBase::COMBAT_VALIDATE_MELEE; + } else if( name == "COMBAT_PARRY" ) { + return ImpulseBase::COMBAT_PARRY; + } else if( name == "COMBAT_DODGE" ) { + return ImpulseBase::COMBAT_DODGE; + } else if( name == "COMBAT_PROTECTED_SLOT" ) { + return ImpulseBase::COMBAT_PROTECTED_SLOT; + } else if( name == "COMBAT_FLYING_ChaScore1_DELTA" ) { + return ImpulseBase::COMBAT_FLYING_ChaScore1_DELTA; + } else if( name == "COMBAT_FLYING_TEXT_ISE" ) { + return ImpulseBase::COMBAT_FLYING_TEXT_ISE; + } else if( name == "COMBAT_FLYING_TEXT" ) { + return ImpulseBase::COMBAT_FLYING_TEXT; + } else if( name == "STRING_TELL" ) { + return ImpulseBase::STRING_TELL; + } else if( name == "STRING_FAR_TELL" ) { + return ImpulseBase::STRING_FAR_TELL; + } else if( name == "STRING_CHAT" ) { + return ImpulseBase::STRING_CHAT; + } else if( name == "STRING_CHAT_TEAM" ) { + return ImpulseBase::STRING_CHAT_TEAM; + } else if( name == "STRING_ADD_DYN_STR" ) { + return ImpulseBase::STRING_ADD_DYN_STR; + } else if( name == "STRING_FILTER" ) { + return ImpulseBase::STRING_FILTER; + } else if( name == "STRING_CHAT_MODE" ) { + return ImpulseBase::STRING_CHAT_MODE; + } else if( name == "STRING_CHAT2" ) { + return ImpulseBase::STRING_CHAT2; + } else if( name == "STRING_TELL2" ) { + return ImpulseBase::STRING_TELL2; + } else if( name == "STRING_DYN_STRING" ) { + return ImpulseBase::STRING_DYN_STRING; + } else if( name == "STRING_DYN_STRING_GROUP" ) { + return ImpulseBase::STRING_DYN_STRING_GROUP; + } else if( name == "STRING_AFK_TXT" ) { + return ImpulseBase::STRING_AFK_TXT; + } else if( name == "STUN_STUN" ) { + return ImpulseBase::STUN_STUN; + } else if( name == "STUN_WAKE_UP" ) { + return ImpulseBase::STUN_WAKE_UP; + } else if( name == "SENTENCE_EXECUTE" ) { + return ImpulseBase::SENTENCE_EXECUTE; + } else if( name == "SENTENCE_CANCEL" ) { + return ImpulseBase::SENTENCE_CANCEL; + } else if( name == "SENTENCE_CANCEL_CURRENT" ) { + return ImpulseBase::SENTENCE_CANCEL_CURRENT; + } else if( name == "SENTENCE_CANCEL_ALL" ) { + return ImpulseBase::SENTENCE_CANCEL_ALL; + } else if( name == "SENTENCE_CLEAR" ) { + return ImpulseBase::SENTENCE_CLEAR; + } else if( name == "SENTENCE_MEMORIZE" ) { + return ImpulseBase::SENTENCE_MEMORIZE; + } else if( name == "SENTENCE_FORGET" ) { + return ImpulseBase::SENTENCE_FORGET; + } else if( name == "SENTENCE_EVALUATE" ) { + return ImpulseBase::SENTENCE_EVALUATE; + } else if( name == "SENTENCE_ADD_BRICK" ) { + return ImpulseBase::SENTENCE_ADD_BRICK; + } else if( name == "SENTENCE_REMOVE_BRICK" ) { + return ImpulseBase::SENTENCE_REMOVE_BRICK; + } else if( name == "SENTENCE_START" ) { + return ImpulseBase::SENTENCE_START; + } else if( name == "SENTENCE_STOP" ) { + return ImpulseBase::SENTENCE_STOP; + } else if( name == "TEAM_JOIN" ) { + return ImpulseBase::TEAM_JOIN; + } else if( name == "TEAM_LEAVE" ) { + return ImpulseBase::TEAM_LEAVE; + } else if( name == "TEAM_INVITATION" ) { + return ImpulseBase::TEAM_INVITATION; + } else if( name == "TEAM_JOIN_PROPOSAL" ) { + return ImpulseBase::TEAM_JOIN_PROPOSAL; + } else if( name == "TEAM_JOIN_PROPOSAL_DECLINE" ) { + return ImpulseBase::TEAM_JOIN_PROPOSAL_DECLINE; + } else if( name == "TEAM_KICK" ) { + return ImpulseBase::TEAM_KICK; + } else if( name == "TEAM_SET_SUCCESSOR" ) { + return ImpulseBase::TEAM_SET_SUCCESSOR; + } else if( name == "TEAM_SHARE_OPEN" ) { + return ImpulseBase::TEAM_SHARE_OPEN; + } else if( name == "TEAM_SHARE_VALID_ITEM" ) { + return ImpulseBase::TEAM_SHARE_VALID_ITEM; + } else if( name == "TEAM_SHARE_INVALID_ITEM" ) { + return ImpulseBase::TEAM_SHARE_INVALID_ITEM; + } else if( name == "TEAM_SHARE_VALID" ) { + return ImpulseBase::TEAM_SHARE_VALID; + } else if( name == "TEAM_SHARE_INVALID" ) { + return ImpulseBase::TEAM_SHARE_INVALID; + } else if( name == "TEAM_SHARE_CLOSE" ) { + return ImpulseBase::TEAM_SHARE_CLOSE; + } else if( name == "TEAM_CONTACT_INIT" ) { + return ImpulseBase::TEAM_CONTACT_INIT; + } else if( name == "TEAM_CONTACT_ADD" ) { + return ImpulseBase::TEAM_CONTACT_ADD; + } else if( name == "TEAM_CONTACT_DEL" ) { + return ImpulseBase::TEAM_CONTACT_DEL; + } else if( name == "TEAM_CONTACT_MOVE" ) { + return ImpulseBase::TEAM_CONTACT_MOVE; + } else if( name == "TEAM_CONTACT_CREATE" ) { + return ImpulseBase::TEAM_CONTACT_CREATE; + } else if( name == "TEAM_CONTACT_STATUS" ) { + return ImpulseBase::TEAM_CONTACT_STATUS; + } else if( name == "TEAM_CONTACT_REMOVE" ) { + return ImpulseBase::TEAM_CONTACT_REMOVE; + } else if( name == "ITEM_DROP" ) { + return ImpulseBase::ITEM_DROP; + } else if( name == "ITEM_PICK_UP" ) { + return ImpulseBase::ITEM_PICK_UP; + } else if( name == "ITEM_PICK_UP_CLOSE" ) { + return ImpulseBase::ITEM_PICK_UP_CLOSE; + } else if( name == "ITEM_SWAP" ) { + return ImpulseBase::ITEM_SWAP; + } else if( name == "ITEM_ACTIVATE_SHEATH" ) { + return ImpulseBase::ITEM_ACTIVATE_SHEATH; + } else if( name == "ITEM_HARVEST" ) { + return ImpulseBase::ITEM_HARVEST; + } else if( name == "ITEM_HARVEST_CLOSE" ) { + return ImpulseBase::ITEM_HARVEST_CLOSE; + } else if( name == "ITEM_GIVE" ) { + return ImpulseBase::ITEM_GIVE; + } else if( name == "ITEM_DESTROY" ) { + return ImpulseBase::ITEM_DESTROY; + } else if( name == "ITEM_EQUIP" ) { + return ImpulseBase::ITEM_EQUIP; + } else if( name == "ITEM_UNEQUIP" ) { + return ImpulseBase::ITEM_UNEQUIP; + } else if( name == "ITEM_TEMP_TO_BAG" ) { + return ImpulseBase::ITEM_TEMP_TO_BAG; + } else if( name == "ITEM_ALL_TEMP" ) { + return ImpulseBase::ITEM_ALL_TEMP; + } else if( name == "ITEM_NO_TEMP" ) { + return ImpulseBase::ITEM_NO_TEMP; + } else if( name == "ITEM_ENCHANT" ) { + return ImpulseBase::ITEM_ENCHANT; + } else if( name == "ITEM_OPEN_ROOM_INVENTORY" ) { + return ImpulseBase::ITEM_OPEN_ROOM_INVENTORY; + } else if( name == "ITEM_CLOSE_ROOM_INVENTORY" ) { + return ImpulseBase::ITEM_CLOSE_ROOM_INVENTORY; + } else if( name == "ITEM_USE_ITEM" ) { + return ImpulseBase::ITEM_USE_ITEM; + } else if( name == "ITEM_STOP_USE_XP_CAT" ) { + return ImpulseBase::ITEM_STOP_USE_XP_CAT; + } else if( name == "TP_RESPAWN" ) { + return ImpulseBase::TP_RESPAWN; + } else if( name == "TP_BOT" ) { + return ImpulseBase::TP_BOT; + } else if( name == "TP_WANTED" ) { + return ImpulseBase::TP_WANTED; + } else if( name == "TP_DEST" ) { + return ImpulseBase::TP_DEST; + } else if( name == "TP_DEST_WITH_SEASON" ) { + return ImpulseBase::TP_DEST_WITH_SEASON; + } else if( name == "TP_ACK" ) { + return ImpulseBase::TP_ACK; + } else if( name == "TP_CORRECT" ) { + return ImpulseBase::TP_CORRECT; + } else if( name == "DEATH_RESPAWN_POINT" ) { + return ImpulseBase::DEATH_RESPAWN_POINT; + } else if( name == "DEATH_ASK_RESPAWN" ) { + return ImpulseBase::DEATH_ASK_RESPAWN; + } else if( name == "DEATH_RESPAWN" ) { + return ImpulseBase::DEATH_RESPAWN; + } else if( name == "ANIMALS_BEAST" ) { + return ImpulseBase::ANIMALS_BEAST; + } else if( name == "ANIMALS_MOUNT_ABORT" ) { + return ImpulseBase::ANIMALS_MOUNT_ABORT; + } else if( name == "EXCHANGE_INVITATION" ) { + return ImpulseBase::EXCHANGE_INVITATION; + } else if( name == "EXCHANGE_CLOSE_INVITATION" ) { + return ImpulseBase::EXCHANGE_CLOSE_INVITATION; + } else if( name == "EXCHANGE_PROPOSAL" ) { + return ImpulseBase::EXCHANGE_PROPOSAL; + } else if( name == "EXCHANGE_ACCEPT_INVITATION" ) { + return ImpulseBase::EXCHANGE_ACCEPT_INVITATION; + } else if( name == "EXCHANGE_DECLINE_INVITATION" ) { + return ImpulseBase::EXCHANGE_DECLINE_INVITATION; + } else if( name == "EXCHANGE_VALIDATE" ) { + return ImpulseBase::EXCHANGE_VALIDATE; + } else if( name == "EXCHANGE_INVALIDATE" ) { + return ImpulseBase::EXCHANGE_INVALIDATE; + } else if( name == "EXCHANGE_END" ) { + return ImpulseBase::EXCHANGE_END; + } else if( name == "EXCHANGE_SEEDS" ) { + return ImpulseBase::EXCHANGE_SEEDS; + } else if( name == "EXCHANGE_ADD" ) { + return ImpulseBase::EXCHANGE_ADD; + } else if( name == "EXCHANGE_REMOVE" ) { + return ImpulseBase::EXCHANGE_REMOVE; + } else if( name == "DEBUG_WHERE" ) { + return ImpulseBase::DEBUG_WHERE; + } else if( name == "DEBUG_WHO" ) { + return ImpulseBase::DEBUG_WHO; + } else if( name == "DEBUG_REPLY_WHERE" ) { + return ImpulseBase::DEBUG_REPLY_WHERE; + } else if( name == "DEBUG_SERVICES" ) { + return ImpulseBase::DEBUG_SERVICES; + } else if( name == "DEBUG_CMD" ) { + return ImpulseBase::DEBUG_CMD; + } else if( name == "DEBUG_PING" ) { + return ImpulseBase::DEBUG_PING; + } else if( name == "DEBUG_COUNTER" ) { + return ImpulseBase::DEBUG_COUNTER; + } else if( name == "COMMAND_EMOTE" ) { + return ImpulseBase::COMMAND_EMOTE; + } else if( name == "COMMAND_CUSTOM_EMOTE" ) { + return ImpulseBase::COMMAND_CUSTOM_EMOTE; + } else if( name == "COMMAND_WHERE" ) { + return ImpulseBase::COMMAND_WHERE; + } else if( name == "COMMAND_ADMIN" ) { + return ImpulseBase::COMMAND_ADMIN; + } else if( name == "COMMAND_ADMIN_OFFLINE" ) { + return ImpulseBase::COMMAND_ADMIN_OFFLINE; + } else if( name == "COMMAND_REMOTE_ADMIN" ) { + return ImpulseBase::COMMAND_REMOTE_ADMIN; + } else if( name == "COMMAND_REMOTE_ADMIN_ANSWER" ) { + return ImpulseBase::COMMAND_REMOTE_ADMIN_ANSWER; + } else if( name == "COMMAND_SIT" ) { + return ImpulseBase::COMMAND_SIT; + } else if( name == "COMMAND_AFK" ) { + return ImpulseBase::COMMAND_AFK; + } else if( name == "COMMAND_RANDOM" ) { + return ImpulseBase::COMMAND_RANDOM; + } else if( name == "COMMAND_GUILDMOTD" ) { + return ImpulseBase::COMMAND_GUILDMOTD; + } else if( name == "MP_EVAL_SET_MP" ) { + return ImpulseBase::MP_EVAL_SET_MP; + } else if( name == "MP_EVAL_SET_MP_LEVEL" ) { + return ImpulseBase::MP_EVAL_SET_MP_LEVEL; + } else if( name == "MP_EVAL_SET_MARKET" ) { + return ImpulseBase::MP_EVAL_SET_MARKET; + } else if( name == "MP_EVAL_EXECUTE" ) { + return ImpulseBase::MP_EVAL_EXECUTE; + } else if( name == "BOTCHAT_NEXT_PAGE_ITEM" ) { + return ImpulseBase::BOTCHAT_NEXT_PAGE_ITEM; + } else if( name == "BOTCHAT_NEXT_PAGE_MISSION" ) { + return ImpulseBase::BOTCHAT_NEXT_PAGE_MISSION; + } else if( name == "BOTCHAT_START_TRADE_ITEM" ) { + return ImpulseBase::BOTCHAT_START_TRADE_ITEM; + } else if( name == "BOTCHAT_START_TRADE_TELEPORT" ) { + return ImpulseBase::BOTCHAT_START_TRADE_TELEPORT; + } else if( name == "BOTCHAT_START_TRADE_FACTION" ) { + return ImpulseBase::BOTCHAT_START_TRADE_FACTION; + } else if( name == "BOTCHAT_START_TRADE_SKILL" ) { + return ImpulseBase::BOTCHAT_START_TRADE_SKILL; + } else if( name == "BOTCHAT_START_TRADE_PACT" ) { + return ImpulseBase::BOTCHAT_START_TRADE_PACT; + } else if( name == "BOTCHAT_START_TRADE_ACTION" ) { + return ImpulseBase::BOTCHAT_START_TRADE_ACTION; + } else if( name == "BOTCHAT_BUY" ) { + return ImpulseBase::BOTCHAT_BUY; + } else if( name == "BOTCHAT_SELL" ) { + return ImpulseBase::BOTCHAT_SELL; + } else if( name == "BOTCHAT_DESTROY_ITEM" ) { + return ImpulseBase::BOTCHAT_DESTROY_ITEM; + } else if( name == "BOTCHAT_REFRESH_TRADE_LIST" ) { + return ImpulseBase::BOTCHAT_REFRESH_TRADE_LIST; + } else if( name == "BOTCHAT_SET_FILTERS" ) { + return ImpulseBase::BOTCHAT_SET_FILTERS; + } else if( name == "BOTCHAT_START_CHOOSE_MISSION" ) { + return ImpulseBase::BOTCHAT_START_CHOOSE_MISSION; + } else if( name == "BOTCHAT_START_DYNAMIC_MISSION" ) { + return ImpulseBase::BOTCHAT_START_DYNAMIC_MISSION; + } else if( name == "BOTCHAT_CONTINUE_MISSION" ) { + return ImpulseBase::BOTCHAT_CONTINUE_MISSION; + } else if( name == "BOTCHAT_VALIDATE_PLAYER_GIFT" ) { + return ImpulseBase::BOTCHAT_VALIDATE_PLAYER_GIFT; + } else if( name == "BOTCHAT_PICK_MISSION" ) { + return ImpulseBase::BOTCHAT_PICK_MISSION; + } else if( name == "BOTCHAT_DM_CHOICE" ) { + return ImpulseBase::BOTCHAT_DM_CHOICE; + } else if( name == "BOTCHAT_DM_ACCEPT" ) { + return ImpulseBase::BOTCHAT_DM_ACCEPT; + } else if( name == "BOTCHAT_START_NEWS" ) { + return ImpulseBase::BOTCHAT_START_NEWS; + } else if( name == "BOTCHAT_START_CREATE_GUILD" ) { + return ImpulseBase::BOTCHAT_START_CREATE_GUILD; + } else if( name == "BOTCHAT_END" ) { + return ImpulseBase::BOTCHAT_END; + } else if( name == "BOTCHAT_FORCE_END" ) { + return ImpulseBase::BOTCHAT_FORCE_END; + } else if( name == "BOTCHAT_START_CHOOSE_DUTY" ) { + return ImpulseBase::BOTCHAT_START_CHOOSE_DUTY; + } else if( name == "BOTCHAT_NEXT_PAGE_DUTY" ) { + return ImpulseBase::BOTCHAT_NEXT_PAGE_DUTY; + } else if( name == "BOTCHAT_DUTY_APPLY" ) { + return ImpulseBase::BOTCHAT_DUTY_APPLY; + } else if( name == "BOTCHAT_DUTY_CANCEL_APPLY" ) { + return ImpulseBase::BOTCHAT_DUTY_CANCEL_APPLY; + } else if( name == "BOTCHAT_START_TRADE_GUILD_OPTIONS" ) { + return ImpulseBase::BOTCHAT_START_TRADE_GUILD_OPTIONS; + } else if( name == "BOTCHAT_BUY_GUILD_OPTION" ) { + return ImpulseBase::BOTCHAT_BUY_GUILD_OPTION; + } else if( name == "BOTCHAT_START_GUILD_RESEARCH" ) { + return ImpulseBase::BOTCHAT_START_GUILD_RESEARCH; + } else if( name == "BOTCHAT_DESTROY_BUILDING" ) { + return ImpulseBase::BOTCHAT_DESTROY_BUILDING; + } else if( name == "BOTCHAT_DYNCHAT_OPEN" ) { + return ImpulseBase::BOTCHAT_DYNCHAT_OPEN; + } else if( name == "BOTCHAT_DYNCHAT_CLOSE" ) { + return ImpulseBase::BOTCHAT_DYNCHAT_CLOSE; + } else if( name == "BOTCHAT_DYNCHAT_SEND" ) { + return ImpulseBase::BOTCHAT_DYNCHAT_SEND; + } else if( name == "JOURNAL_INIT_COMPLETED_MISSIONS" ) { + return ImpulseBase::JOURNAL_INIT_COMPLETED_MISSIONS; + } else if( name == "JOURNAL_UPDATE_COMPLETED_MISSIONS" ) { + return ImpulseBase::JOURNAL_UPDATE_COMPLETED_MISSIONS; + } else if( name == "JOURNAL_MISSION_ABANDON" ) { + return ImpulseBase::JOURNAL_MISSION_ABANDON; + } else if( name == "JOURNAL_GROUP_MISSION_ABANDON" ) { + return ImpulseBase::JOURNAL_GROUP_MISSION_ABANDON; + } else if( name == "JOURNAL_ADD_COMPASS" ) { + return ImpulseBase::JOURNAL_ADD_COMPASS; + } else if( name == "JOURNAL_ADD_COMPASS_BOT" ) { + return ImpulseBase::JOURNAL_ADD_COMPASS_BOT; + } else if( name == "JOURNAL_REMOVE_COMPASS" ) { + return ImpulseBase::JOURNAL_REMOVE_COMPASS; + } else if( name == "JOURNAL_REMOVE_COMPASS_BOT" ) { + return ImpulseBase::JOURNAL_REMOVE_COMPASS_BOT; + } else if( name == "STRING_MANAGER_SET_LANGUAGE" ) { + return ImpulseBase::STRING_MANAGER_SET_LANGUAGE; + } else if( name == "STRING_MANAGER_PHRASE_SEND" ) { + return ImpulseBase::STRING_MANAGER_PHRASE_SEND; + } else if( name == "STRING_MANAGER_STRING_RQ" ) { + return ImpulseBase::STRING_MANAGER_STRING_RQ; + } else if( name == "STRING_MANAGER_STRING_RESP" ) { + return ImpulseBase::STRING_MANAGER_STRING_RESP; + } else if( name == "STRING_MANAGER_RELOAD_CACHE" ) { + return ImpulseBase::STRING_MANAGER_RELOAD_CACHE; + } else if( name == "GUILD_CREATE" ) { + return ImpulseBase::GUILD_CREATE; + } else if( name == "GUILD_ABORT_CREATION" ) { + return ImpulseBase::GUILD_ABORT_CREATION; + } else if( name == "GUILD_OPEN_GUILD_WINDOW" ) { + return ImpulseBase::GUILD_OPEN_GUILD_WINDOW; + } else if( name == "GUILD_INVITATION" ) { + return ImpulseBase::GUILD_INVITATION; + } else if( name == "GUILD_ACCEPT_INVITATION" ) { + return ImpulseBase::GUILD_ACCEPT_INVITATION; + } else if( name == "GUILD_REFUSE_INVITATION" ) { + return ImpulseBase::GUILD_REFUSE_INVITATION; + } else if( name == "GUILD_JOIN_PROPOSAL" ) { + return ImpulseBase::GUILD_JOIN_PROPOSAL; + } else if( name == "GUILD_SET_GRADE" ) { + return ImpulseBase::GUILD_SET_GRADE; + } else if( name == "GUILD_SET_LEADER" ) { + return ImpulseBase::GUILD_SET_LEADER; + } else if( name == "GUILD_KICK_MEMBER" ) { + return ImpulseBase::GUILD_KICK_MEMBER; + } else if( name == "GUILD_TELEPORT" ) { + return ImpulseBase::GUILD_TELEPORT; + } else if( name == "GUILD_ASCENSOR" ) { + return ImpulseBase::GUILD_ASCENSOR; + } else if( name == "GUILD_FIRST_ASCENSOR_PAGE" ) { + return ImpulseBase::GUILD_FIRST_ASCENSOR_PAGE; + } else if( name == "GUILD_NEXT_ASCENSOR_PAGE" ) { + return ImpulseBase::GUILD_NEXT_ASCENSOR_PAGE; + } else if( name == "GUILD_LEAVE_ASCENSOR" ) { + return ImpulseBase::GUILD_LEAVE_ASCENSOR; + } else if( name == "GUILD_QUIT" ) { + return ImpulseBase::GUILD_QUIT; + } else if( name == "GUILD_SET_PLAYER_TITLE" ) { + return ImpulseBase::GUILD_SET_PLAYER_TITLE; + } else if( name == "GUILD_UPDATE_PLAYER_TITLE" ) { + return ImpulseBase::GUILD_UPDATE_PLAYER_TITLE; + } else if( name == "GUILD_USE_FEMALE_TITLES" ) { + return ImpulseBase::GUILD_USE_FEMALE_TITLES; + } else if( name == "GUILD_PUT_MONEY" ) { + return ImpulseBase::GUILD_PUT_MONEY; + } else if( name == "GUILD_TAKE_MONEY" ) { + return ImpulseBase::GUILD_TAKE_MONEY; + } else if( name == "GUILD_OPEN_INVENTORY" ) { + return ImpulseBase::GUILD_OPEN_INVENTORY; + } else if( name == "GUILD_CLOSE_INVENTORY" ) { + return ImpulseBase::GUILD_CLOSE_INVENTORY; + } else if( name == "OUTPOST_GIVEUP_OUTPOST" ) { + return ImpulseBase::OUTPOST_GIVEUP_OUTPOST; + } else if( name == "OUTPOST_SELECT" ) { + return ImpulseBase::OUTPOST_SELECT; + } else if( name == "OUTPOST_UNSELECT" ) { + return ImpulseBase::OUTPOST_UNSELECT; + } else if( name == "OUTPOST_DECLARE_WAR_START" ) { + return ImpulseBase::OUTPOST_DECLARE_WAR_START; + } else if( name == "OUTPOST_DECLARE_WAR_ACK" ) { + return ImpulseBase::OUTPOST_DECLARE_WAR_ACK; + } else if( name == "OUTPOST_DECLARE_WAR_VALIDATE" ) { + return ImpulseBase::OUTPOST_DECLARE_WAR_VALIDATE; + } else if( name == "OUTPOST_SET_DEF_PERIOD" ) { + return ImpulseBase::OUTPOST_SET_DEF_PERIOD; + } else if( name == "OUTPOST_SET_SQUAD" ) { + return ImpulseBase::OUTPOST_SET_SQUAD; + } else if( name == "OUTPOST_SET_SQUAD_SPAWN" ) { + return ImpulseBase::OUTPOST_SET_SQUAD_SPAWN; + } else if( name == "OUTPOST_INSERT_SQUAD" ) { + return ImpulseBase::OUTPOST_INSERT_SQUAD; + } else if( name == "OUTPOST_REMOVE_SQUAD" ) { + return ImpulseBase::OUTPOST_REMOVE_SQUAD; + } else if( name == "OUTPOST_SET_SQUAD_CAPITAL" ) { + return ImpulseBase::OUTPOST_SET_SQUAD_CAPITAL; + } else if( name == "OUTPOST_CHOOSE_SIDE" ) { + return ImpulseBase::OUTPOST_CHOOSE_SIDE; + } else if( name == "OUTPOST_SIDE_CHOSEN" ) { + return ImpulseBase::OUTPOST_SIDE_CHOSEN; + } else if( name == "OUTPOST_BANISH_PLAYER" ) { + return ImpulseBase::OUTPOST_BANISH_PLAYER; + } else if( name == "OUTPOST_BANISH_GUILD" ) { + return ImpulseBase::OUTPOST_BANISH_GUILD; + } else if( name == "OUTPOST_BUY_BUILDING" ) { + return ImpulseBase::OUTPOST_BUY_BUILDING; + } else if( name == "OUTPOST_DESTROY_BUILDING" ) { + return ImpulseBase::OUTPOST_DESTROY_BUILDING; + } else if( name == "PHRASE_DELETE" ) { + return ImpulseBase::PHRASE_DELETE; + } else if( name == "PHRASE_LEARN" ) { + return ImpulseBase::PHRASE_LEARN; + } else if( name == "PHRASE_MEMORIZE" ) { + return ImpulseBase::PHRASE_MEMORIZE; + } else if( name == "PHRASE_FORGET" ) { + return ImpulseBase::PHRASE_FORGET; + } else if( name == "PHRASE_EXECUTE" ) { + return ImpulseBase::PHRASE_EXECUTE; + } else if( name == "PHRASE_EXECUTE_CYCLIC" ) { + return ImpulseBase::PHRASE_EXECUTE_CYCLIC; + } else if( name == "PHRASE_EXECUTE_FABER" ) { + return ImpulseBase::PHRASE_EXECUTE_FABER; + } else if( name == "PHRASE_DOWNLOAD" ) { + return ImpulseBase::PHRASE_DOWNLOAD; + } else if( name == "PHRASE_BUY" ) { + return ImpulseBase::PHRASE_BUY; + } else if( name == "PHRASE_CONFIRM_BUY" ) { + return ImpulseBase::PHRASE_CONFIRM_BUY; + } else if( name == "PHRASE_BUY_SHEET" ) { + return ImpulseBase::PHRASE_BUY_SHEET; + } else if( name == "PHRASE_CANCEL_LINK" ) { + return ImpulseBase::PHRASE_CANCEL_LINK; + } else if( name == "PHRASE_CANCEL_TOP" ) { + return ImpulseBase::PHRASE_CANCEL_TOP; + } else if( name == "PHRASE_CANCEL_ALL" ) { + return ImpulseBase::PHRASE_CANCEL_ALL; + } else if( name == "PHRASE_CRISTALIZE" ) { + return ImpulseBase::PHRASE_CRISTALIZE; + } else if( name == "PHRASE_EXEC_CYCLIC_ACK" ) { + return ImpulseBase::PHRASE_EXEC_CYCLIC_ACK; + } else if( name == "PHRASE_EXEC_NEXT_ACK" ) { + return ImpulseBase::PHRASE_EXEC_NEXT_ACK; + } else if( name == "ITEM_INFO_GET" ) { + return ImpulseBase::ITEM_INFO_GET; + } else if( name == "ITEM_INFO_SET" ) { + return ImpulseBase::ITEM_INFO_SET; + } else if( name == "ITEM_INFO_REFRESH_VERSION" ) { + return ImpulseBase::ITEM_INFO_REFRESH_VERSION; + } else if( name == "MISSION_PREREQ_GET" ) { + return ImpulseBase::MISSION_PREREQ_GET; + } else if( name == "MISSION_PREREQ_SET" ) { + return ImpulseBase::MISSION_PREREQ_SET; + } else if( name == "MISSION_ENTER_CRITICAL" ) { + return ImpulseBase::MISSION_ENTER_CRITICAL; + } else if( name == "MISSION_ASK_ENTER_CRITICAL" ) { + return ImpulseBase::MISSION_ASK_ENTER_CRITICAL; + } else if( name == "MISSION_CLOSE_ENTER_CRITICAL" ) { + return ImpulseBase::MISSION_CLOSE_ENTER_CRITICAL; + } else if( name == "MISSION_WAKE" ) { + return ImpulseBase::MISSION_WAKE; + } else if( name == "MISSION_GROUP_WAKE" ) { + return ImpulseBase::MISSION_GROUP_WAKE; + } else if( name == "DUEL_ASK" ) { + return ImpulseBase::DUEL_ASK; + } else if( name == "DUEL_ACCEPT" ) { + return ImpulseBase::DUEL_ACCEPT; + } else if( name == "DUEL_REFUSE" ) { + return ImpulseBase::DUEL_REFUSE; + } else if( name == "DUEL_ABANDON" ) { + return ImpulseBase::DUEL_ABANDON; + } else if( name == "DUEL_INVITATION" ) { + return ImpulseBase::DUEL_INVITATION; + } else if( name == "DUEL_CANCEL_INVITATION" ) { + return ImpulseBase::DUEL_CANCEL_INVITATION; + } else if( name == "PVP_CHALLENGE_ASK" ) { + return ImpulseBase::PVP_CHALLENGE_ASK; + } else if( name == "PVP_CHALLENGE_ACCEPT" ) { + return ImpulseBase::PVP_CHALLENGE_ACCEPT; + } else if( name == "PVP_CHALLENGE_REFUSE" ) { + return ImpulseBase::PVP_CHALLENGE_REFUSE; + } else if( name == "PVP_CHALLENGE_ABANDON" ) { + return ImpulseBase::PVP_CHALLENGE_ABANDON; + } else if( name == "PVP_CHALLENGE_INVITATION" ) { + return ImpulseBase::PVP_CHALLENGE_INVITATION; + } else if( name == "PVP_CHALLENGE_CANCEL_INVITATION" ) { + return ImpulseBase::PVP_CHALLENGE_CANCEL_INVITATION; + } else if( name == "PVP_PVP_TAG" ) { + return ImpulseBase::PVP_PVP_TAG; + } else if( name == "PVP_SET_NEUTRAL_ALLEGIANCE" ) { + return ImpulseBase::PVP_SET_NEUTRAL_ALLEGIANCE; + } else if( name == "PVP_SET_NEUTRAL_ALLEGIANCE_GUILD" ) { + return ImpulseBase::PVP_SET_NEUTRAL_ALLEGIANCE_GUILD; + } else if( name == "PVP_FACTION_PUSH_FACTION_WAR" ) { + return ImpulseBase::PVP_FACTION_PUSH_FACTION_WAR; + } else if( name == "PVP_FACTION_POP_FACTION_WAR" ) { + return ImpulseBase::PVP_FACTION_POP_FACTION_WAR; + } else if( name == "PVP_FACTION_FACTION_WARS" ) { + return ImpulseBase::PVP_FACTION_FACTION_WARS; + } else if( name == "ENCYCLOPEDIA_UPDATE" ) { + return ImpulseBase::ENCYCLOPEDIA_UPDATE; + } else if( name == "ENCYCLOPEDIA_INIT" ) { + return ImpulseBase::ENCYCLOPEDIA_INIT; + } else if( name == "USER_BARS" ) { + return ImpulseBase::USER_BARS; + } else if( name == "USER_POPUP" ) { + return ImpulseBase::USER_POPUP; + } else if( name == "EVENT_SET_ITEM_CUSTOM_TEXT" ) { + return ImpulseBase::EVENT_SET_ITEM_CUSTOM_TEXT; + } else if( name == "EVENT_DUMMY" ) { + return ImpulseBase::EVENT_DUMMY; + } else if( name == "TOTEM_BUILD" ) { + return ImpulseBase::TOTEM_BUILD; + } else if( name == "TOTEM_DUMMY" ) { + return ImpulseBase::TOTEM_DUMMY; + } else if( name == "MODULE_GATEWAY_FEOPEN" ) { + return ImpulseBase::MODULE_GATEWAY_FEOPEN; + } else if( name == "MODULE_GATEWAY_GATEWAY_MSG" ) { + return ImpulseBase::MODULE_GATEWAY_GATEWAY_MSG; + } else if( name == "MODULE_GATEWAY_FECLOSE" ) { + return ImpulseBase::MODULE_GATEWAY_FECLOSE; + } else if( name == "SEASON_SET" ) { + return ImpulseBase::SEASON_SET; + } else if( name == "SEASON_DUMMY" ) { + return ImpulseBase::SEASON_DUMMY; + } else if( name == "DM_GIFT_BEGIN" ) { + return ImpulseBase::DM_GIFT_BEGIN; + } else if( name == "DM_GIFT_VALIDATE" ) { + return ImpulseBase::DM_GIFT_VALIDATE; + } else if( name == "RING_MISSION_MISSION_RING_SELECT" ) { + return ImpulseBase::RING_MISSION_MISSION_RING_SELECT; + } else if( name == "RING_MISSION_DSS_DOWN" ) { + return ImpulseBase::RING_MISSION_DSS_DOWN; + } else if( name == "NPC_ICON_GET_DESC" ) { + return ImpulseBase::NPC_ICON_GET_DESC; + } else if( name == "NPC_ICON_SET_DESC" ) { + return ImpulseBase::NPC_ICON_SET_DESC; + } else if( name == "NPC_ICON_SVR_EVENT_MIS_AVL" ) { + return ImpulseBase::NPC_ICON_SVR_EVENT_MIS_AVL; + } else if( name == "NPC_ICON_SET_TIMER" ) { + return ImpulseBase::NPC_ICON_SET_TIMER; + } else { + WARN_PRINT("Ignore unknown keyword ImpulseBase '" + name + "'"); + } + return ImpulseBase::__LAST_ELEMENT; +} + +String ImpulseBase::get_command_name(uint32_t id) +{ + switch (id) + { + case ImpulseBase::Impulse::TARGET_PARTY: + return "TARGET_PARTY"; + case ImpulseBase::Impulse::TARGET_INVENTORY: + return "TARGET_INVENTORY"; + case ImpulseBase::Impulse::TARGET_FOLLOW: + return "TARGET_FOLLOW"; + case ImpulseBase::Impulse::TARGET_NO_FOLLOW: + return "TARGET_NO_FOLLOW"; + case ImpulseBase::Impulse::CONNECTION_USER_CHAR: + return "CONNECTION_USER_CHAR"; + case ImpulseBase::Impulse::CONNECTION_NO_USER_CHAR: + return "CONNECTION_NO_USER_CHAR"; + case ImpulseBase::Impulse::CONNECTION_USER_CHARS: + return "CONNECTION_USER_CHARS"; + case ImpulseBase::Impulse::CONNECTION_CREATE_CHAR: + return "CONNECTION_CREATE_CHAR"; + case ImpulseBase::Impulse::CONNECTION_SELECT_CHAR: + return "CONNECTION_SELECT_CHAR"; + case ImpulseBase::Impulse::CONNECTION_DELETE_CHAR: + return "CONNECTION_DELETE_CHAR"; + case ImpulseBase::Impulse::CONNECTION_RENAME_CHAR: + return "CONNECTION_RENAME_CHAR"; + case ImpulseBase::Impulse::CONNECTION_ENTER: + return "CONNECTION_ENTER"; + case ImpulseBase::Impulse::CONNECTION_READY: + return "CONNECTION_READY"; + case ImpulseBase::Impulse::CONNECTION_TIME_DATE_SYNCHRO: + return "CONNECTION_TIME_DATE_SYNCHRO"; + case ImpulseBase::Impulse::CONNECTION_ASK_NAME: + return "CONNECTION_ASK_NAME"; + case ImpulseBase::Impulse::CONNECTION_VALID_NAME: + return "CONNECTION_VALID_NAME"; + case ImpulseBase::Impulse::CONNECTION_CREATE_CHAR_ERROR: + return "CONNECTION_CREATE_CHAR_ERROR"; + case ImpulseBase::Impulse::CONNECTION_RECONNECT: + return "CONNECTION_RECONNECT"; + case ImpulseBase::Impulse::CONNECTION_SERVER_RECONNECT_OK: + return "CONNECTION_SERVER_RECONNECT_OK"; + case ImpulseBase::Impulse::CONNECTION_SHARD_ID: + return "CONNECTION_SHARD_ID"; + case ImpulseBase::Impulse::CONNECTION_SERVER_QUIT_OK: + return "CONNECTION_SERVER_QUIT_OK"; + case ImpulseBase::Impulse::CONNECTION_SERVER_QUIT_ABORT: + return "CONNECTION_SERVER_QUIT_ABORT"; + case ImpulseBase::Impulse::CONNECTION_CLIENT_QUIT_REQUEST: + return "CONNECTION_CLIENT_QUIT_REQUEST"; + case ImpulseBase::Impulse::CONNECTION_MAIL_AVAILABLE: + return "CONNECTION_MAIL_AVAILABLE"; + case ImpulseBase::Impulse::CONNECTION_GUILD_MESSAGE_AVAILABLE: + return "CONNECTION_GUILD_MESSAGE_AVAILABLE"; + case ImpulseBase::Impulse::CONNECTION_PERMANENT_BAN: + return "CONNECTION_PERMANENT_BAN"; + case ImpulseBase::Impulse::CONNECTION_UNBAN: + return "CONNECTION_UNBAN"; + case ImpulseBase::Impulse::CONNECTION_FAR_TP: + return "CONNECTION_FAR_TP"; + case ImpulseBase::Impulse::CONNECTION_RET_MAINLAND: + return "CONNECTION_RET_MAINLAND"; + case ImpulseBase::Impulse::DB_UPD_PLR: + return "DB_UPD_PLR"; + case ImpulseBase::Impulse::DB_UPD_INV: + return "DB_UPD_INV"; + case ImpulseBase::Impulse::DB_INIT_PLR: + return "DB_INIT_PLR"; + case ImpulseBase::Impulse::DB_INIT_INV: + return "DB_INIT_INV"; + case ImpulseBase::Impulse::DB_GROUP_UPDATE_BANK: + return "DB_GROUP_UPDATE_BANK"; + case ImpulseBase::Impulse::DB_GROUP_INIT_BANK: + return "DB_GROUP_INIT_BANK"; + case ImpulseBase::Impulse::DB_GROUP_RESET_BANK: + return "DB_GROUP_RESET_BANK"; + case ImpulseBase::Impulse::POSITION: + return "POSITION"; + case ImpulseBase::Impulse::HARVEST_DEPOSIT: + return "HARVEST_DEPOSIT"; + case ImpulseBase::Impulse::HARVEST_CORPSE: + return "HARVEST_CORPSE"; + case ImpulseBase::Impulse::HARVEST_INTERRUPT: + return "HARVEST_INTERRUPT"; + case ImpulseBase::Impulse::HARVEST_CLOSE_TEMP_INVENTORY: + return "HARVEST_CLOSE_TEMP_INVENTORY"; + case ImpulseBase::Impulse::TRAINING: + return "TRAINING"; + case ImpulseBase::Impulse::JOB_SET_JOB_STATUS: + return "JOB_SET_JOB_STATUS"; + case ImpulseBase::Impulse::JOB_SWAP_JOB_STATUS: + return "JOB_SWAP_JOB_STATUS"; + case ImpulseBase::Impulse::CASTING_BEGIN: + return "CASTING_BEGIN"; + case ImpulseBase::Impulse::CASTING_INTERRUPT: + return "CASTING_INTERRUPT"; + case ImpulseBase::Impulse::FABER_OPEN: + return "FABER_OPEN"; + case ImpulseBase::Impulse::FABER_CLOSE: + return "FABER_CLOSE"; + case ImpulseBase::Impulse::FABER_EXECUTE: + return "FABER_EXECUTE"; + case ImpulseBase::Impulse::FABER_SET_NUM_ITEM: + return "FABER_SET_NUM_ITEM"; + case ImpulseBase::Impulse::FABER_START_CREATE: + return "FABER_START_CREATE"; + case ImpulseBase::Impulse::FABER_START_REPAIR: + return "FABER_START_REPAIR"; + case ImpulseBase::Impulse::FABER_START_REFINE: + return "FABER_START_REFINE"; + case ImpulseBase::Impulse::FABER_SET_MP_QUALITY: + return "FABER_SET_MP_QUALITY"; + case ImpulseBase::Impulse::FABER_SET_MP_REFINE: + return "FABER_SET_MP_REFINE"; + case ImpulseBase::Impulse::FABER_SET_TOOL: + return "FABER_SET_TOOL"; + case ImpulseBase::Impulse::FABER_RESET_TOOL: + return "FABER_RESET_TOOL"; + case ImpulseBase::Impulse::FABER_INTERRUPT: + return "FABER_INTERRUPT"; + case ImpulseBase::Impulse::COMBAT_ENGAGE: + return "COMBAT_ENGAGE"; + case ImpulseBase::Impulse::COMBAT_DISENGAGE: + return "COMBAT_DISENGAGE"; + case ImpulseBase::Impulse::COMBAT_DEFAULT_ATTACK: + return "COMBAT_DEFAULT_ATTACK"; + case ImpulseBase::Impulse::COMBAT_ENGAGE_FAILED: + return "COMBAT_ENGAGE_FAILED"; + case ImpulseBase::Impulse::COMBAT_VALIDATE_MELEE: + return "COMBAT_VALIDATE_MELEE"; + case ImpulseBase::Impulse::COMBAT_PARRY: + return "COMBAT_PARRY"; + case ImpulseBase::Impulse::COMBAT_DODGE: + return "COMBAT_DODGE"; + case ImpulseBase::Impulse::COMBAT_PROTECTED_SLOT: + return "COMBAT_PROTECTED_SLOT"; + case ImpulseBase::Impulse::COMBAT_FLYING_ChaScore1_DELTA: + return "COMBAT_FLYING_ChaScore1_DELTA"; + case ImpulseBase::Impulse::COMBAT_FLYING_TEXT_ISE: + return "COMBAT_FLYING_TEXT_ISE"; + case ImpulseBase::Impulse::COMBAT_FLYING_TEXT: + return "COMBAT_FLYING_TEXT"; + case ImpulseBase::Impulse::STRING_TELL: + return "STRING_TELL"; + case ImpulseBase::Impulse::STRING_FAR_TELL: + return "STRING_FAR_TELL"; + case ImpulseBase::Impulse::STRING_CHAT: + return "STRING_CHAT"; + case ImpulseBase::Impulse::STRING_CHAT_TEAM: + return "STRING_CHAT_TEAM"; + case ImpulseBase::Impulse::STRING_ADD_DYN_STR: + return "STRING_ADD_DYN_STR"; + case ImpulseBase::Impulse::STRING_FILTER: + return "STRING_FILTER"; + case ImpulseBase::Impulse::STRING_CHAT_MODE: + return "STRING_CHAT_MODE"; + case ImpulseBase::Impulse::STRING_CHAT2: + return "STRING_CHAT2"; + case ImpulseBase::Impulse::STRING_TELL2: + return "STRING_TELL2"; + case ImpulseBase::Impulse::STRING_DYN_STRING: + return "STRING_DYN_STRING"; + case ImpulseBase::Impulse::STRING_DYN_STRING_GROUP: + return "STRING_DYN_STRING_GROUP"; + case ImpulseBase::Impulse::STRING_AFK_TXT: + return "STRING_AFK_TXT"; + case ImpulseBase::Impulse::STUN_STUN: + return "STUN_STUN"; + case ImpulseBase::Impulse::STUN_WAKE_UP: + return "STUN_WAKE_UP"; + case ImpulseBase::Impulse::SENTENCE_EXECUTE: + return "SENTENCE_EXECUTE"; + case ImpulseBase::Impulse::SENTENCE_CANCEL: + return "SENTENCE_CANCEL"; + case ImpulseBase::Impulse::SENTENCE_CANCEL_CURRENT: + return "SENTENCE_CANCEL_CURRENT"; + case ImpulseBase::Impulse::SENTENCE_CANCEL_ALL: + return "SENTENCE_CANCEL_ALL"; + case ImpulseBase::Impulse::SENTENCE_CLEAR: + return "SENTENCE_CLEAR"; + case ImpulseBase::Impulse::SENTENCE_MEMORIZE: + return "SENTENCE_MEMORIZE"; + case ImpulseBase::Impulse::SENTENCE_FORGET: + return "SENTENCE_FORGET"; + case ImpulseBase::Impulse::SENTENCE_EVALUATE: + return "SENTENCE_EVALUATE"; + case ImpulseBase::Impulse::SENTENCE_ADD_BRICK: + return "SENTENCE_ADD_BRICK"; + case ImpulseBase::Impulse::SENTENCE_REMOVE_BRICK: + return "SENTENCE_REMOVE_BRICK"; + case ImpulseBase::Impulse::SENTENCE_START: + return "SENTENCE_START"; + case ImpulseBase::Impulse::SENTENCE_STOP: + return "SENTENCE_STOP"; + case ImpulseBase::Impulse::TEAM_JOIN: + return "TEAM_JOIN"; + case ImpulseBase::Impulse::TEAM_LEAVE: + return "TEAM_LEAVE"; + case ImpulseBase::Impulse::TEAM_INVITATION: + return "TEAM_INVITATION"; + case ImpulseBase::Impulse::TEAM_JOIN_PROPOSAL: + return "TEAM_JOIN_PROPOSAL"; + case ImpulseBase::Impulse::TEAM_JOIN_PROPOSAL_DECLINE: + return "TEAM_JOIN_PROPOSAL_DECLINE"; + case ImpulseBase::Impulse::TEAM_KICK: + return "TEAM_KICK"; + case ImpulseBase::Impulse::TEAM_SET_SUCCESSOR: + return "TEAM_SET_SUCCESSOR"; + case ImpulseBase::Impulse::TEAM_SHARE_OPEN: + return "TEAM_SHARE_OPEN"; + case ImpulseBase::Impulse::TEAM_SHARE_VALID_ITEM: + return "TEAM_SHARE_VALID_ITEM"; + case ImpulseBase::Impulse::TEAM_SHARE_INVALID_ITEM: + return "TEAM_SHARE_INVALID_ITEM"; + case ImpulseBase::Impulse::TEAM_SHARE_VALID: + return "TEAM_SHARE_VALID"; + case ImpulseBase::Impulse::TEAM_SHARE_INVALID: + return "TEAM_SHARE_INVALID"; + case ImpulseBase::Impulse::TEAM_SHARE_CLOSE: + return "TEAM_SHARE_CLOSE"; + case ImpulseBase::Impulse::TEAM_CONTACT_INIT: + return "TEAM_CONTACT_INIT"; + case ImpulseBase::Impulse::TEAM_CONTACT_ADD: + return "TEAM_CONTACT_ADD"; + case ImpulseBase::Impulse::TEAM_CONTACT_DEL: + return "TEAM_CONTACT_DEL"; + case ImpulseBase::Impulse::TEAM_CONTACT_MOVE: + return "TEAM_CONTACT_MOVE"; + case ImpulseBase::Impulse::TEAM_CONTACT_CREATE: + return "TEAM_CONTACT_CREATE"; + case ImpulseBase::Impulse::TEAM_CONTACT_STATUS: + return "TEAM_CONTACT_STATUS"; + case ImpulseBase::Impulse::TEAM_CONTACT_REMOVE: + return "TEAM_CONTACT_REMOVE"; + case ImpulseBase::Impulse::ITEM_DROP: + return "ITEM_DROP"; + case ImpulseBase::Impulse::ITEM_PICK_UP: + return "ITEM_PICK_UP"; + case ImpulseBase::Impulse::ITEM_PICK_UP_CLOSE: + return "ITEM_PICK_UP_CLOSE"; + case ImpulseBase::Impulse::ITEM_SWAP: + return "ITEM_SWAP"; + case ImpulseBase::Impulse::ITEM_ACTIVATE_SHEATH: + return "ITEM_ACTIVATE_SHEATH"; + case ImpulseBase::Impulse::ITEM_HARVEST: + return "ITEM_HARVEST"; + case ImpulseBase::Impulse::ITEM_HARVEST_CLOSE: + return "ITEM_HARVEST_CLOSE"; + case ImpulseBase::Impulse::ITEM_GIVE: + return "ITEM_GIVE"; + case ImpulseBase::Impulse::ITEM_DESTROY: + return "ITEM_DESTROY"; + case ImpulseBase::Impulse::ITEM_EQUIP: + return "ITEM_EQUIP"; + case ImpulseBase::Impulse::ITEM_UNEQUIP: + return "ITEM_UNEQUIP"; + case ImpulseBase::Impulse::ITEM_TEMP_TO_BAG: + return "ITEM_TEMP_TO_BAG"; + case ImpulseBase::Impulse::ITEM_ALL_TEMP: + return "ITEM_ALL_TEMP"; + case ImpulseBase::Impulse::ITEM_NO_TEMP: + return "ITEM_NO_TEMP"; + case ImpulseBase::Impulse::ITEM_ENCHANT: + return "ITEM_ENCHANT"; + case ImpulseBase::Impulse::ITEM_OPEN_ROOM_INVENTORY: + return "ITEM_OPEN_ROOM_INVENTORY"; + case ImpulseBase::Impulse::ITEM_CLOSE_ROOM_INVENTORY: + return "ITEM_CLOSE_ROOM_INVENTORY"; + case ImpulseBase::Impulse::ITEM_USE_ITEM: + return "ITEM_USE_ITEM"; + case ImpulseBase::Impulse::ITEM_STOP_USE_XP_CAT: + return "ITEM_STOP_USE_XP_CAT"; + case ImpulseBase::Impulse::TP_RESPAWN: + return "TP_RESPAWN"; + case ImpulseBase::Impulse::TP_BOT: + return "TP_BOT"; + case ImpulseBase::Impulse::TP_WANTED: + return "TP_WANTED"; + case ImpulseBase::Impulse::TP_DEST: + return "TP_DEST"; + case ImpulseBase::Impulse::TP_DEST_WITH_SEASON: + return "TP_DEST_WITH_SEASON"; + case ImpulseBase::Impulse::TP_ACK: + return "TP_ACK"; + case ImpulseBase::Impulse::TP_CORRECT: + return "TP_CORRECT"; + case ImpulseBase::Impulse::DEATH_RESPAWN_POINT: + return "DEATH_RESPAWN_POINT"; + case ImpulseBase::Impulse::DEATH_ASK_RESPAWN: + return "DEATH_ASK_RESPAWN"; + case ImpulseBase::Impulse::DEATH_RESPAWN: + return "DEATH_RESPAWN"; + case ImpulseBase::Impulse::ANIMALS_BEAST: + return "ANIMALS_BEAST"; + case ImpulseBase::Impulse::ANIMALS_MOUNT_ABORT: + return "ANIMALS_MOUNT_ABORT"; + case ImpulseBase::Impulse::EXCHANGE_INVITATION: + return "EXCHANGE_INVITATION"; + case ImpulseBase::Impulse::EXCHANGE_CLOSE_INVITATION: + return "EXCHANGE_CLOSE_INVITATION"; + case ImpulseBase::Impulse::EXCHANGE_PROPOSAL: + return "EXCHANGE_PROPOSAL"; + case ImpulseBase::Impulse::EXCHANGE_ACCEPT_INVITATION: + return "EXCHANGE_ACCEPT_INVITATION"; + case ImpulseBase::Impulse::EXCHANGE_DECLINE_INVITATION: + return "EXCHANGE_DECLINE_INVITATION"; + case ImpulseBase::Impulse::EXCHANGE_VALIDATE: + return "EXCHANGE_VALIDATE"; + case ImpulseBase::Impulse::EXCHANGE_INVALIDATE: + return "EXCHANGE_INVALIDATE"; + case ImpulseBase::Impulse::EXCHANGE_END: + return "EXCHANGE_END"; + case ImpulseBase::Impulse::EXCHANGE_SEEDS: + return "EXCHANGE_SEEDS"; + case ImpulseBase::Impulse::EXCHANGE_ADD: + return "EXCHANGE_ADD"; + case ImpulseBase::Impulse::EXCHANGE_REMOVE: + return "EXCHANGE_REMOVE"; + case ImpulseBase::Impulse::DEBUG_WHERE: + return "DEBUG_WHERE"; + case ImpulseBase::Impulse::DEBUG_WHO: + return "DEBUG_WHO"; + case ImpulseBase::Impulse::DEBUG_REPLY_WHERE: + return "DEBUG_REPLY_WHERE"; + case ImpulseBase::Impulse::DEBUG_SERVICES: + return "DEBUG_SERVICES"; + case ImpulseBase::Impulse::DEBUG_CMD: + return "DEBUG_CMD"; + case ImpulseBase::Impulse::DEBUG_PING: + return "DEBUG_PING"; + case ImpulseBase::Impulse::DEBUG_COUNTER: + return "DEBUG_COUNTER"; + case ImpulseBase::Impulse::COMMAND_EMOTE: + return "COMMAND_EMOTE"; + case ImpulseBase::Impulse::COMMAND_CUSTOM_EMOTE: + return "COMMAND_CUSTOM_EMOTE"; + case ImpulseBase::Impulse::COMMAND_WHERE: + return "COMMAND_WHERE"; + case ImpulseBase::Impulse::COMMAND_ADMIN: + return "COMMAND_ADMIN"; + case ImpulseBase::Impulse::COMMAND_ADMIN_OFFLINE: + return "COMMAND_ADMIN_OFFLINE"; + case ImpulseBase::Impulse::COMMAND_REMOTE_ADMIN: + return "COMMAND_REMOTE_ADMIN"; + case ImpulseBase::Impulse::COMMAND_REMOTE_ADMIN_ANSWER: + return "COMMAND_REMOTE_ADMIN_ANSWER"; + case ImpulseBase::Impulse::COMMAND_SIT: + return "COMMAND_SIT"; + case ImpulseBase::Impulse::COMMAND_AFK: + return "COMMAND_AFK"; + case ImpulseBase::Impulse::COMMAND_RANDOM: + return "COMMAND_RANDOM"; + case ImpulseBase::Impulse::COMMAND_GUILDMOTD: + return "COMMAND_GUILDMOTD"; + case ImpulseBase::Impulse::MP_EVAL_SET_MP: + return "MP_EVAL_SET_MP"; + case ImpulseBase::Impulse::MP_EVAL_SET_MP_LEVEL: + return "MP_EVAL_SET_MP_LEVEL"; + case ImpulseBase::Impulse::MP_EVAL_SET_MARKET: + return "MP_EVAL_SET_MARKET"; + case ImpulseBase::Impulse::MP_EVAL_EXECUTE: + return "MP_EVAL_EXECUTE"; + case ImpulseBase::Impulse::BOTCHAT_NEXT_PAGE_ITEM: + return "BOTCHAT_NEXT_PAGE_ITEM"; + case ImpulseBase::Impulse::BOTCHAT_NEXT_PAGE_MISSION: + return "BOTCHAT_NEXT_PAGE_MISSION"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_ITEM: + return "BOTCHAT_START_TRADE_ITEM"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_TELEPORT: + return "BOTCHAT_START_TRADE_TELEPORT"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_FACTION: + return "BOTCHAT_START_TRADE_FACTION"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_SKILL: + return "BOTCHAT_START_TRADE_SKILL"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_PACT: + return "BOTCHAT_START_TRADE_PACT"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_ACTION: + return "BOTCHAT_START_TRADE_ACTION"; + case ImpulseBase::Impulse::BOTCHAT_BUY: + return "BOTCHAT_BUY"; + case ImpulseBase::Impulse::BOTCHAT_SELL: + return "BOTCHAT_SELL"; + case ImpulseBase::Impulse::BOTCHAT_DESTROY_ITEM: + return "BOTCHAT_DESTROY_ITEM"; + case ImpulseBase::Impulse::BOTCHAT_REFRESH_TRADE_LIST: + return "BOTCHAT_REFRESH_TRADE_LIST"; + case ImpulseBase::Impulse::BOTCHAT_SET_FILTERS: + return "BOTCHAT_SET_FILTERS"; + case ImpulseBase::Impulse::BOTCHAT_START_CHOOSE_MISSION: + return "BOTCHAT_START_CHOOSE_MISSION"; + case ImpulseBase::Impulse::BOTCHAT_START_DYNAMIC_MISSION: + return "BOTCHAT_START_DYNAMIC_MISSION"; + case ImpulseBase::Impulse::BOTCHAT_CONTINUE_MISSION: + return "BOTCHAT_CONTINUE_MISSION"; + case ImpulseBase::Impulse::BOTCHAT_VALIDATE_PLAYER_GIFT: + return "BOTCHAT_VALIDATE_PLAYER_GIFT"; + case ImpulseBase::Impulse::BOTCHAT_PICK_MISSION: + return "BOTCHAT_PICK_MISSION"; + case ImpulseBase::Impulse::BOTCHAT_DM_CHOICE: + return "BOTCHAT_DM_CHOICE"; + case ImpulseBase::Impulse::BOTCHAT_DM_ACCEPT: + return "BOTCHAT_DM_ACCEPT"; + case ImpulseBase::Impulse::BOTCHAT_START_NEWS: + return "BOTCHAT_START_NEWS"; + case ImpulseBase::Impulse::BOTCHAT_START_CREATE_GUILD: + return "BOTCHAT_START_CREATE_GUILD"; + case ImpulseBase::Impulse::BOTCHAT_END: + return "BOTCHAT_END"; + case ImpulseBase::Impulse::BOTCHAT_FORCE_END: + return "BOTCHAT_FORCE_END"; + case ImpulseBase::Impulse::BOTCHAT_START_CHOOSE_DUTY: + return "BOTCHAT_START_CHOOSE_DUTY"; + case ImpulseBase::Impulse::BOTCHAT_NEXT_PAGE_DUTY: + return "BOTCHAT_NEXT_PAGE_DUTY"; + case ImpulseBase::Impulse::BOTCHAT_DUTY_APPLY: + return "BOTCHAT_DUTY_APPLY"; + case ImpulseBase::Impulse::BOTCHAT_DUTY_CANCEL_APPLY: + return "BOTCHAT_DUTY_CANCEL_APPLY"; + case ImpulseBase::Impulse::BOTCHAT_START_TRADE_GUILD_OPTIONS: + return "BOTCHAT_START_TRADE_GUILD_OPTIONS"; + case ImpulseBase::Impulse::BOTCHAT_BUY_GUILD_OPTION: + return "BOTCHAT_BUY_GUILD_OPTION"; + case ImpulseBase::Impulse::BOTCHAT_START_GUILD_RESEARCH: + return "BOTCHAT_START_GUILD_RESEARCH"; + case ImpulseBase::Impulse::BOTCHAT_DESTROY_BUILDING: + return "BOTCHAT_DESTROY_BUILDING"; + case ImpulseBase::Impulse::BOTCHAT_DYNCHAT_OPEN: + return "BOTCHAT_DYNCHAT_OPEN"; + case ImpulseBase::Impulse::BOTCHAT_DYNCHAT_CLOSE: + return "BOTCHAT_DYNCHAT_CLOSE"; + case ImpulseBase::Impulse::BOTCHAT_DYNCHAT_SEND: + return "BOTCHAT_DYNCHAT_SEND"; + case ImpulseBase::Impulse::JOURNAL_INIT_COMPLETED_MISSIONS: + return "JOURNAL_INIT_COMPLETED_MISSIONS"; + case ImpulseBase::Impulse::JOURNAL_UPDATE_COMPLETED_MISSIONS: + return "JOURNAL_UPDATE_COMPLETED_MISSIONS"; + case ImpulseBase::Impulse::JOURNAL_MISSION_ABANDON: + return "JOURNAL_MISSION_ABANDON"; + case ImpulseBase::Impulse::JOURNAL_GROUP_MISSION_ABANDON: + return "JOURNAL_GROUP_MISSION_ABANDON"; + case ImpulseBase::Impulse::JOURNAL_ADD_COMPASS: + return "JOURNAL_ADD_COMPASS"; + case ImpulseBase::Impulse::JOURNAL_ADD_COMPASS_BOT: + return "JOURNAL_ADD_COMPASS_BOT"; + case ImpulseBase::Impulse::JOURNAL_REMOVE_COMPASS: + return "JOURNAL_REMOVE_COMPASS"; + case ImpulseBase::Impulse::JOURNAL_REMOVE_COMPASS_BOT: + return "JOURNAL_REMOVE_COMPASS_BOT"; + case ImpulseBase::Impulse::STRING_MANAGER_SET_LANGUAGE: + return "STRING_MANAGER_SET_LANGUAGE"; + case ImpulseBase::Impulse::STRING_MANAGER_PHRASE_SEND: + return "STRING_MANAGER_PHRASE_SEND"; + case ImpulseBase::Impulse::STRING_MANAGER_STRING_RQ: + return "STRING_MANAGER_STRING_RQ"; + case ImpulseBase::Impulse::STRING_MANAGER_STRING_RESP: + return "STRING_MANAGER_STRING_RESP"; + case ImpulseBase::Impulse::STRING_MANAGER_RELOAD_CACHE: + return "STRING_MANAGER_RELOAD_CACHE"; + case ImpulseBase::Impulse::GUILD_CREATE: + return "GUILD_CREATE"; + case ImpulseBase::Impulse::GUILD_ABORT_CREATION: + return "GUILD_ABORT_CREATION"; + case ImpulseBase::Impulse::GUILD_OPEN_GUILD_WINDOW: + return "GUILD_OPEN_GUILD_WINDOW"; + case ImpulseBase::Impulse::GUILD_INVITATION: + return "GUILD_INVITATION"; + case ImpulseBase::Impulse::GUILD_ACCEPT_INVITATION: + return "GUILD_ACCEPT_INVITATION"; + case ImpulseBase::Impulse::GUILD_REFUSE_INVITATION: + return "GUILD_REFUSE_INVITATION"; + case ImpulseBase::Impulse::GUILD_JOIN_PROPOSAL: + return "GUILD_JOIN_PROPOSAL"; + case ImpulseBase::Impulse::GUILD_SET_GRADE: + return "GUILD_SET_GRADE"; + case ImpulseBase::Impulse::GUILD_SET_LEADER: + return "GUILD_SET_LEADER"; + case ImpulseBase::Impulse::GUILD_KICK_MEMBER: + return "GUILD_KICK_MEMBER"; + case ImpulseBase::Impulse::GUILD_TELEPORT: + return "GUILD_TELEPORT"; + case ImpulseBase::Impulse::GUILD_ASCENSOR: + return "GUILD_ASCENSOR"; + case ImpulseBase::Impulse::GUILD_FIRST_ASCENSOR_PAGE: + return "GUILD_FIRST_ASCENSOR_PAGE"; + case ImpulseBase::Impulse::GUILD_NEXT_ASCENSOR_PAGE: + return "GUILD_NEXT_ASCENSOR_PAGE"; + case ImpulseBase::Impulse::GUILD_LEAVE_ASCENSOR: + return "GUILD_LEAVE_ASCENSOR"; + case ImpulseBase::Impulse::GUILD_QUIT: + return "GUILD_QUIT"; + case ImpulseBase::Impulse::GUILD_SET_PLAYER_TITLE: + return "GUILD_SET_PLAYER_TITLE"; + case ImpulseBase::Impulse::GUILD_UPDATE_PLAYER_TITLE: + return "GUILD_UPDATE_PLAYER_TITLE"; + case ImpulseBase::Impulse::GUILD_USE_FEMALE_TITLES: + return "GUILD_USE_FEMALE_TITLES"; + case ImpulseBase::Impulse::GUILD_PUT_MONEY: + return "GUILD_PUT_MONEY"; + case ImpulseBase::Impulse::GUILD_TAKE_MONEY: + return "GUILD_TAKE_MONEY"; + case ImpulseBase::Impulse::GUILD_OPEN_INVENTORY: + return "GUILD_OPEN_INVENTORY"; + case ImpulseBase::Impulse::GUILD_CLOSE_INVENTORY: + return "GUILD_CLOSE_INVENTORY"; + case ImpulseBase::Impulse::OUTPOST_GIVEUP_OUTPOST: + return "OUTPOST_GIVEUP_OUTPOST"; + case ImpulseBase::Impulse::OUTPOST_SELECT: + return "OUTPOST_SELECT"; + case ImpulseBase::Impulse::OUTPOST_UNSELECT: + return "OUTPOST_UNSELECT"; + case ImpulseBase::Impulse::OUTPOST_DECLARE_WAR_START: + return "OUTPOST_DECLARE_WAR_START"; + case ImpulseBase::Impulse::OUTPOST_DECLARE_WAR_ACK: + return "OUTPOST_DECLARE_WAR_ACK"; + case ImpulseBase::Impulse::OUTPOST_DECLARE_WAR_VALIDATE: + return "OUTPOST_DECLARE_WAR_VALIDATE"; + case ImpulseBase::Impulse::OUTPOST_SET_DEF_PERIOD: + return "OUTPOST_SET_DEF_PERIOD"; + case ImpulseBase::Impulse::OUTPOST_SET_SQUAD: + return "OUTPOST_SET_SQUAD"; + case ImpulseBase::Impulse::OUTPOST_SET_SQUAD_SPAWN: + return "OUTPOST_SET_SQUAD_SPAWN"; + case ImpulseBase::Impulse::OUTPOST_INSERT_SQUAD: + return "OUTPOST_INSERT_SQUAD"; + case ImpulseBase::Impulse::OUTPOST_REMOVE_SQUAD: + return "OUTPOST_REMOVE_SQUAD"; + case ImpulseBase::Impulse::OUTPOST_SET_SQUAD_CAPITAL: + return "OUTPOST_SET_SQUAD_CAPITAL"; + case ImpulseBase::Impulse::OUTPOST_CHOOSE_SIDE: + return "OUTPOST_CHOOSE_SIDE"; + case ImpulseBase::Impulse::OUTPOST_SIDE_CHOSEN: + return "OUTPOST_SIDE_CHOSEN"; + case ImpulseBase::Impulse::OUTPOST_BANISH_PLAYER: + return "OUTPOST_BANISH_PLAYER"; + case ImpulseBase::Impulse::OUTPOST_BANISH_GUILD: + return "OUTPOST_BANISH_GUILD"; + case ImpulseBase::Impulse::OUTPOST_BUY_BUILDING: + return "OUTPOST_BUY_BUILDING"; + case ImpulseBase::Impulse::OUTPOST_DESTROY_BUILDING: + return "OUTPOST_DESTROY_BUILDING"; + case ImpulseBase::Impulse::PHRASE_DELETE: + return "PHRASE_DELETE"; + case ImpulseBase::Impulse::PHRASE_LEARN: + return "PHRASE_LEARN"; + case ImpulseBase::Impulse::PHRASE_MEMORIZE: + return "PHRASE_MEMORIZE"; + case ImpulseBase::Impulse::PHRASE_FORGET: + return "PHRASE_FORGET"; + case ImpulseBase::Impulse::PHRASE_EXECUTE: + return "PHRASE_EXECUTE"; + case ImpulseBase::Impulse::PHRASE_EXECUTE_CYCLIC: + return "PHRASE_EXECUTE_CYCLIC"; + case ImpulseBase::Impulse::PHRASE_EXECUTE_FABER: + return "PHRASE_EXECUTE_FABER"; + case ImpulseBase::Impulse::PHRASE_DOWNLOAD: + return "PHRASE_DOWNLOAD"; + case ImpulseBase::Impulse::PHRASE_BUY: + return "PHRASE_BUY"; + case ImpulseBase::Impulse::PHRASE_CONFIRM_BUY: + return "PHRASE_CONFIRM_BUY"; + case ImpulseBase::Impulse::PHRASE_BUY_SHEET: + return "PHRASE_BUY_SHEET"; + case ImpulseBase::Impulse::PHRASE_CANCEL_LINK: + return "PHRASE_CANCEL_LINK"; + case ImpulseBase::Impulse::PHRASE_CANCEL_TOP: + return "PHRASE_CANCEL_TOP"; + case ImpulseBase::Impulse::PHRASE_CANCEL_ALL: + return "PHRASE_CANCEL_ALL"; + case ImpulseBase::Impulse::PHRASE_CRISTALIZE: + return "PHRASE_CRISTALIZE"; + case ImpulseBase::Impulse::PHRASE_EXEC_CYCLIC_ACK: + return "PHRASE_EXEC_CYCLIC_ACK"; + case ImpulseBase::Impulse::PHRASE_EXEC_NEXT_ACK: + return "PHRASE_EXEC_NEXT_ACK"; + case ImpulseBase::Impulse::ITEM_INFO_GET: + return "ITEM_INFO_GET"; + case ImpulseBase::Impulse::ITEM_INFO_SET: + return "ITEM_INFO_SET"; + case ImpulseBase::Impulse::ITEM_INFO_REFRESH_VERSION: + return "ITEM_INFO_REFRESH_VERSION"; + case ImpulseBase::Impulse::MISSION_PREREQ_GET: + return "MISSION_PREREQ_GET"; + case ImpulseBase::Impulse::MISSION_PREREQ_SET: + return "MISSION_PREREQ_SET"; + case ImpulseBase::Impulse::MISSION_ENTER_CRITICAL: + return "MISSION_ENTER_CRITICAL"; + case ImpulseBase::Impulse::MISSION_ASK_ENTER_CRITICAL: + return "MISSION_ASK_ENTER_CRITICAL"; + case ImpulseBase::Impulse::MISSION_CLOSE_ENTER_CRITICAL: + return "MISSION_CLOSE_ENTER_CRITICAL"; + case ImpulseBase::Impulse::MISSION_WAKE: + return "MISSION_WAKE"; + case ImpulseBase::Impulse::MISSION_GROUP_WAKE: + return "MISSION_GROUP_WAKE"; + case ImpulseBase::Impulse::DUEL_ASK: + return "DUEL_ASK"; + case ImpulseBase::Impulse::DUEL_ACCEPT: + return "DUEL_ACCEPT"; + case ImpulseBase::Impulse::DUEL_REFUSE: + return "DUEL_REFUSE"; + case ImpulseBase::Impulse::DUEL_ABANDON: + return "DUEL_ABANDON"; + case ImpulseBase::Impulse::DUEL_INVITATION: + return "DUEL_INVITATION"; + case ImpulseBase::Impulse::DUEL_CANCEL_INVITATION: + return "DUEL_CANCEL_INVITATION"; + case ImpulseBase::Impulse::PVP_CHALLENGE_ASK: + return "PVP_CHALLENGE_ASK"; + case ImpulseBase::Impulse::PVP_CHALLENGE_ACCEPT: + return "PVP_CHALLENGE_ACCEPT"; + case ImpulseBase::Impulse::PVP_CHALLENGE_REFUSE: + return "PVP_CHALLENGE_REFUSE"; + case ImpulseBase::Impulse::PVP_CHALLENGE_ABANDON: + return "PVP_CHALLENGE_ABANDON"; + case ImpulseBase::Impulse::PVP_CHALLENGE_INVITATION: + return "PVP_CHALLENGE_INVITATION"; + case ImpulseBase::Impulse::PVP_CHALLENGE_CANCEL_INVITATION: + return "PVP_CHALLENGE_CANCEL_INVITATION"; + case ImpulseBase::Impulse::PVP_PVP_TAG: + return "PVP_PVP_TAG"; + case ImpulseBase::Impulse::PVP_SET_NEUTRAL_ALLEGIANCE: + return "PVP_SET_NEUTRAL_ALLEGIANCE"; + case ImpulseBase::Impulse::PVP_SET_NEUTRAL_ALLEGIANCE_GUILD: + return "PVP_SET_NEUTRAL_ALLEGIANCE_GUILD"; + case ImpulseBase::Impulse::PVP_FACTION_PUSH_FACTION_WAR: + return "PVP_FACTION_PUSH_FACTION_WAR"; + case ImpulseBase::Impulse::PVP_FACTION_POP_FACTION_WAR: + return "PVP_FACTION_POP_FACTION_WAR"; + case ImpulseBase::Impulse::PVP_FACTION_FACTION_WARS: + return "PVP_FACTION_FACTION_WARS"; + case ImpulseBase::Impulse::ENCYCLOPEDIA_UPDATE: + return "ENCYCLOPEDIA_UPDATE"; + case ImpulseBase::Impulse::ENCYCLOPEDIA_INIT: + return "ENCYCLOPEDIA_INIT"; + case ImpulseBase::Impulse::USER_BARS: + return "USER_BARS"; + case ImpulseBase::Impulse::USER_POPUP: + return "USER_POPUP"; + case ImpulseBase::Impulse::EVENT_SET_ITEM_CUSTOM_TEXT: + return "EVENT_SET_ITEM_CUSTOM_TEXT"; + case ImpulseBase::Impulse::EVENT_DUMMY: + return "EVENT_DUMMY"; + case ImpulseBase::Impulse::TOTEM_BUILD: + return "TOTEM_BUILD"; + case ImpulseBase::Impulse::TOTEM_DUMMY: + return "TOTEM_DUMMY"; + case ImpulseBase::Impulse::MODULE_GATEWAY_FEOPEN: + return "MODULE_GATEWAY_FEOPEN"; + case ImpulseBase::Impulse::MODULE_GATEWAY_GATEWAY_MSG: + return "MODULE_GATEWAY_GATEWAY_MSG"; + case ImpulseBase::Impulse::MODULE_GATEWAY_FECLOSE: + return "MODULE_GATEWAY_FECLOSE"; + case ImpulseBase::Impulse::SEASON_SET: + return "SEASON_SET"; + case ImpulseBase::Impulse::SEASON_DUMMY: + return "SEASON_DUMMY"; + case ImpulseBase::Impulse::DM_GIFT_BEGIN: + return "DM_GIFT_BEGIN"; + case ImpulseBase::Impulse::DM_GIFT_VALIDATE: + return "DM_GIFT_VALIDATE"; + case ImpulseBase::Impulse::RING_MISSION_MISSION_RING_SELECT: + return "RING_MISSION_MISSION_RING_SELECT"; + case ImpulseBase::Impulse::RING_MISSION_DSS_DOWN: + return "RING_MISSION_DSS_DOWN"; + case ImpulseBase::Impulse::NPC_ICON_GET_DESC: + return "NPC_ICON_GET_DESC"; + case ImpulseBase::Impulse::NPC_ICON_SET_DESC: + return "NPC_ICON_SET_DESC"; + case ImpulseBase::Impulse::NPC_ICON_SVR_EVENT_MIS_AVL: + return "NPC_ICON_SVR_EVENT_MIS_AVL"; + case ImpulseBase::Impulse::NPC_ICON_SET_TIMER: + return "NPC_ICON_SET_TIMER"; + case ImpulseBase::Impulse::__LAST_ELEMENT: + return "__LAST_ELEMENT"; + default: + return "?"; + } +} \ No newline at end of file diff --git a/modules/impulse/impulsebase.h b/modules/impulse/impulsebase.h new file mode 100644 index 0000000..6dd3b53 --- /dev/null +++ b/modules/impulse/impulsebase.h @@ -0,0 +1,382 @@ +/* + Header Impulse + + Copyright (C) 2019 AleaJactaEst + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +*/ + +#ifndef IMPULSE_BASE_H +#define IMPULSE_BASE_H + +#include "core/object.h" +#include "core/reference.h" + +class ImpulseBase : public Reference +{ + GDCLASS(ImpulseBase, Reference) +protected: + static void _bind_methods(); +public: + + ImpulseBase() {} + ~ImpulseBase() {} + + enum Impulse { + TARGET_PARTY, + TARGET_INVENTORY, + TARGET_FOLLOW, + TARGET_NO_FOLLOW, + CONNECTION_USER_CHAR, + CONNECTION_NO_USER_CHAR, + CONNECTION_USER_CHARS, + CONNECTION_CREATE_CHAR, + CONNECTION_SELECT_CHAR, + CONNECTION_DELETE_CHAR, + CONNECTION_RENAME_CHAR, + CONNECTION_ENTER, + CONNECTION_READY, + CONNECTION_TIME_DATE_SYNCHRO, + CONNECTION_ASK_NAME, + CONNECTION_VALID_NAME, + CONNECTION_CREATE_CHAR_ERROR, + CONNECTION_RECONNECT, + CONNECTION_SERVER_RECONNECT_OK, + CONNECTION_SHARD_ID, + CONNECTION_SERVER_QUIT_OK, + CONNECTION_SERVER_QUIT_ABORT, + CONNECTION_CLIENT_QUIT_REQUEST, + CONNECTION_MAIL_AVAILABLE, + CONNECTION_GUILD_MESSAGE_AVAILABLE, + CONNECTION_PERMANENT_BAN, + CONNECTION_UNBAN, + CONNECTION_FAR_TP, + CONNECTION_RET_MAINLAND, + DB_UPD_PLR, + DB_UPD_INV, + DB_INIT_PLR, + DB_INIT_INV, + DB_GROUP_UPDATE_BANK, + DB_GROUP_INIT_BANK, + DB_GROUP_RESET_BANK, + POSITION, + HARVEST_DEPOSIT, + HARVEST_CORPSE, + HARVEST_INTERRUPT, + HARVEST_CLOSE_TEMP_INVENTORY, + TRAINING, + JOB_SET_JOB_STATUS, + JOB_SWAP_JOB_STATUS, + CASTING_BEGIN, + CASTING_INTERRUPT, + FABER_OPEN, + FABER_CLOSE, + FABER_EXECUTE, + FABER_SET_NUM_ITEM, + FABER_START_CREATE, + FABER_START_REPAIR, + FABER_START_REFINE, + FABER_SET_MP_QUALITY, + FABER_SET_MP_REFINE, + FABER_SET_TOOL, + FABER_RESET_TOOL, + FABER_INTERRUPT, + COMBAT_ENGAGE, + COMBAT_DISENGAGE, + COMBAT_DEFAULT_ATTACK, + COMBAT_ENGAGE_FAILED, + COMBAT_VALIDATE_MELEE, + COMBAT_PARRY, + COMBAT_DODGE, + COMBAT_PROTECTED_SLOT, + COMBAT_FLYING_ChaScore1_DELTA, + COMBAT_FLYING_TEXT_ISE, + COMBAT_FLYING_TEXT, + STRING_TELL, + STRING_FAR_TELL, + STRING_CHAT, + STRING_CHAT_TEAM, + STRING_ADD_DYN_STR, + STRING_FILTER, + STRING_CHAT_MODE, + STRING_CHAT2, + STRING_TELL2, + STRING_DYN_STRING, + STRING_DYN_STRING_GROUP, + STRING_AFK_TXT, + STUN_STUN, + STUN_WAKE_UP, + SENTENCE_EXECUTE, + SENTENCE_CANCEL, + SENTENCE_CANCEL_CURRENT, + SENTENCE_CANCEL_ALL, + SENTENCE_CLEAR, + SENTENCE_MEMORIZE, + SENTENCE_FORGET, + SENTENCE_EVALUATE, + SENTENCE_ADD_BRICK, + SENTENCE_REMOVE_BRICK, + SENTENCE_START, + SENTENCE_STOP, + TEAM_JOIN, + TEAM_LEAVE, + TEAM_INVITATION, + TEAM_JOIN_PROPOSAL, + TEAM_JOIN_PROPOSAL_DECLINE, + TEAM_KICK, + TEAM_SET_SUCCESSOR, + TEAM_SHARE_OPEN, + TEAM_SHARE_VALID_ITEM, + TEAM_SHARE_INVALID_ITEM, + TEAM_SHARE_VALID, + TEAM_SHARE_INVALID, + TEAM_SHARE_CLOSE, + TEAM_CONTACT_INIT, + TEAM_CONTACT_ADD, + TEAM_CONTACT_DEL, + TEAM_CONTACT_MOVE, + TEAM_CONTACT_CREATE, + TEAM_CONTACT_STATUS, + TEAM_CONTACT_REMOVE, + ITEM_DROP, + ITEM_PICK_UP, + ITEM_PICK_UP_CLOSE, + ITEM_SWAP, + ITEM_ACTIVATE_SHEATH, + ITEM_HARVEST, + ITEM_HARVEST_CLOSE, + ITEM_GIVE, + ITEM_DESTROY, + ITEM_EQUIP, + ITEM_UNEQUIP, + ITEM_TEMP_TO_BAG, + ITEM_ALL_TEMP, + ITEM_NO_TEMP, + ITEM_ENCHANT, + ITEM_OPEN_ROOM_INVENTORY, + ITEM_CLOSE_ROOM_INVENTORY, + ITEM_USE_ITEM, + ITEM_STOP_USE_XP_CAT, + TP_RESPAWN, + TP_BOT, + TP_WANTED, + TP_DEST, + TP_DEST_WITH_SEASON, + TP_ACK, + TP_CORRECT, + DEATH_RESPAWN_POINT, + DEATH_ASK_RESPAWN, + DEATH_RESPAWN, + ANIMALS_BEAST, + ANIMALS_MOUNT_ABORT, + EXCHANGE_INVITATION, + EXCHANGE_CLOSE_INVITATION, + EXCHANGE_PROPOSAL, + EXCHANGE_ACCEPT_INVITATION, + EXCHANGE_DECLINE_INVITATION, + EXCHANGE_VALIDATE, + EXCHANGE_INVALIDATE, + EXCHANGE_END, + EXCHANGE_SEEDS, + EXCHANGE_ADD, + EXCHANGE_REMOVE, + DEBUG_WHERE, + DEBUG_WHO, + DEBUG_REPLY_WHERE, + DEBUG_SERVICES, + DEBUG_CMD, + DEBUG_PING, + DEBUG_COUNTER, + COMMAND_EMOTE, + COMMAND_CUSTOM_EMOTE, + COMMAND_WHERE, + COMMAND_ADMIN, + COMMAND_ADMIN_OFFLINE, + COMMAND_REMOTE_ADMIN, + COMMAND_REMOTE_ADMIN_ANSWER, + COMMAND_SIT, + COMMAND_AFK, + COMMAND_RANDOM, + COMMAND_GUILDMOTD, + MP_EVAL_SET_MP, + MP_EVAL_SET_MP_LEVEL, + MP_EVAL_SET_MARKET, + MP_EVAL_EXECUTE, + BOTCHAT_NEXT_PAGE_ITEM, + BOTCHAT_NEXT_PAGE_MISSION, + BOTCHAT_START_TRADE_ITEM, + BOTCHAT_START_TRADE_TELEPORT, + BOTCHAT_START_TRADE_FACTION, + BOTCHAT_START_TRADE_SKILL, + BOTCHAT_START_TRADE_PACT, + BOTCHAT_START_TRADE_ACTION, + BOTCHAT_BUY, + BOTCHAT_SELL, + BOTCHAT_DESTROY_ITEM, + BOTCHAT_REFRESH_TRADE_LIST, + BOTCHAT_SET_FILTERS, + BOTCHAT_START_CHOOSE_MISSION, + BOTCHAT_START_DYNAMIC_MISSION, + BOTCHAT_CONTINUE_MISSION, + BOTCHAT_VALIDATE_PLAYER_GIFT, + BOTCHAT_PICK_MISSION, + BOTCHAT_DM_CHOICE, + BOTCHAT_DM_ACCEPT, + BOTCHAT_START_NEWS, + BOTCHAT_START_CREATE_GUILD, + BOTCHAT_END, + BOTCHAT_FORCE_END, + BOTCHAT_START_CHOOSE_DUTY, + BOTCHAT_NEXT_PAGE_DUTY, + BOTCHAT_DUTY_APPLY, + BOTCHAT_DUTY_CANCEL_APPLY, + BOTCHAT_START_TRADE_GUILD_OPTIONS, + BOTCHAT_BUY_GUILD_OPTION, + BOTCHAT_START_GUILD_RESEARCH, + BOTCHAT_DESTROY_BUILDING, + BOTCHAT_DYNCHAT_OPEN, + BOTCHAT_DYNCHAT_CLOSE, + BOTCHAT_DYNCHAT_SEND, + JOURNAL_INIT_COMPLETED_MISSIONS, + JOURNAL_UPDATE_COMPLETED_MISSIONS, + JOURNAL_MISSION_ABANDON, + JOURNAL_GROUP_MISSION_ABANDON, + JOURNAL_ADD_COMPASS, + JOURNAL_ADD_COMPASS_BOT, + JOURNAL_REMOVE_COMPASS, + JOURNAL_REMOVE_COMPASS_BOT, + STRING_MANAGER_SET_LANGUAGE, + STRING_MANAGER_PHRASE_SEND, + STRING_MANAGER_STRING_RQ, + STRING_MANAGER_STRING_RESP, + STRING_MANAGER_RELOAD_CACHE, + GUILD_CREATE, + GUILD_ABORT_CREATION, + GUILD_OPEN_GUILD_WINDOW, + GUILD_INVITATION, + GUILD_ACCEPT_INVITATION, + GUILD_REFUSE_INVITATION, + GUILD_JOIN_PROPOSAL, + GUILD_SET_GRADE, + GUILD_SET_LEADER, + GUILD_KICK_MEMBER, + GUILD_TELEPORT, + GUILD_ASCENSOR, + GUILD_FIRST_ASCENSOR_PAGE, + GUILD_NEXT_ASCENSOR_PAGE, + GUILD_LEAVE_ASCENSOR, + GUILD_QUIT, + GUILD_SET_PLAYER_TITLE, + GUILD_UPDATE_PLAYER_TITLE, + GUILD_USE_FEMALE_TITLES, + GUILD_PUT_MONEY, + GUILD_TAKE_MONEY, + GUILD_OPEN_INVENTORY, + GUILD_CLOSE_INVENTORY, + OUTPOST_GIVEUP_OUTPOST, + OUTPOST_SELECT, + OUTPOST_UNSELECT, + OUTPOST_DECLARE_WAR_START, + OUTPOST_DECLARE_WAR_ACK, + OUTPOST_DECLARE_WAR_VALIDATE, + OUTPOST_SET_DEF_PERIOD, + OUTPOST_SET_SQUAD, + OUTPOST_SET_SQUAD_SPAWN, + OUTPOST_INSERT_SQUAD, + OUTPOST_REMOVE_SQUAD, + OUTPOST_SET_SQUAD_CAPITAL, + OUTPOST_CHOOSE_SIDE, + OUTPOST_SIDE_CHOSEN, + OUTPOST_BANISH_PLAYER, + OUTPOST_BANISH_GUILD, + OUTPOST_BUY_BUILDING, + OUTPOST_DESTROY_BUILDING, + PHRASE_DELETE, + PHRASE_LEARN, + PHRASE_MEMORIZE, + PHRASE_FORGET, + PHRASE_EXECUTE, + PHRASE_EXECUTE_CYCLIC, + PHRASE_EXECUTE_FABER, + PHRASE_DOWNLOAD, + PHRASE_BUY, + PHRASE_CONFIRM_BUY, + PHRASE_BUY_SHEET, + PHRASE_CANCEL_LINK, + PHRASE_CANCEL_TOP, + PHRASE_CANCEL_ALL, + PHRASE_CRISTALIZE, + PHRASE_EXEC_CYCLIC_ACK, + PHRASE_EXEC_NEXT_ACK, + ITEM_INFO_GET, + ITEM_INFO_SET, + ITEM_INFO_REFRESH_VERSION, + MISSION_PREREQ_GET, + MISSION_PREREQ_SET, + MISSION_ENTER_CRITICAL, + MISSION_ASK_ENTER_CRITICAL, + MISSION_CLOSE_ENTER_CRITICAL, + MISSION_WAKE, + MISSION_GROUP_WAKE, + DUEL_ASK, + DUEL_ACCEPT, + DUEL_REFUSE, + DUEL_ABANDON, + DUEL_INVITATION, + DUEL_CANCEL_INVITATION, + PVP_CHALLENGE_ASK, + PVP_CHALLENGE_ACCEPT, + PVP_CHALLENGE_REFUSE, + PVP_CHALLENGE_ABANDON, + PVP_CHALLENGE_INVITATION, + PVP_CHALLENGE_CANCEL_INVITATION, + PVP_PVP_TAG, + PVP_SET_NEUTRAL_ALLEGIANCE, + PVP_SET_NEUTRAL_ALLEGIANCE_GUILD, + PVP_FACTION_PUSH_FACTION_WAR, + PVP_FACTION_POP_FACTION_WAR, + PVP_FACTION_FACTION_WARS, + ENCYCLOPEDIA_UPDATE, + ENCYCLOPEDIA_INIT, + USER_BARS, + USER_POPUP, + EVENT_SET_ITEM_CUSTOM_TEXT, + EVENT_DUMMY, + TOTEM_BUILD, + TOTEM_DUMMY, + MODULE_GATEWAY_FEOPEN, + MODULE_GATEWAY_GATEWAY_MSG, + MODULE_GATEWAY_FECLOSE, + SEASON_SET, + SEASON_DUMMY, + DM_GIFT_BEGIN, + DM_GIFT_VALIDATE, + RING_MISSION_MISSION_RING_SELECT, + RING_MISSION_DSS_DOWN, + NPC_ICON_GET_DESC, + NPC_ICON_SET_DESC, + NPC_ICON_SVR_EVENT_MIS_AVL, + NPC_ICON_SET_TIMER, + __LAST_ELEMENT + }; + + static int get_command(String name); + static String get_command_name(uint32_t id); +}; + + +VARIANT_ENUM_CAST(ImpulseBase::Impulse); + +#endif \ No newline at end of file diff --git a/modules/impulse/register_types.cpp b/modules/impulse/register_types.cpp new file mode 100644 index 0000000..40e63f8 --- /dev/null +++ b/modules/impulse/register_types.cpp @@ -0,0 +1,14 @@ +/* register_types.cpp */ + +#include "register_types.h" + +#include "core/class_db.h" +#include "impulsebase.h" + +void register_impulse_types() { + ClassDB::register_class(); +} + +void unregister_impulse_types() { + // Nothing to do here in this example. +} diff --git a/modules/impulse/register_types.h b/modules/impulse/register_types.h new file mode 100644 index 0000000..a8e9485 --- /dev/null +++ b/modules/impulse/register_types.h @@ -0,0 +1,5 @@ +/* register_types.h */ + +void register_impulse_types(); +void unregister_impulse_types(); +/* yes, the word in the middle must be the same as the module folder name */ diff --git a/modules/networkconnection/register_types.cpp b/modules/networkconnection/register_types.cpp index 192ebf5..0bceabe 100644 --- a/modules/networkconnection/register_types.cpp +++ b/modules/networkconnection/register_types.cpp @@ -5,12 +5,18 @@ #include "core/class_db.h" #include "network_connection.h" #include "network_connection_core.h" +#include "modules/debug/debug.h" void register_networkconnection_types() { ClassDB::register_class(); ClassDB::register_class(); + // Initialize singleton + DBG_PRINT("register_networkconnection_types"); + NetworkConnectionCore::get_singleton(); } void unregister_networkconnection_types() { - // Nothing to do here in this example. + // Delete singleton + DBG_PRINT("unregister_networkconnection_types"); + NetworkConnectionCore::terminate_connexion(); } diff --git a/modules/networkconnection/state_connexion.cpp b/modules/networkconnection/state_connexion.cpp index 770a05e..8e0b4a9 100644 --- a/modules/networkconnection/state_connexion.cpp +++ b/modules/networkconnection/state_connexion.cpp @@ -23,7 +23,7 @@ #include "network_connection_core.h" #include "modules/debug/debug.h" #include "modules/networkconnection/network_data.h" -#include "modules/command/action_factory.h" +#include "modules/action/action_factory.h" inline uint32_t diff_uint32_circulate(uint32_t a, uint32_t b) { @@ -502,9 +502,9 @@ void StateConnectionConnected::send_message() { if ( this->_data->_server_sync != this->_data->_client_sync ) this->send_system_ack_sync(); - if (this->_data->_latest_probes.size() != 0 ) + else if (this->_data->_latest_probes.size() != 0 ) this->send_system_ack_probe(); - if (this->_data->_recieved_new_server_tick == true) + else if (this->_data->_recieved_new_server_tick == true) this->send_system_ask_tick(); } /* diff --git a/modules/referentialmessage/referentialmessagecore.cpp b/modules/referentialmessage/referentialmessagecore.cpp index 0c429a8..a1c30a0 100644 --- a/modules/referentialmessage/referentialmessagecore.cpp +++ b/modules/referentialmessage/referentialmessagecore.cpp @@ -21,7 +21,7 @@ #include "modules/debug/debug.h" - +#include "modules/impulse/impulsebase.h" #include "referentialmessagecore.h" ReferentialMessageCore *ReferentialMessageCore::singleton = nullptr; @@ -30,698 +30,19 @@ ReferentialMessageCore *ReferentialMessageCore::singleton = nullptr; * ElementReferential */ -String get_command_name(uint32_t id) -{ - switch (id) - { - case ReferentialMessageCore::Command::TARGET_PARTY: - return "TARGET_PARTY"; - case ReferentialMessageCore::Command::TARGET_INVENTORY: - return "TARGET_INVENTORY"; - case ReferentialMessageCore::Command::TARGET_FOLLOW: - return "TARGET_FOLLOW"; - case ReferentialMessageCore::Command::TARGET_NO_FOLLOW: - return "TARGET_NO_FOLLOW"; - case ReferentialMessageCore::Command::CONNECTION_USER_CHAR: - return "CONNECTION_USER_CHAR"; - case ReferentialMessageCore::Command::CONNECTION_NO_USER_CHAR: - return "CONNECTION_NO_USER_CHAR"; - case ReferentialMessageCore::Command::CONNECTION_USER_CHARS: - return "CONNECTION_USER_CHARS"; - case ReferentialMessageCore::Command::CONNECTION_CREATE_CHAR: - return "CONNECTION_CREATE_CHAR"; - case ReferentialMessageCore::Command::CONNECTION_SELECT_CHAR: - return "CONNECTION_SELECT_CHAR"; - case ReferentialMessageCore::Command::CONNECTION_DELETE_CHAR: - return "CONNECTION_DELETE_CHAR"; - case ReferentialMessageCore::Command::CONNECTION_RENAME_CHAR: - return "CONNECTION_RENAME_CHAR"; - case ReferentialMessageCore::Command::CONNECTION_ENTER: - return "CONNECTION_ENTER"; - case ReferentialMessageCore::Command::CONNECTION_READY: - return "CONNECTION_READY"; - case ReferentialMessageCore::Command::CONNECTION_TIME_DATE_SYNCHRO: - return "CONNECTION_TIME_DATE_SYNCHRO"; - case ReferentialMessageCore::Command::CONNECTION_ASK_NAME: - return "CONNECTION_ASK_NAME"; - case ReferentialMessageCore::Command::CONNECTION_VALID_NAME: - return "CONNECTION_VALID_NAME"; - case ReferentialMessageCore::Command::CONNECTION_CREATE_CHAR_ERROR: - return "CONNECTION_CREATE_CHAR_ERROR"; - case ReferentialMessageCore::Command::CONNECTION_RECONNECT: - return "CONNECTION_RECONNECT"; - case ReferentialMessageCore::Command::CONNECTION_SERVER_RECONNECT_OK: - return "CONNECTION_SERVER_RECONNECT_OK"; - case ReferentialMessageCore::Command::CONNECTION_SHARD_ID: - return "CONNECTION_SHARD_ID"; - case ReferentialMessageCore::Command::CONNECTION_SERVER_QUIT_OK: - return "CONNECTION_SERVER_QUIT_OK"; - case ReferentialMessageCore::Command::CONNECTION_SERVER_QUIT_ABORT: - return "CONNECTION_SERVER_QUIT_ABORT"; - case ReferentialMessageCore::Command::CONNECTION_CLIENT_QUIT_REQUEST: - return "CONNECTION_CLIENT_QUIT_REQUEST"; - case ReferentialMessageCore::Command::CONNECTION_MAIL_AVAILABLE: - return "CONNECTION_MAIL_AVAILABLE"; - case ReferentialMessageCore::Command::CONNECTION_GUILD_MESSAGE_AVAILABLE: - return "CONNECTION_GUILD_MESSAGE_AVAILABLE"; - case ReferentialMessageCore::Command::CONNECTION_PERMANENT_BAN: - return "CONNECTION_PERMANENT_BAN"; - case ReferentialMessageCore::Command::CONNECTION_UNBAN: - return "CONNECTION_UNBAN"; - case ReferentialMessageCore::Command::CONNECTION_FAR_TP: - return "CONNECTION_FAR_TP"; - case ReferentialMessageCore::Command::CONNECTION_RET_MAINLAND: - return "CONNECTION_RET_MAINLAND"; - case ReferentialMessageCore::Command::DB_UPD_PLR: - return "DB_UPD_PLR"; - case ReferentialMessageCore::Command::DB_UPD_INV: - return "DB_UPD_INV"; - case ReferentialMessageCore::Command::DB_INIT_PLR: - return "DB_INIT_PLR"; - case ReferentialMessageCore::Command::DB_INIT_INV: - return "DB_INIT_INV"; - case ReferentialMessageCore::Command::DB_GROUP_UPDATE_BANK: - return "DB_GROUP_UPDATE_BANK"; - case ReferentialMessageCore::Command::DB_GROUP_INIT_BANK: - return "DB_GROUP_INIT_BANK"; - case ReferentialMessageCore::Command::DB_GROUP_RESET_BANK: - return "DB_GROUP_RESET_BANK"; - case ReferentialMessageCore::Command::POSITION: - return "POSITION"; - case ReferentialMessageCore::Command::HARVEST_DEPOSIT: - return "HARVEST_DEPOSIT"; - case ReferentialMessageCore::Command::HARVEST_CORPSE: - return "HARVEST_CORPSE"; - case ReferentialMessageCore::Command::HARVEST_INTERRUPT: - return "HARVEST_INTERRUPT"; - case ReferentialMessageCore::Command::HARVEST_CLOSE_TEMP_INVENTORY: - return "HARVEST_CLOSE_TEMP_INVENTORY"; - case ReferentialMessageCore::Command::TRAINING: - return "TRAINING"; - case ReferentialMessageCore::Command::JOB_SET_JOB_STATUS: - return "JOB_SET_JOB_STATUS"; - case ReferentialMessageCore::Command::JOB_SWAP_JOB_STATUS: - return "JOB_SWAP_JOB_STATUS"; - case ReferentialMessageCore::Command::CASTING_BEGIN: - return "CASTING_BEGIN"; - case ReferentialMessageCore::Command::CASTING_INTERRUPT: - return "CASTING_INTERRUPT"; - case ReferentialMessageCore::Command::FABER_OPEN: - return "FABER_OPEN"; - case ReferentialMessageCore::Command::FABER_CLOSE: - return "FABER_CLOSE"; - case ReferentialMessageCore::Command::FABER_EXECUTE: - return "FABER_EXECUTE"; - case ReferentialMessageCore::Command::FABER_SET_NUM_ITEM: - return "FABER_SET_NUM_ITEM"; - case ReferentialMessageCore::Command::FABER_START_CREATE: - return "FABER_START_CREATE"; - case ReferentialMessageCore::Command::FABER_START_REPAIR: - return "FABER_START_REPAIR"; - case ReferentialMessageCore::Command::FABER_START_REFINE: - return "FABER_START_REFINE"; - case ReferentialMessageCore::Command::FABER_SET_MP_QUALITY: - return "FABER_SET_MP_QUALITY"; - case ReferentialMessageCore::Command::FABER_SET_MP_REFINE: - return "FABER_SET_MP_REFINE"; - case ReferentialMessageCore::Command::FABER_SET_TOOL: - return "FABER_SET_TOOL"; - case ReferentialMessageCore::Command::FABER_RESET_TOOL: - return "FABER_RESET_TOOL"; - case ReferentialMessageCore::Command::FABER_INTERRUPT: - return "FABER_INTERRUPT"; - case ReferentialMessageCore::Command::COMBAT_ENGAGE: - return "COMBAT_ENGAGE"; - case ReferentialMessageCore::Command::COMBAT_DISENGAGE: - return "COMBAT_DISENGAGE"; - case ReferentialMessageCore::Command::COMBAT_DEFAULT_ATTACK: - return "COMBAT_DEFAULT_ATTACK"; - case ReferentialMessageCore::Command::COMBAT_ENGAGE_FAILED: - return "COMBAT_ENGAGE_FAILED"; - case ReferentialMessageCore::Command::COMBAT_VALIDATE_MELEE: - return "COMBAT_VALIDATE_MELEE"; - case ReferentialMessageCore::Command::COMBAT_PARRY: - return "COMBAT_PARRY"; - case ReferentialMessageCore::Command::COMBAT_DODGE: - return "COMBAT_DODGE"; - case ReferentialMessageCore::Command::COMBAT_PROTECTED_SLOT: - return "COMBAT_PROTECTED_SLOT"; - case ReferentialMessageCore::Command::COMBAT_FLYING_ChaScore1_DELTA: - return "COMBAT_FLYING_ChaScore1_DELTA"; - case ReferentialMessageCore::Command::COMBAT_FLYING_TEXT_ISE: - return "COMBAT_FLYING_TEXT_ISE"; - case ReferentialMessageCore::Command::COMBAT_FLYING_TEXT: - return "COMBAT_FLYING_TEXT"; - case ReferentialMessageCore::Command::STRING_TELL: - return "STRING_TELL"; - case ReferentialMessageCore::Command::STRING_FAR_TELL: - return "STRING_FAR_TELL"; - case ReferentialMessageCore::Command::STRING_CHAT: - return "STRING_CHAT"; - case ReferentialMessageCore::Command::STRING_CHAT_TEAM: - return "STRING_CHAT_TEAM"; - case ReferentialMessageCore::Command::STRING_ADD_DYN_STR: - return "STRING_ADD_DYN_STR"; - case ReferentialMessageCore::Command::STRING_FILTER: - return "STRING_FILTER"; - case ReferentialMessageCore::Command::STRING_CHAT_MODE: - return "STRING_CHAT_MODE"; - case ReferentialMessageCore::Command::STRING_CHAT2: - return "STRING_CHAT2"; - case ReferentialMessageCore::Command::STRING_TELL2: - return "STRING_TELL2"; - case ReferentialMessageCore::Command::STRING_DYN_STRING: - return "STRING_DYN_STRING"; - case ReferentialMessageCore::Command::STRING_DYN_STRING_GROUP: - return "STRING_DYN_STRING_GROUP"; - case ReferentialMessageCore::Command::STRING_AFK_TXT: - return "STRING_AFK_TXT"; - case ReferentialMessageCore::Command::STUN_STUN: - return "STUN_STUN"; - case ReferentialMessageCore::Command::STUN_WAKE_UP: - return "STUN_WAKE_UP"; - case ReferentialMessageCore::Command::SENTENCE_EXECUTE: - return "SENTENCE_EXECUTE"; - case ReferentialMessageCore::Command::SENTENCE_CANCEL: - return "SENTENCE_CANCEL"; - case ReferentialMessageCore::Command::SENTENCE_CANCEL_CURRENT: - return "SENTENCE_CANCEL_CURRENT"; - case ReferentialMessageCore::Command::SENTENCE_CANCEL_ALL: - return "SENTENCE_CANCEL_ALL"; - case ReferentialMessageCore::Command::SENTENCE_CLEAR: - return "SENTENCE_CLEAR"; - case ReferentialMessageCore::Command::SENTENCE_MEMORIZE: - return "SENTENCE_MEMORIZE"; - case ReferentialMessageCore::Command::SENTENCE_FORGET: - return "SENTENCE_FORGET"; - case ReferentialMessageCore::Command::SENTENCE_EVALUATE: - return "SENTENCE_EVALUATE"; - case ReferentialMessageCore::Command::SENTENCE_ADD_BRICK: - return "SENTENCE_ADD_BRICK"; - case ReferentialMessageCore::Command::SENTENCE_REMOVE_BRICK: - return "SENTENCE_REMOVE_BRICK"; - case ReferentialMessageCore::Command::SENTENCE_START: - return "SENTENCE_START"; - case ReferentialMessageCore::Command::SENTENCE_STOP: - return "SENTENCE_STOP"; - case ReferentialMessageCore::Command::TEAM_JOIN: - return "TEAM_JOIN"; - case ReferentialMessageCore::Command::TEAM_LEAVE: - return "TEAM_LEAVE"; - case ReferentialMessageCore::Command::TEAM_INVITATION: - return "TEAM_INVITATION"; - case ReferentialMessageCore::Command::TEAM_JOIN_PROPOSAL: - return "TEAM_JOIN_PROPOSAL"; - case ReferentialMessageCore::Command::TEAM_JOIN_PROPOSAL_DECLINE: - return "TEAM_JOIN_PROPOSAL_DECLINE"; - case ReferentialMessageCore::Command::TEAM_KICK: - return "TEAM_KICK"; - case ReferentialMessageCore::Command::TEAM_SET_SUCCESSOR: - return "TEAM_SET_SUCCESSOR"; - case ReferentialMessageCore::Command::TEAM_SHARE_OPEN: - return "TEAM_SHARE_OPEN"; - case ReferentialMessageCore::Command::TEAM_SHARE_VALID_ITEM: - return "TEAM_SHARE_VALID_ITEM"; - case ReferentialMessageCore::Command::TEAM_SHARE_INVALID_ITEM: - return "TEAM_SHARE_INVALID_ITEM"; - case ReferentialMessageCore::Command::TEAM_SHARE_VALID: - return "TEAM_SHARE_VALID"; - case ReferentialMessageCore::Command::TEAM_SHARE_INVALID: - return "TEAM_SHARE_INVALID"; - case ReferentialMessageCore::Command::TEAM_SHARE_CLOSE: - return "TEAM_SHARE_CLOSE"; - case ReferentialMessageCore::Command::TEAM_CONTACT_INIT: - return "TEAM_CONTACT_INIT"; - case ReferentialMessageCore::Command::TEAM_CONTACT_ADD: - return "TEAM_CONTACT_ADD"; - case ReferentialMessageCore::Command::TEAM_CONTACT_DEL: - return "TEAM_CONTACT_DEL"; - case ReferentialMessageCore::Command::TEAM_CONTACT_MOVE: - return "TEAM_CONTACT_MOVE"; - case ReferentialMessageCore::Command::TEAM_CONTACT_CREATE: - return "TEAM_CONTACT_CREATE"; - case ReferentialMessageCore::Command::TEAM_CONTACT_STATUS: - return "TEAM_CONTACT_STATUS"; - case ReferentialMessageCore::Command::TEAM_CONTACT_REMOVE: - return "TEAM_CONTACT_REMOVE"; - case ReferentialMessageCore::Command::ITEM_DROP: - return "ITEM_DROP"; - case ReferentialMessageCore::Command::ITEM_PICK_UP: - return "ITEM_PICK_UP"; - case ReferentialMessageCore::Command::ITEM_PICK_UP_CLOSE: - return "ITEM_PICK_UP_CLOSE"; - case ReferentialMessageCore::Command::ITEM_SWAP: - return "ITEM_SWAP"; - case ReferentialMessageCore::Command::ITEM_ACTIVATE_SHEATH: - return "ITEM_ACTIVATE_SHEATH"; - case ReferentialMessageCore::Command::ITEM_HARVEST: - return "ITEM_HARVEST"; - case ReferentialMessageCore::Command::ITEM_HARVEST_CLOSE: - return "ITEM_HARVEST_CLOSE"; - case ReferentialMessageCore::Command::ITEM_GIVE: - return "ITEM_GIVE"; - case ReferentialMessageCore::Command::ITEM_DESTROY: - return "ITEM_DESTROY"; - case ReferentialMessageCore::Command::ITEM_EQUIP: - return "ITEM_EQUIP"; - case ReferentialMessageCore::Command::ITEM_UNEQUIP: - return "ITEM_UNEQUIP"; - case ReferentialMessageCore::Command::ITEM_TEMP_TO_BAG: - return "ITEM_TEMP_TO_BAG"; - case ReferentialMessageCore::Command::ITEM_ALL_TEMP: - return "ITEM_ALL_TEMP"; - case ReferentialMessageCore::Command::ITEM_NO_TEMP: - return "ITEM_NO_TEMP"; - case ReferentialMessageCore::Command::ITEM_ENCHANT: - return "ITEM_ENCHANT"; - case ReferentialMessageCore::Command::ITEM_OPEN_ROOM_INVENTORY: - return "ITEM_OPEN_ROOM_INVENTORY"; - case ReferentialMessageCore::Command::ITEM_CLOSE_ROOM_INVENTORY: - return "ITEM_CLOSE_ROOM_INVENTORY"; - case ReferentialMessageCore::Command::ITEM_USE_ITEM: - return "ITEM_USE_ITEM"; - case ReferentialMessageCore::Command::ITEM_STOP_USE_XP_CAT: - return "ITEM_STOP_USE_XP_CAT"; - case ReferentialMessageCore::Command::TP_RESPAWN: - return "TP_RESPAWN"; - case ReferentialMessageCore::Command::TP_BOT: - return "TP_BOT"; - case ReferentialMessageCore::Command::TP_WANTED: - return "TP_WANTED"; - case ReferentialMessageCore::Command::TP_DEST: - return "TP_DEST"; - case ReferentialMessageCore::Command::TP_DEST_WITH_SEASON: - return "TP_DEST_WITH_SEASON"; - case ReferentialMessageCore::Command::TP_ACK: - return "TP_ACK"; - case ReferentialMessageCore::Command::TP_CORRECT: - return "TP_CORRECT"; - case ReferentialMessageCore::Command::DEATH_RESPAWN_POINT: - return "DEATH_RESPAWN_POINT"; - case ReferentialMessageCore::Command::DEATH_ASK_RESPAWN: - return "DEATH_ASK_RESPAWN"; - case ReferentialMessageCore::Command::DEATH_RESPAWN: - return "DEATH_RESPAWN"; - case ReferentialMessageCore::Command::ANIMALS_BEAST: - return "ANIMALS_BEAST"; - case ReferentialMessageCore::Command::ANIMALS_MOUNT_ABORT: - return "ANIMALS_MOUNT_ABORT"; - case ReferentialMessageCore::Command::EXCHANGE_INVITATION: - return "EXCHANGE_INVITATION"; - case ReferentialMessageCore::Command::EXCHANGE_CLOSE_INVITATION: - return "EXCHANGE_CLOSE_INVITATION"; - case ReferentialMessageCore::Command::EXCHANGE_PROPOSAL: - return "EXCHANGE_PROPOSAL"; - case ReferentialMessageCore::Command::EXCHANGE_ACCEPT_INVITATION: - return "EXCHANGE_ACCEPT_INVITATION"; - case ReferentialMessageCore::Command::EXCHANGE_DECLINE_INVITATION: - return "EXCHANGE_DECLINE_INVITATION"; - case ReferentialMessageCore::Command::EXCHANGE_VALIDATE: - return "EXCHANGE_VALIDATE"; - case ReferentialMessageCore::Command::EXCHANGE_INVALIDATE: - return "EXCHANGE_INVALIDATE"; - case ReferentialMessageCore::Command::EXCHANGE_END: - return "EXCHANGE_END"; - case ReferentialMessageCore::Command::EXCHANGE_SEEDS: - return "EXCHANGE_SEEDS"; - case ReferentialMessageCore::Command::EXCHANGE_ADD: - return "EXCHANGE_ADD"; - case ReferentialMessageCore::Command::EXCHANGE_REMOVE: - return "EXCHANGE_REMOVE"; - case ReferentialMessageCore::Command::DEBUG_WHERE: - return "DEBUG_WHERE"; - case ReferentialMessageCore::Command::DEBUG_WHO: - return "DEBUG_WHO"; - case ReferentialMessageCore::Command::DEBUG_REPLY_WHERE: - return "DEBUG_REPLY_WHERE"; - case ReferentialMessageCore::Command::DEBUG_SERVICES: - return "DEBUG_SERVICES"; - case ReferentialMessageCore::Command::DEBUG_CMD: - return "DEBUG_CMD"; - case ReferentialMessageCore::Command::DEBUG_PING: - return "DEBUG_PING"; - case ReferentialMessageCore::Command::DEBUG_COUNTER: - return "DEBUG_COUNTER"; - case ReferentialMessageCore::Command::COMMAND_EMOTE: - return "COMMAND_EMOTE"; - case ReferentialMessageCore::Command::COMMAND_CUSTOM_EMOTE: - return "COMMAND_CUSTOM_EMOTE"; - case ReferentialMessageCore::Command::COMMAND_WHERE: - return "COMMAND_WHERE"; - case ReferentialMessageCore::Command::COMMAND_ADMIN: - return "COMMAND_ADMIN"; - case ReferentialMessageCore::Command::COMMAND_ADMIN_OFFLINE: - return "COMMAND_ADMIN_OFFLINE"; - case ReferentialMessageCore::Command::COMMAND_REMOTE_ADMIN: - return "COMMAND_REMOTE_ADMIN"; - case ReferentialMessageCore::Command::COMMAND_REMOTE_ADMIN_ANSWER: - return "COMMAND_REMOTE_ADMIN_ANSWER"; - case ReferentialMessageCore::Command::COMMAND_SIT: - return "COMMAND_SIT"; - case ReferentialMessageCore::Command::COMMAND_AFK: - return "COMMAND_AFK"; - case ReferentialMessageCore::Command::COMMAND_RANDOM: - return "COMMAND_RANDOM"; - case ReferentialMessageCore::Command::COMMAND_GUILDMOTD: - return "COMMAND_GUILDMOTD"; - case ReferentialMessageCore::Command::MP_EVAL_SET_MP: - return "MP_EVAL_SET_MP"; - case ReferentialMessageCore::Command::MP_EVAL_SET_MP_LEVEL: - return "MP_EVAL_SET_MP_LEVEL"; - case ReferentialMessageCore::Command::MP_EVAL_SET_MARKET: - return "MP_EVAL_SET_MARKET"; - case ReferentialMessageCore::Command::MP_EVAL_EXECUTE: - return "MP_EVAL_EXECUTE"; - case ReferentialMessageCore::Command::BOTCHAT_NEXT_PAGE_ITEM: - return "BOTCHAT_NEXT_PAGE_ITEM"; - case ReferentialMessageCore::Command::BOTCHAT_NEXT_PAGE_MISSION: - return "BOTCHAT_NEXT_PAGE_MISSION"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_ITEM: - return "BOTCHAT_START_TRADE_ITEM"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_TELEPORT: - return "BOTCHAT_START_TRADE_TELEPORT"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_FACTION: - return "BOTCHAT_START_TRADE_FACTION"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_SKILL: - return "BOTCHAT_START_TRADE_SKILL"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_PACT: - return "BOTCHAT_START_TRADE_PACT"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_ACTION: - return "BOTCHAT_START_TRADE_ACTION"; - case ReferentialMessageCore::Command::BOTCHAT_BUY: - return "BOTCHAT_BUY"; - case ReferentialMessageCore::Command::BOTCHAT_SELL: - return "BOTCHAT_SELL"; - case ReferentialMessageCore::Command::BOTCHAT_DESTROY_ITEM: - return "BOTCHAT_DESTROY_ITEM"; - case ReferentialMessageCore::Command::BOTCHAT_REFRESH_TRADE_LIST: - return "BOTCHAT_REFRESH_TRADE_LIST"; - case ReferentialMessageCore::Command::BOTCHAT_SET_FILTERS: - return "BOTCHAT_SET_FILTERS"; - case ReferentialMessageCore::Command::BOTCHAT_START_CHOOSE_MISSION: - return "BOTCHAT_START_CHOOSE_MISSION"; - case ReferentialMessageCore::Command::BOTCHAT_START_DYNAMIC_MISSION: - return "BOTCHAT_START_DYNAMIC_MISSION"; - case ReferentialMessageCore::Command::BOTCHAT_CONTINUE_MISSION: - return "BOTCHAT_CONTINUE_MISSION"; - case ReferentialMessageCore::Command::BOTCHAT_VALIDATE_PLAYER_GIFT: - return "BOTCHAT_VALIDATE_PLAYER_GIFT"; - case ReferentialMessageCore::Command::BOTCHAT_PICK_MISSION: - return "BOTCHAT_PICK_MISSION"; - case ReferentialMessageCore::Command::BOTCHAT_DM_CHOICE: - return "BOTCHAT_DM_CHOICE"; - case ReferentialMessageCore::Command::BOTCHAT_DM_ACCEPT: - return "BOTCHAT_DM_ACCEPT"; - case ReferentialMessageCore::Command::BOTCHAT_START_NEWS: - return "BOTCHAT_START_NEWS"; - case ReferentialMessageCore::Command::BOTCHAT_START_CREATE_GUILD: - return "BOTCHAT_START_CREATE_GUILD"; - case ReferentialMessageCore::Command::BOTCHAT_END: - return "BOTCHAT_END"; - case ReferentialMessageCore::Command::BOTCHAT_FORCE_END: - return "BOTCHAT_FORCE_END"; - case ReferentialMessageCore::Command::BOTCHAT_START_CHOOSE_DUTY: - return "BOTCHAT_START_CHOOSE_DUTY"; - case ReferentialMessageCore::Command::BOTCHAT_NEXT_PAGE_DUTY: - return "BOTCHAT_NEXT_PAGE_DUTY"; - case ReferentialMessageCore::Command::BOTCHAT_DUTY_APPLY: - return "BOTCHAT_DUTY_APPLY"; - case ReferentialMessageCore::Command::BOTCHAT_DUTY_CANCEL_APPLY: - return "BOTCHAT_DUTY_CANCEL_APPLY"; - case ReferentialMessageCore::Command::BOTCHAT_START_TRADE_GUILD_OPTIONS: - return "BOTCHAT_START_TRADE_GUILD_OPTIONS"; - case ReferentialMessageCore::Command::BOTCHAT_BUY_GUILD_OPTION: - return "BOTCHAT_BUY_GUILD_OPTION"; - case ReferentialMessageCore::Command::BOTCHAT_START_GUILD_RESEARCH: - return "BOTCHAT_START_GUILD_RESEARCH"; - case ReferentialMessageCore::Command::BOTCHAT_DESTROY_BUILDING: - return "BOTCHAT_DESTROY_BUILDING"; - case ReferentialMessageCore::Command::BOTCHAT_DYNCHAT_OPEN: - return "BOTCHAT_DYNCHAT_OPEN"; - case ReferentialMessageCore::Command::BOTCHAT_DYNCHAT_CLOSE: - return "BOTCHAT_DYNCHAT_CLOSE"; - case ReferentialMessageCore::Command::BOTCHAT_DYNCHAT_SEND: - return "BOTCHAT_DYNCHAT_SEND"; - case ReferentialMessageCore::Command::JOURNAL_INIT_COMPLETED_MISSIONS: - return "JOURNAL_INIT_COMPLETED_MISSIONS"; - case ReferentialMessageCore::Command::JOURNAL_UPDATE_COMPLETED_MISSIONS: - return "JOURNAL_UPDATE_COMPLETED_MISSIONS"; - case ReferentialMessageCore::Command::JOURNAL_MISSION_ABANDON: - return "JOURNAL_MISSION_ABANDON"; - case ReferentialMessageCore::Command::JOURNAL_GROUP_MISSION_ABANDON: - return "JOURNAL_GROUP_MISSION_ABANDON"; - case ReferentialMessageCore::Command::JOURNAL_ADD_COMPASS: - return "JOURNAL_ADD_COMPASS"; - case ReferentialMessageCore::Command::JOURNAL_ADD_COMPASS_BOT: - return "JOURNAL_ADD_COMPASS_BOT"; - case ReferentialMessageCore::Command::JOURNAL_REMOVE_COMPASS: - return "JOURNAL_REMOVE_COMPASS"; - case ReferentialMessageCore::Command::JOURNAL_REMOVE_COMPASS_BOT: - return "JOURNAL_REMOVE_COMPASS_BOT"; - case ReferentialMessageCore::Command::STRING_MANAGER_SET_LANGUAGE: - return "STRING_MANAGER_SET_LANGUAGE"; - case ReferentialMessageCore::Command::STRING_MANAGER_PHRASE_SEND: - return "STRING_MANAGER_PHRASE_SEND"; - case ReferentialMessageCore::Command::STRING_MANAGER_STRING_RQ: - return "STRING_MANAGER_STRING_RQ"; - case ReferentialMessageCore::Command::STRING_MANAGER_STRING_RESP: - return "STRING_MANAGER_STRING_RESP"; - case ReferentialMessageCore::Command::STRING_MANAGER_RELOAD_CACHE: - return "STRING_MANAGER_RELOAD_CACHE"; - case ReferentialMessageCore::Command::GUILD_CREATE: - return "GUILD_CREATE"; - case ReferentialMessageCore::Command::GUILD_ABORT_CREATION: - return "GUILD_ABORT_CREATION"; - case ReferentialMessageCore::Command::GUILD_OPEN_GUILD_WINDOW: - return "GUILD_OPEN_GUILD_WINDOW"; - case ReferentialMessageCore::Command::GUILD_INVITATION: - return "GUILD_INVITATION"; - case ReferentialMessageCore::Command::GUILD_ACCEPT_INVITATION: - return "GUILD_ACCEPT_INVITATION"; - case ReferentialMessageCore::Command::GUILD_REFUSE_INVITATION: - return "GUILD_REFUSE_INVITATION"; - case ReferentialMessageCore::Command::GUILD_JOIN_PROPOSAL: - return "GUILD_JOIN_PROPOSAL"; - case ReferentialMessageCore::Command::GUILD_SET_GRADE: - return "GUILD_SET_GRADE"; - case ReferentialMessageCore::Command::GUILD_SET_LEADER: - return "GUILD_SET_LEADER"; - case ReferentialMessageCore::Command::GUILD_KICK_MEMBER: - return "GUILD_KICK_MEMBER"; - case ReferentialMessageCore::Command::GUILD_TELEPORT: - return "GUILD_TELEPORT"; - case ReferentialMessageCore::Command::GUILD_ASCENSOR: - return "GUILD_ASCENSOR"; - case ReferentialMessageCore::Command::GUILD_FIRST_ASCENSOR_PAGE: - return "GUILD_FIRST_ASCENSOR_PAGE"; - case ReferentialMessageCore::Command::GUILD_NEXT_ASCENSOR_PAGE: - return "GUILD_NEXT_ASCENSOR_PAGE"; - case ReferentialMessageCore::Command::GUILD_LEAVE_ASCENSOR: - return "GUILD_LEAVE_ASCENSOR"; - case ReferentialMessageCore::Command::GUILD_QUIT: - return "GUILD_QUIT"; - case ReferentialMessageCore::Command::GUILD_SET_PLAYER_TITLE: - return "GUILD_SET_PLAYER_TITLE"; - case ReferentialMessageCore::Command::GUILD_UPDATE_PLAYER_TITLE: - return "GUILD_UPDATE_PLAYER_TITLE"; - case ReferentialMessageCore::Command::GUILD_USE_FEMALE_TITLES: - return "GUILD_USE_FEMALE_TITLES"; - case ReferentialMessageCore::Command::GUILD_PUT_MONEY: - return "GUILD_PUT_MONEY"; - case ReferentialMessageCore::Command::GUILD_TAKE_MONEY: - return "GUILD_TAKE_MONEY"; - case ReferentialMessageCore::Command::GUILD_OPEN_INVENTORY: - return "GUILD_OPEN_INVENTORY"; - case ReferentialMessageCore::Command::GUILD_CLOSE_INVENTORY: - return "GUILD_CLOSE_INVENTORY"; - case ReferentialMessageCore::Command::OUTPOST_GIVEUP_OUTPOST: - return "OUTPOST_GIVEUP_OUTPOST"; - case ReferentialMessageCore::Command::OUTPOST_SELECT: - return "OUTPOST_SELECT"; - case ReferentialMessageCore::Command::OUTPOST_UNSELECT: - return "OUTPOST_UNSELECT"; - case ReferentialMessageCore::Command::OUTPOST_DECLARE_WAR_START: - return "OUTPOST_DECLARE_WAR_START"; - case ReferentialMessageCore::Command::OUTPOST_DECLARE_WAR_ACK: - return "OUTPOST_DECLARE_WAR_ACK"; - case ReferentialMessageCore::Command::OUTPOST_DECLARE_WAR_VALIDATE: - return "OUTPOST_DECLARE_WAR_VALIDATE"; - case ReferentialMessageCore::Command::OUTPOST_SET_DEF_PERIOD: - return "OUTPOST_SET_DEF_PERIOD"; - case ReferentialMessageCore::Command::OUTPOST_SET_SQUAD: - return "OUTPOST_SET_SQUAD"; - case ReferentialMessageCore::Command::OUTPOST_SET_SQUAD_SPAWN: - return "OUTPOST_SET_SQUAD_SPAWN"; - case ReferentialMessageCore::Command::OUTPOST_INSERT_SQUAD: - return "OUTPOST_INSERT_SQUAD"; - case ReferentialMessageCore::Command::OUTPOST_REMOVE_SQUAD: - return "OUTPOST_REMOVE_SQUAD"; - case ReferentialMessageCore::Command::OUTPOST_SET_SQUAD_CAPITAL: - return "OUTPOST_SET_SQUAD_CAPITAL"; - case ReferentialMessageCore::Command::OUTPOST_CHOOSE_SIDE: - return "OUTPOST_CHOOSE_SIDE"; - case ReferentialMessageCore::Command::OUTPOST_SIDE_CHOSEN: - return "OUTPOST_SIDE_CHOSEN"; - case ReferentialMessageCore::Command::OUTPOST_BANISH_PLAYER: - return "OUTPOST_BANISH_PLAYER"; - case ReferentialMessageCore::Command::OUTPOST_BANISH_GUILD: - return "OUTPOST_BANISH_GUILD"; - case ReferentialMessageCore::Command::OUTPOST_BUY_BUILDING: - return "OUTPOST_BUY_BUILDING"; - case ReferentialMessageCore::Command::OUTPOST_DESTROY_BUILDING: - return "OUTPOST_DESTROY_BUILDING"; - case ReferentialMessageCore::Command::PHRASE_DELETE: - return "PHRASE_DELETE"; - case ReferentialMessageCore::Command::PHRASE_LEARN: - return "PHRASE_LEARN"; - case ReferentialMessageCore::Command::PHRASE_MEMORIZE: - return "PHRASE_MEMORIZE"; - case ReferentialMessageCore::Command::PHRASE_FORGET: - return "PHRASE_FORGET"; - case ReferentialMessageCore::Command::PHRASE_EXECUTE: - return "PHRASE_EXECUTE"; - case ReferentialMessageCore::Command::PHRASE_EXECUTE_CYCLIC: - return "PHRASE_EXECUTE_CYCLIC"; - case ReferentialMessageCore::Command::PHRASE_EXECUTE_FABER: - return "PHRASE_EXECUTE_FABER"; - case ReferentialMessageCore::Command::PHRASE_DOWNLOAD: - return "PHRASE_DOWNLOAD"; - case ReferentialMessageCore::Command::PHRASE_BUY: - return "PHRASE_BUY"; - case ReferentialMessageCore::Command::PHRASE_CONFIRM_BUY: - return "PHRASE_CONFIRM_BUY"; - case ReferentialMessageCore::Command::PHRASE_BUY_SHEET: - return "PHRASE_BUY_SHEET"; - case ReferentialMessageCore::Command::PHRASE_CANCEL_LINK: - return "PHRASE_CANCEL_LINK"; - case ReferentialMessageCore::Command::PHRASE_CANCEL_TOP: - return "PHRASE_CANCEL_TOP"; - case ReferentialMessageCore::Command::PHRASE_CANCEL_ALL: - return "PHRASE_CANCEL_ALL"; - case ReferentialMessageCore::Command::PHRASE_CRISTALIZE: - return "PHRASE_CRISTALIZE"; - case ReferentialMessageCore::Command::PHRASE_EXEC_CYCLIC_ACK: - return "PHRASE_EXEC_CYCLIC_ACK"; - case ReferentialMessageCore::Command::PHRASE_EXEC_NEXT_ACK: - return "PHRASE_EXEC_NEXT_ACK"; - case ReferentialMessageCore::Command::ITEM_INFO_GET: - return "ITEM_INFO_GET"; - case ReferentialMessageCore::Command::ITEM_INFO_SET: - return "ITEM_INFO_SET"; - case ReferentialMessageCore::Command::ITEM_INFO_REFRESH_VERSION: - return "ITEM_INFO_REFRESH_VERSION"; - case ReferentialMessageCore::Command::MISSION_PREREQ_GET: - return "MISSION_PREREQ_GET"; - case ReferentialMessageCore::Command::MISSION_PREREQ_SET: - return "MISSION_PREREQ_SET"; - case ReferentialMessageCore::Command::MISSION_ENTER_CRITICAL: - return "MISSION_ENTER_CRITICAL"; - case ReferentialMessageCore::Command::MISSION_ASK_ENTER_CRITICAL: - return "MISSION_ASK_ENTER_CRITICAL"; - case ReferentialMessageCore::Command::MISSION_CLOSE_ENTER_CRITICAL: - return "MISSION_CLOSE_ENTER_CRITICAL"; - case ReferentialMessageCore::Command::MISSION_WAKE: - return "MISSION_WAKE"; - case ReferentialMessageCore::Command::MISSION_GROUP_WAKE: - return "MISSION_GROUP_WAKE"; - case ReferentialMessageCore::Command::DUEL_ASK: - return "DUEL_ASK"; - case ReferentialMessageCore::Command::DUEL_ACCEPT: - return "DUEL_ACCEPT"; - case ReferentialMessageCore::Command::DUEL_REFUSE: - return "DUEL_REFUSE"; - case ReferentialMessageCore::Command::DUEL_ABANDON: - return "DUEL_ABANDON"; - case ReferentialMessageCore::Command::DUEL_INVITATION: - return "DUEL_INVITATION"; - case ReferentialMessageCore::Command::DUEL_CANCEL_INVITATION: - return "DUEL_CANCEL_INVITATION"; - case ReferentialMessageCore::Command::PVP_CHALLENGE_ASK: - return "PVP_CHALLENGE_ASK"; - case ReferentialMessageCore::Command::PVP_CHALLENGE_ACCEPT: - return "PVP_CHALLENGE_ACCEPT"; - case ReferentialMessageCore::Command::PVP_CHALLENGE_REFUSE: - return "PVP_CHALLENGE_REFUSE"; - case ReferentialMessageCore::Command::PVP_CHALLENGE_ABANDON: - return "PVP_CHALLENGE_ABANDON"; - case ReferentialMessageCore::Command::PVP_CHALLENGE_INVITATION: - return "PVP_CHALLENGE_INVITATION"; - case ReferentialMessageCore::Command::PVP_CHALLENGE_CANCEL_INVITATION: - return "PVP_CHALLENGE_CANCEL_INVITATION"; - case ReferentialMessageCore::Command::PVP_PVP_TAG: - return "PVP_PVP_TAG"; - case ReferentialMessageCore::Command::PVP_SET_NEUTRAL_ALLEGIANCE: - return "PVP_SET_NEUTRAL_ALLEGIANCE"; - case ReferentialMessageCore::Command::PVP_SET_NEUTRAL_ALLEGIANCE_GUILD: - return "PVP_SET_NEUTRAL_ALLEGIANCE_GUILD"; - case ReferentialMessageCore::Command::PVP_FACTION_PUSH_FACTION_WAR: - return "PVP_FACTION_PUSH_FACTION_WAR"; - case ReferentialMessageCore::Command::PVP_FACTION_POP_FACTION_WAR: - return "PVP_FACTION_POP_FACTION_WAR"; - case ReferentialMessageCore::Command::PVP_FACTION_FACTION_WARS: - return "PVP_FACTION_FACTION_WARS"; - case ReferentialMessageCore::Command::ENCYCLOPEDIA_UPDATE: - return "ENCYCLOPEDIA_UPDATE"; - case ReferentialMessageCore::Command::ENCYCLOPEDIA_INIT: - return "ENCYCLOPEDIA_INIT"; - case ReferentialMessageCore::Command::USER_BARS: - return "USER_BARS"; - case ReferentialMessageCore::Command::USER_POPUP: - return "USER_POPUP"; - case ReferentialMessageCore::Command::EVENT_SET_ITEM_CUSTOM_TEXT: - return "EVENT_SET_ITEM_CUSTOM_TEXT"; - case ReferentialMessageCore::Command::EVENT_DUMMY: - return "EVENT_DUMMY"; - case ReferentialMessageCore::Command::TOTEM_BUILD: - return "TOTEM_BUILD"; - case ReferentialMessageCore::Command::TOTEM_DUMMY: - return "TOTEM_DUMMY"; - case ReferentialMessageCore::Command::MODULE_GATEWAY_FEOPEN: - return "MODULE_GATEWAY_FEOPEN"; - case ReferentialMessageCore::Command::MODULE_GATEWAY_GATEWAY_MSG: - return "MODULE_GATEWAY_GATEWAY_MSG"; - case ReferentialMessageCore::Command::MODULE_GATEWAY_FECLOSE: - return "MODULE_GATEWAY_FECLOSE"; - case ReferentialMessageCore::Command::SEASON_SET: - return "SEASON_SET"; - case ReferentialMessageCore::Command::SEASON_DUMMY: - return "SEASON_DUMMY"; - case ReferentialMessageCore::Command::DM_GIFT_BEGIN: - return "DM_GIFT_BEGIN"; - case ReferentialMessageCore::Command::DM_GIFT_VALIDATE: - return "DM_GIFT_VALIDATE"; - case ReferentialMessageCore::Command::RING_MISSION_MISSION_RING_SELECT: - return "RING_MISSION_MISSION_RING_SELECT"; - case ReferentialMessageCore::Command::RING_MISSION_DSS_DOWN: - return "RING_MISSION_DSS_DOWN"; - case ReferentialMessageCore::Command::NPC_ICON_GET_DESC: - return "NPC_ICON_GET_DESC"; - case ReferentialMessageCore::Command::NPC_ICON_SET_DESC: - return "NPC_ICON_SET_DESC"; - case ReferentialMessageCore::Command::NPC_ICON_SVR_EVENT_MIS_AVL: - return "NPC_ICON_SVR_EVENT_MIS_AVL"; - case ReferentialMessageCore::Command::NPC_ICON_SET_TIMER: - return "NPC_ICON_SET_TIMER"; - case ReferentialMessageCore::Command::__LAST_ELEMENT: - return "__LAST_ELEMENT"; - default: - return "?"; - } -} - void ElementReferential::show(int level, int pos) { String a; for(int i=0;iprint("[%s:%d] level:%d %s pos:%3d ------ power:%d\n", __FILE__, __LINE__, level, a.ascii().get_data(), pos, _power2); - DBG_PRINT("level:" + itos(level) + " " + a + " id:" + get_command_name(_id) + " pos:" + itos(pos) + " ------ power:" + itos(_power2)); + DBG_PRINT("level:" + itos(level) + " " + a + " id:" + ImpulseBase::get_command_name(_id) + " pos:" + itos(pos) + " ------ power:" + itos(_power2)); } else { - DBG_PRINT("level:" + itos(level) + " " + a + " pos:" + itos(pos) + " id:" + get_command_name(_id)); + DBG_PRINT("level:" + itos(level) + " " + a + " pos:" + itos(pos) + " id:" + ImpulseBase::get_command_name(_id)); } level ++; for(int i=0;i<_children.size();++i) @@ -736,7 +57,7 @@ int ElementReferential::read_command(Ref msgin) uint32_t i = msgin->get_serial(_power2); Ref child = _children[i]; - if ( child->_id != ReferentialMessageCore::Command::__LAST_ELEMENT ) + if ( child->_id != ImpulseBase::Impulse::__LAST_ELEMENT ) return child->_id; return child->read_command(msgin); } @@ -746,341 +67,6 @@ int ElementReferential::read_command(Ref msgin) */ void ReferentialMessageCore::_bind_methods() { - BIND_ENUM_CONSTANT(TARGET_PARTY); - BIND_ENUM_CONSTANT(TARGET_INVENTORY); - BIND_ENUM_CONSTANT(TARGET_FOLLOW); - BIND_ENUM_CONSTANT(TARGET_NO_FOLLOW); - BIND_ENUM_CONSTANT(CONNECTION_USER_CHAR); - BIND_ENUM_CONSTANT(CONNECTION_NO_USER_CHAR); - BIND_ENUM_CONSTANT(CONNECTION_USER_CHARS); - BIND_ENUM_CONSTANT(CONNECTION_CREATE_CHAR); - BIND_ENUM_CONSTANT(CONNECTION_SELECT_CHAR); - BIND_ENUM_CONSTANT(CONNECTION_DELETE_CHAR); - BIND_ENUM_CONSTANT(CONNECTION_RENAME_CHAR); - BIND_ENUM_CONSTANT(CONNECTION_ENTER); - BIND_ENUM_CONSTANT(CONNECTION_READY); - BIND_ENUM_CONSTANT(CONNECTION_TIME_DATE_SYNCHRO); - BIND_ENUM_CONSTANT(CONNECTION_ASK_NAME); - BIND_ENUM_CONSTANT(CONNECTION_VALID_NAME); - BIND_ENUM_CONSTANT(CONNECTION_CREATE_CHAR_ERROR); - BIND_ENUM_CONSTANT(CONNECTION_RECONNECT); - BIND_ENUM_CONSTANT(CONNECTION_SERVER_RECONNECT_OK); - BIND_ENUM_CONSTANT(CONNECTION_SHARD_ID); - BIND_ENUM_CONSTANT(CONNECTION_SERVER_QUIT_OK); - BIND_ENUM_CONSTANT(CONNECTION_SERVER_QUIT_ABORT); - BIND_ENUM_CONSTANT(CONNECTION_CLIENT_QUIT_REQUEST); - BIND_ENUM_CONSTANT(CONNECTION_MAIL_AVAILABLE); - BIND_ENUM_CONSTANT(CONNECTION_GUILD_MESSAGE_AVAILABLE); - BIND_ENUM_CONSTANT(CONNECTION_PERMANENT_BAN); - BIND_ENUM_CONSTANT(CONNECTION_UNBAN); - BIND_ENUM_CONSTANT(CONNECTION_FAR_TP); - BIND_ENUM_CONSTANT(CONNECTION_RET_MAINLAND); - BIND_ENUM_CONSTANT(DB_UPD_PLR); - BIND_ENUM_CONSTANT(DB_UPD_INV); - BIND_ENUM_CONSTANT(DB_INIT_PLR); - BIND_ENUM_CONSTANT(DB_INIT_INV); - BIND_ENUM_CONSTANT(DB_GROUP_UPDATE_BANK); - BIND_ENUM_CONSTANT(DB_GROUP_INIT_BANK); - BIND_ENUM_CONSTANT(DB_GROUP_RESET_BANK); - BIND_ENUM_CONSTANT(POSITION); - BIND_ENUM_CONSTANT(HARVEST_DEPOSIT); - BIND_ENUM_CONSTANT(HARVEST_CORPSE); - BIND_ENUM_CONSTANT(HARVEST_INTERRUPT); - BIND_ENUM_CONSTANT(HARVEST_CLOSE_TEMP_INVENTORY); - BIND_ENUM_CONSTANT(TRAINING); - BIND_ENUM_CONSTANT(JOB_SET_JOB_STATUS); - BIND_ENUM_CONSTANT(JOB_SWAP_JOB_STATUS); - BIND_ENUM_CONSTANT(CASTING_BEGIN); - BIND_ENUM_CONSTANT(CASTING_INTERRUPT); - BIND_ENUM_CONSTANT(FABER_OPEN); - BIND_ENUM_CONSTANT(FABER_CLOSE); - BIND_ENUM_CONSTANT(FABER_EXECUTE); - BIND_ENUM_CONSTANT(FABER_SET_NUM_ITEM); - BIND_ENUM_CONSTANT(FABER_START_CREATE); - BIND_ENUM_CONSTANT(FABER_START_REPAIR); - BIND_ENUM_CONSTANT(FABER_START_REFINE); - BIND_ENUM_CONSTANT(FABER_SET_MP_QUALITY); - BIND_ENUM_CONSTANT(FABER_SET_MP_REFINE); - BIND_ENUM_CONSTANT(FABER_SET_TOOL); - BIND_ENUM_CONSTANT(FABER_RESET_TOOL); - BIND_ENUM_CONSTANT(FABER_INTERRUPT); - BIND_ENUM_CONSTANT(COMBAT_ENGAGE); - BIND_ENUM_CONSTANT(COMBAT_DISENGAGE); - BIND_ENUM_CONSTANT(COMBAT_DEFAULT_ATTACK); - BIND_ENUM_CONSTANT(COMBAT_ENGAGE_FAILED); - BIND_ENUM_CONSTANT(COMBAT_VALIDATE_MELEE); - BIND_ENUM_CONSTANT(COMBAT_PARRY); - BIND_ENUM_CONSTANT(COMBAT_DODGE); - BIND_ENUM_CONSTANT(COMBAT_PROTECTED_SLOT); - BIND_ENUM_CONSTANT(COMBAT_FLYING_ChaScore1_DELTA); - BIND_ENUM_CONSTANT(COMBAT_FLYING_TEXT_ISE); - BIND_ENUM_CONSTANT(COMBAT_FLYING_TEXT); - BIND_ENUM_CONSTANT(STRING_TELL); - BIND_ENUM_CONSTANT(STRING_FAR_TELL); - BIND_ENUM_CONSTANT(STRING_CHAT); - BIND_ENUM_CONSTANT(STRING_CHAT_TEAM); - BIND_ENUM_CONSTANT(STRING_ADD_DYN_STR); - BIND_ENUM_CONSTANT(STRING_FILTER); - BIND_ENUM_CONSTANT(STRING_CHAT_MODE); - BIND_ENUM_CONSTANT(STRING_CHAT2); - BIND_ENUM_CONSTANT(STRING_TELL2); - BIND_ENUM_CONSTANT(STRING_DYN_STRING); - BIND_ENUM_CONSTANT(STRING_DYN_STRING_GROUP); - BIND_ENUM_CONSTANT(STRING_AFK_TXT); - BIND_ENUM_CONSTANT(STUN_STUN); - BIND_ENUM_CONSTANT(STUN_WAKE_UP); - BIND_ENUM_CONSTANT(SENTENCE_EXECUTE); - BIND_ENUM_CONSTANT(SENTENCE_CANCEL); - BIND_ENUM_CONSTANT(SENTENCE_CANCEL_CURRENT); - BIND_ENUM_CONSTANT(SENTENCE_CANCEL_ALL); - BIND_ENUM_CONSTANT(SENTENCE_CLEAR); - BIND_ENUM_CONSTANT(SENTENCE_MEMORIZE); - BIND_ENUM_CONSTANT(SENTENCE_FORGET); - BIND_ENUM_CONSTANT(SENTENCE_EVALUATE); - BIND_ENUM_CONSTANT(SENTENCE_ADD_BRICK); - BIND_ENUM_CONSTANT(SENTENCE_REMOVE_BRICK); - BIND_ENUM_CONSTANT(SENTENCE_START); - BIND_ENUM_CONSTANT(SENTENCE_STOP); - BIND_ENUM_CONSTANT(TEAM_JOIN); - BIND_ENUM_CONSTANT(TEAM_LEAVE); - BIND_ENUM_CONSTANT(TEAM_INVITATION); - BIND_ENUM_CONSTANT(TEAM_JOIN_PROPOSAL); - BIND_ENUM_CONSTANT(TEAM_JOIN_PROPOSAL_DECLINE); - BIND_ENUM_CONSTANT(TEAM_KICK); - BIND_ENUM_CONSTANT(TEAM_SET_SUCCESSOR); - BIND_ENUM_CONSTANT(TEAM_SHARE_OPEN); - BIND_ENUM_CONSTANT(TEAM_SHARE_VALID_ITEM); - BIND_ENUM_CONSTANT(TEAM_SHARE_INVALID_ITEM); - BIND_ENUM_CONSTANT(TEAM_SHARE_VALID); - BIND_ENUM_CONSTANT(TEAM_SHARE_INVALID); - BIND_ENUM_CONSTANT(TEAM_SHARE_CLOSE); - BIND_ENUM_CONSTANT(TEAM_CONTACT_INIT); - BIND_ENUM_CONSTANT(TEAM_CONTACT_ADD); - BIND_ENUM_CONSTANT(TEAM_CONTACT_DEL); - BIND_ENUM_CONSTANT(TEAM_CONTACT_MOVE); - BIND_ENUM_CONSTANT(TEAM_CONTACT_CREATE); - BIND_ENUM_CONSTANT(TEAM_CONTACT_STATUS); - BIND_ENUM_CONSTANT(TEAM_CONTACT_REMOVE); - BIND_ENUM_CONSTANT(ITEM_DROP); - BIND_ENUM_CONSTANT(ITEM_PICK_UP); - BIND_ENUM_CONSTANT(ITEM_PICK_UP_CLOSE); - BIND_ENUM_CONSTANT(ITEM_SWAP); - BIND_ENUM_CONSTANT(ITEM_ACTIVATE_SHEATH); - BIND_ENUM_CONSTANT(ITEM_HARVEST); - BIND_ENUM_CONSTANT(ITEM_HARVEST_CLOSE); - BIND_ENUM_CONSTANT(ITEM_GIVE); - BIND_ENUM_CONSTANT(ITEM_DESTROY); - BIND_ENUM_CONSTANT(ITEM_EQUIP); - BIND_ENUM_CONSTANT(ITEM_UNEQUIP); - BIND_ENUM_CONSTANT(ITEM_TEMP_TO_BAG); - BIND_ENUM_CONSTANT(ITEM_ALL_TEMP); - BIND_ENUM_CONSTANT(ITEM_NO_TEMP); - BIND_ENUM_CONSTANT(ITEM_ENCHANT); - BIND_ENUM_CONSTANT(ITEM_OPEN_ROOM_INVENTORY); - BIND_ENUM_CONSTANT(ITEM_CLOSE_ROOM_INVENTORY); - BIND_ENUM_CONSTANT(ITEM_USE_ITEM); - BIND_ENUM_CONSTANT(ITEM_STOP_USE_XP_CAT); - BIND_ENUM_CONSTANT(TP_RESPAWN); - BIND_ENUM_CONSTANT(TP_BOT); - BIND_ENUM_CONSTANT(TP_WANTED); - BIND_ENUM_CONSTANT(TP_DEST); - BIND_ENUM_CONSTANT(TP_DEST_WITH_SEASON); - BIND_ENUM_CONSTANT(TP_ACK); - BIND_ENUM_CONSTANT(TP_CORRECT); - BIND_ENUM_CONSTANT(DEATH_RESPAWN_POINT); - BIND_ENUM_CONSTANT(DEATH_ASK_RESPAWN); - BIND_ENUM_CONSTANT(DEATH_RESPAWN); - BIND_ENUM_CONSTANT(ANIMALS_BEAST); - BIND_ENUM_CONSTANT(ANIMALS_MOUNT_ABORT); - BIND_ENUM_CONSTANT(EXCHANGE_INVITATION); - BIND_ENUM_CONSTANT(EXCHANGE_CLOSE_INVITATION); - BIND_ENUM_CONSTANT(EXCHANGE_PROPOSAL); - BIND_ENUM_CONSTANT(EXCHANGE_ACCEPT_INVITATION); - BIND_ENUM_CONSTANT(EXCHANGE_DECLINE_INVITATION); - BIND_ENUM_CONSTANT(EXCHANGE_VALIDATE); - BIND_ENUM_CONSTANT(EXCHANGE_INVALIDATE); - BIND_ENUM_CONSTANT(EXCHANGE_END); - BIND_ENUM_CONSTANT(EXCHANGE_SEEDS); - BIND_ENUM_CONSTANT(EXCHANGE_ADD); - BIND_ENUM_CONSTANT(EXCHANGE_REMOVE); - BIND_ENUM_CONSTANT(DEBUG_WHERE); - BIND_ENUM_CONSTANT(DEBUG_WHO); - BIND_ENUM_CONSTANT(DEBUG_REPLY_WHERE); - BIND_ENUM_CONSTANT(DEBUG_SERVICES); - BIND_ENUM_CONSTANT(DEBUG_CMD); - BIND_ENUM_CONSTANT(DEBUG_PING); - BIND_ENUM_CONSTANT(DEBUG_COUNTER); - BIND_ENUM_CONSTANT(COMMAND_EMOTE); - BIND_ENUM_CONSTANT(COMMAND_CUSTOM_EMOTE); - BIND_ENUM_CONSTANT(COMMAND_WHERE); - BIND_ENUM_CONSTANT(COMMAND_ADMIN); - BIND_ENUM_CONSTANT(COMMAND_ADMIN_OFFLINE); - BIND_ENUM_CONSTANT(COMMAND_REMOTE_ADMIN); - BIND_ENUM_CONSTANT(COMMAND_REMOTE_ADMIN_ANSWER); - BIND_ENUM_CONSTANT(COMMAND_SIT); - BIND_ENUM_CONSTANT(COMMAND_AFK); - BIND_ENUM_CONSTANT(COMMAND_RANDOM); - BIND_ENUM_CONSTANT(COMMAND_GUILDMOTD); - BIND_ENUM_CONSTANT(MP_EVAL_SET_MP); - BIND_ENUM_CONSTANT(MP_EVAL_SET_MP_LEVEL); - BIND_ENUM_CONSTANT(MP_EVAL_SET_MARKET); - BIND_ENUM_CONSTANT(MP_EVAL_EXECUTE); - BIND_ENUM_CONSTANT(BOTCHAT_NEXT_PAGE_ITEM); - BIND_ENUM_CONSTANT(BOTCHAT_NEXT_PAGE_MISSION); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_ITEM); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_TELEPORT); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_FACTION); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_SKILL); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_PACT); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_ACTION); - BIND_ENUM_CONSTANT(BOTCHAT_BUY); - BIND_ENUM_CONSTANT(BOTCHAT_SELL); - BIND_ENUM_CONSTANT(BOTCHAT_DESTROY_ITEM); - BIND_ENUM_CONSTANT(BOTCHAT_REFRESH_TRADE_LIST); - BIND_ENUM_CONSTANT(BOTCHAT_SET_FILTERS); - BIND_ENUM_CONSTANT(BOTCHAT_START_CHOOSE_MISSION); - BIND_ENUM_CONSTANT(BOTCHAT_START_DYNAMIC_MISSION); - BIND_ENUM_CONSTANT(BOTCHAT_CONTINUE_MISSION); - BIND_ENUM_CONSTANT(BOTCHAT_VALIDATE_PLAYER_GIFT); - BIND_ENUM_CONSTANT(BOTCHAT_PICK_MISSION); - BIND_ENUM_CONSTANT(BOTCHAT_DM_CHOICE); - BIND_ENUM_CONSTANT(BOTCHAT_DM_ACCEPT); - BIND_ENUM_CONSTANT(BOTCHAT_START_NEWS); - BIND_ENUM_CONSTANT(BOTCHAT_START_CREATE_GUILD); - BIND_ENUM_CONSTANT(BOTCHAT_END); - BIND_ENUM_CONSTANT(BOTCHAT_FORCE_END); - BIND_ENUM_CONSTANT(BOTCHAT_START_CHOOSE_DUTY); - BIND_ENUM_CONSTANT(BOTCHAT_NEXT_PAGE_DUTY); - BIND_ENUM_CONSTANT(BOTCHAT_DUTY_APPLY); - BIND_ENUM_CONSTANT(BOTCHAT_DUTY_CANCEL_APPLY); - BIND_ENUM_CONSTANT(BOTCHAT_START_TRADE_GUILD_OPTIONS); - BIND_ENUM_CONSTANT(BOTCHAT_BUY_GUILD_OPTION); - BIND_ENUM_CONSTANT(BOTCHAT_START_GUILD_RESEARCH); - BIND_ENUM_CONSTANT(BOTCHAT_DESTROY_BUILDING); - BIND_ENUM_CONSTANT(BOTCHAT_DYNCHAT_OPEN); - BIND_ENUM_CONSTANT(BOTCHAT_DYNCHAT_CLOSE); - BIND_ENUM_CONSTANT(BOTCHAT_DYNCHAT_SEND); - BIND_ENUM_CONSTANT(JOURNAL_INIT_COMPLETED_MISSIONS); - BIND_ENUM_CONSTANT(JOURNAL_UPDATE_COMPLETED_MISSIONS); - BIND_ENUM_CONSTANT(JOURNAL_MISSION_ABANDON); - BIND_ENUM_CONSTANT(JOURNAL_GROUP_MISSION_ABANDON); - BIND_ENUM_CONSTANT(JOURNAL_ADD_COMPASS); - BIND_ENUM_CONSTANT(JOURNAL_ADD_COMPASS_BOT); - BIND_ENUM_CONSTANT(JOURNAL_REMOVE_COMPASS); - BIND_ENUM_CONSTANT(JOURNAL_REMOVE_COMPASS_BOT); - BIND_ENUM_CONSTANT(STRING_MANAGER_SET_LANGUAGE); - BIND_ENUM_CONSTANT(STRING_MANAGER_PHRASE_SEND); - BIND_ENUM_CONSTANT(STRING_MANAGER_STRING_RQ); - BIND_ENUM_CONSTANT(STRING_MANAGER_STRING_RESP); - BIND_ENUM_CONSTANT(STRING_MANAGER_RELOAD_CACHE); - BIND_ENUM_CONSTANT(GUILD_CREATE); - BIND_ENUM_CONSTANT(GUILD_ABORT_CREATION); - BIND_ENUM_CONSTANT(GUILD_OPEN_GUILD_WINDOW); - BIND_ENUM_CONSTANT(GUILD_INVITATION); - BIND_ENUM_CONSTANT(GUILD_ACCEPT_INVITATION); - BIND_ENUM_CONSTANT(GUILD_REFUSE_INVITATION); - BIND_ENUM_CONSTANT(GUILD_JOIN_PROPOSAL); - BIND_ENUM_CONSTANT(GUILD_SET_GRADE); - BIND_ENUM_CONSTANT(GUILD_SET_LEADER); - BIND_ENUM_CONSTANT(GUILD_KICK_MEMBER); - BIND_ENUM_CONSTANT(GUILD_TELEPORT); - BIND_ENUM_CONSTANT(GUILD_ASCENSOR); - BIND_ENUM_CONSTANT(GUILD_FIRST_ASCENSOR_PAGE); - BIND_ENUM_CONSTANT(GUILD_NEXT_ASCENSOR_PAGE); - BIND_ENUM_CONSTANT(GUILD_LEAVE_ASCENSOR); - BIND_ENUM_CONSTANT(GUILD_QUIT); - BIND_ENUM_CONSTANT(GUILD_SET_PLAYER_TITLE); - BIND_ENUM_CONSTANT(GUILD_UPDATE_PLAYER_TITLE); - BIND_ENUM_CONSTANT(GUILD_USE_FEMALE_TITLES); - BIND_ENUM_CONSTANT(GUILD_PUT_MONEY); - BIND_ENUM_CONSTANT(GUILD_TAKE_MONEY); - BIND_ENUM_CONSTANT(GUILD_OPEN_INVENTORY); - BIND_ENUM_CONSTANT(GUILD_CLOSE_INVENTORY); - BIND_ENUM_CONSTANT(OUTPOST_GIVEUP_OUTPOST); - BIND_ENUM_CONSTANT(OUTPOST_SELECT); - BIND_ENUM_CONSTANT(OUTPOST_UNSELECT); - BIND_ENUM_CONSTANT(OUTPOST_DECLARE_WAR_START); - BIND_ENUM_CONSTANT(OUTPOST_DECLARE_WAR_ACK); - BIND_ENUM_CONSTANT(OUTPOST_DECLARE_WAR_VALIDATE); - BIND_ENUM_CONSTANT(OUTPOST_SET_DEF_PERIOD); - BIND_ENUM_CONSTANT(OUTPOST_SET_SQUAD); - BIND_ENUM_CONSTANT(OUTPOST_SET_SQUAD_SPAWN); - BIND_ENUM_CONSTANT(OUTPOST_INSERT_SQUAD); - BIND_ENUM_CONSTANT(OUTPOST_REMOVE_SQUAD); - BIND_ENUM_CONSTANT(OUTPOST_SET_SQUAD_CAPITAL); - BIND_ENUM_CONSTANT(OUTPOST_CHOOSE_SIDE); - BIND_ENUM_CONSTANT(OUTPOST_SIDE_CHOSEN); - BIND_ENUM_CONSTANT(OUTPOST_BANISH_PLAYER); - BIND_ENUM_CONSTANT(OUTPOST_BANISH_GUILD); - BIND_ENUM_CONSTANT(OUTPOST_BUY_BUILDING); - BIND_ENUM_CONSTANT(OUTPOST_DESTROY_BUILDING); - BIND_ENUM_CONSTANT(PHRASE_DELETE); - BIND_ENUM_CONSTANT(PHRASE_LEARN); - BIND_ENUM_CONSTANT(PHRASE_MEMORIZE); - BIND_ENUM_CONSTANT(PHRASE_FORGET); - BIND_ENUM_CONSTANT(PHRASE_EXECUTE); - BIND_ENUM_CONSTANT(PHRASE_EXECUTE_CYCLIC); - BIND_ENUM_CONSTANT(PHRASE_EXECUTE_FABER); - BIND_ENUM_CONSTANT(PHRASE_DOWNLOAD); - BIND_ENUM_CONSTANT(PHRASE_BUY); - BIND_ENUM_CONSTANT(PHRASE_CONFIRM_BUY); - BIND_ENUM_CONSTANT(PHRASE_BUY_SHEET); - BIND_ENUM_CONSTANT(PHRASE_CANCEL_LINK); - BIND_ENUM_CONSTANT(PHRASE_CANCEL_TOP); - BIND_ENUM_CONSTANT(PHRASE_CANCEL_ALL); - BIND_ENUM_CONSTANT(PHRASE_CRISTALIZE); - BIND_ENUM_CONSTANT(PHRASE_EXEC_CYCLIC_ACK); - BIND_ENUM_CONSTANT(PHRASE_EXEC_NEXT_ACK); - BIND_ENUM_CONSTANT(ITEM_INFO_GET); - BIND_ENUM_CONSTANT(ITEM_INFO_SET); - BIND_ENUM_CONSTANT(ITEM_INFO_REFRESH_VERSION); - BIND_ENUM_CONSTANT(MISSION_PREREQ_GET); - BIND_ENUM_CONSTANT(MISSION_PREREQ_SET); - BIND_ENUM_CONSTANT(MISSION_ENTER_CRITICAL); - BIND_ENUM_CONSTANT(MISSION_ASK_ENTER_CRITICAL); - BIND_ENUM_CONSTANT(MISSION_CLOSE_ENTER_CRITICAL); - BIND_ENUM_CONSTANT(MISSION_WAKE); - BIND_ENUM_CONSTANT(MISSION_GROUP_WAKE); - BIND_ENUM_CONSTANT(DUEL_ASK); - BIND_ENUM_CONSTANT(DUEL_ACCEPT); - BIND_ENUM_CONSTANT(DUEL_REFUSE); - BIND_ENUM_CONSTANT(DUEL_ABANDON); - BIND_ENUM_CONSTANT(DUEL_INVITATION); - BIND_ENUM_CONSTANT(DUEL_CANCEL_INVITATION); - BIND_ENUM_CONSTANT(PVP_CHALLENGE_ASK); - BIND_ENUM_CONSTANT(PVP_CHALLENGE_ACCEPT); - BIND_ENUM_CONSTANT(PVP_CHALLENGE_REFUSE); - BIND_ENUM_CONSTANT(PVP_CHALLENGE_ABANDON); - BIND_ENUM_CONSTANT(PVP_CHALLENGE_INVITATION); - BIND_ENUM_CONSTANT(PVP_CHALLENGE_CANCEL_INVITATION); - BIND_ENUM_CONSTANT(PVP_PVP_TAG); - BIND_ENUM_CONSTANT(PVP_SET_NEUTRAL_ALLEGIANCE); - BIND_ENUM_CONSTANT(PVP_SET_NEUTRAL_ALLEGIANCE_GUILD); - BIND_ENUM_CONSTANT(PVP_FACTION_PUSH_FACTION_WAR); - BIND_ENUM_CONSTANT(PVP_FACTION_POP_FACTION_WAR); - BIND_ENUM_CONSTANT(PVP_FACTION_FACTION_WARS); - BIND_ENUM_CONSTANT(ENCYCLOPEDIA_UPDATE); - BIND_ENUM_CONSTANT(ENCYCLOPEDIA_INIT); - BIND_ENUM_CONSTANT(USER_BARS); - BIND_ENUM_CONSTANT(USER_POPUP); - BIND_ENUM_CONSTANT(EVENT_SET_ITEM_CUSTOM_TEXT); - BIND_ENUM_CONSTANT(EVENT_DUMMY); - BIND_ENUM_CONSTANT(TOTEM_BUILD); - BIND_ENUM_CONSTANT(TOTEM_DUMMY); - BIND_ENUM_CONSTANT(MODULE_GATEWAY_FEOPEN); - BIND_ENUM_CONSTANT(MODULE_GATEWAY_GATEWAY_MSG); - BIND_ENUM_CONSTANT(MODULE_GATEWAY_FECLOSE); - BIND_ENUM_CONSTANT(SEASON_SET); - BIND_ENUM_CONSTANT(SEASON_DUMMY); - BIND_ENUM_CONSTANT(DM_GIFT_BEGIN); - BIND_ENUM_CONSTANT(DM_GIFT_VALIDATE); - BIND_ENUM_CONSTANT(RING_MISSION_MISSION_RING_SELECT); - BIND_ENUM_CONSTANT(RING_MISSION_DSS_DOWN); - BIND_ENUM_CONSTANT(NPC_ICON_GET_DESC); - BIND_ENUM_CONSTANT(NPC_ICON_SET_DESC); - BIND_ENUM_CONSTANT(NPC_ICON_SVR_EVENT_MIS_AVL); - BIND_ENUM_CONSTANT(NPC_ICON_SET_TIMER); - BIND_ENUM_CONSTANT(__LAST_ELEMENT); } ReferentialMessageCore *ReferentialMessageCore::get_singleton() @@ -1090,682 +76,6 @@ ReferentialMessageCore *ReferentialMessageCore::get_singleton() return ReferentialMessageCore::singleton; } -int ReferentialMessageCore::get_command(String name) -{ - if( name == "TARGET_PARTY" ) { - return Command::TARGET_PARTY; - } else if( name == "TARGET_INVENTORY" ) { - return Command::TARGET_INVENTORY; - } else if( name == "TARGET_FOLLOW" ) { - return Command::TARGET_FOLLOW; - } else if( name == "TARGET_NO_FOLLOW" ) { - return Command::TARGET_NO_FOLLOW; - } else if( name == "CONNECTION_USER_CHAR" ) { - return Command::CONNECTION_USER_CHAR; - } else if( name == "CONNECTION_NO_USER_CHAR" ) { - return Command::CONNECTION_NO_USER_CHAR; - } else if( name == "CONNECTION_USER_CHARS" ) { - return Command::CONNECTION_USER_CHARS; - } else if( name == "CONNECTION_CREATE_CHAR" ) { - return Command::CONNECTION_CREATE_CHAR; - } else if( name == "CONNECTION_SELECT_CHAR" ) { - return Command::CONNECTION_SELECT_CHAR; - } else if( name == "CONNECTION_DELETE_CHAR" ) { - return Command::CONNECTION_DELETE_CHAR; - } else if( name == "CONNECTION_RENAME_CHAR" ) { - return Command::CONNECTION_RENAME_CHAR; - } else if( name == "CONNECTION_ENTER" ) { - return Command::CONNECTION_ENTER; - } else if( name == "CONNECTION_READY" ) { - return Command::CONNECTION_READY; - } else if( name == "CONNECTION_TIME_DATE_SYNCHRO" ) { - return Command::CONNECTION_TIME_DATE_SYNCHRO; - } else if( name == "CONNECTION_ASK_NAME" ) { - return Command::CONNECTION_ASK_NAME; - } else if( name == "CONNECTION_VALID_NAME" ) { - return Command::CONNECTION_VALID_NAME; - } else if( name == "CONNECTION_CREATE_CHAR_ERROR" ) { - return Command::CONNECTION_CREATE_CHAR_ERROR; - } else if( name == "CONNECTION_RECONNECT" ) { - return Command::CONNECTION_RECONNECT; - } else if( name == "CONNECTION_SERVER_RECONNECT_OK" ) { - return Command::CONNECTION_SERVER_RECONNECT_OK; - } else if( name == "CONNECTION_SHARD_ID" ) { - return Command::CONNECTION_SHARD_ID; - } else if( name == "CONNECTION_SERVER_QUIT_OK" ) { - return Command::CONNECTION_SERVER_QUIT_OK; - } else if( name == "CONNECTION_SERVER_QUIT_ABORT" ) { - return Command::CONNECTION_SERVER_QUIT_ABORT; - } else if( name == "CONNECTION_CLIENT_QUIT_REQUEST" ) { - return Command::CONNECTION_CLIENT_QUIT_REQUEST; - } else if( name == "CONNECTION_MAIL_AVAILABLE" ) { - return Command::CONNECTION_MAIL_AVAILABLE; - } else if( name == "CONNECTION_GUILD_MESSAGE_AVAILABLE" ) { - return Command::CONNECTION_GUILD_MESSAGE_AVAILABLE; - } else if( name == "CONNECTION_PERMANENT_BAN" ) { - return Command::CONNECTION_PERMANENT_BAN; - } else if( name == "CONNECTION_UNBAN" ) { - return Command::CONNECTION_UNBAN; - } else if( name == "CONNECTION_FAR_TP" ) { - return Command::CONNECTION_FAR_TP; - } else if( name == "CONNECTION_RET_MAINLAND" ) { - return Command::CONNECTION_RET_MAINLAND; - } else if( name == "DB_UPD_PLR" ) { - return Command::DB_UPD_PLR; - } else if( name == "DB_UPD_INV" ) { - return Command::DB_UPD_INV; - } else if( name == "DB_INIT_PLR" ) { - return Command::DB_INIT_PLR; - } else if( name == "DB_INIT_INV" ) { - return Command::DB_INIT_INV; - } else if( name == "DB_GROUP_UPDATE_BANK" ) { - return Command::DB_GROUP_UPDATE_BANK; - } else if( name == "DB_GROUP_INIT_BANK" ) { - return Command::DB_GROUP_INIT_BANK; - } else if( name == "DB_GROUP_RESET_BANK" ) { - return Command::DB_GROUP_RESET_BANK; - } else if( name == "POSITION" ) { - return Command::POSITION; - } else if( name == "HARVEST_DEPOSIT" ) { - return Command::HARVEST_DEPOSIT; - } else if( name == "HARVEST_CORPSE" ) { - return Command::HARVEST_CORPSE; - } else if( name == "HARVEST_INTERRUPT" ) { - return Command::HARVEST_INTERRUPT; - } else if( name == "HARVEST_CLOSE_TEMP_INVENTORY" ) { - return Command::HARVEST_CLOSE_TEMP_INVENTORY; - } else if( name == "TRAINING" ) { - return Command::TRAINING; - } else if( name == "JOB_SET_JOB_STATUS" ) { - return Command::JOB_SET_JOB_STATUS; - } else if( name == "JOB_SWAP_JOB_STATUS" ) { - return Command::JOB_SWAP_JOB_STATUS; - } else if( name == "CASTING_BEGIN" ) { - return Command::CASTING_BEGIN; - } else if( name == "CASTING_INTERRUPT" ) { - return Command::CASTING_INTERRUPT; - } else if( name == "FABER_OPEN" ) { - return Command::FABER_OPEN; - } else if( name == "FABER_CLOSE" ) { - return Command::FABER_CLOSE; - } else if( name == "FABER_EXECUTE" ) { - return Command::FABER_EXECUTE; - } else if( name == "FABER_SET_NUM_ITEM" ) { - return Command::FABER_SET_NUM_ITEM; - } else if( name == "FABER_START_CREATE" ) { - return Command::FABER_START_CREATE; - } else if( name == "FABER_START_REPAIR" ) { - return Command::FABER_START_REPAIR; - } else if( name == "FABER_START_REFINE" ) { - return Command::FABER_START_REFINE; - } else if( name == "FABER_SET_MP_QUALITY" ) { - return Command::FABER_SET_MP_QUALITY; - } else if( name == "FABER_SET_MP_REFINE" ) { - return Command::FABER_SET_MP_REFINE; - } else if( name == "FABER_SET_TOOL" ) { - return Command::FABER_SET_TOOL; - } else if( name == "FABER_RESET_TOOL" ) { - return Command::FABER_RESET_TOOL; - } else if( name == "FABER_INTERRUPT" ) { - return Command::FABER_INTERRUPT; - } else if( name == "COMBAT_ENGAGE" ) { - return Command::COMBAT_ENGAGE; - } else if( name == "COMBAT_DISENGAGE" ) { - return Command::COMBAT_DISENGAGE; - } else if( name == "COMBAT_DEFAULT_ATTACK" ) { - return Command::COMBAT_DEFAULT_ATTACK; - } else if( name == "COMBAT_ENGAGE_FAILED" ) { - return Command::COMBAT_ENGAGE_FAILED; - } else if( name == "COMBAT_VALIDATE_MELEE" ) { - return Command::COMBAT_VALIDATE_MELEE; - } else if( name == "COMBAT_PARRY" ) { - return Command::COMBAT_PARRY; - } else if( name == "COMBAT_DODGE" ) { - return Command::COMBAT_DODGE; - } else if( name == "COMBAT_PROTECTED_SLOT" ) { - return Command::COMBAT_PROTECTED_SLOT; - } else if( name == "COMBAT_FLYING_ChaScore1_DELTA" ) { - return Command::COMBAT_FLYING_ChaScore1_DELTA; - } else if( name == "COMBAT_FLYING_TEXT_ISE" ) { - return Command::COMBAT_FLYING_TEXT_ISE; - } else if( name == "COMBAT_FLYING_TEXT" ) { - return Command::COMBAT_FLYING_TEXT; - } else if( name == "STRING_TELL" ) { - return Command::STRING_TELL; - } else if( name == "STRING_FAR_TELL" ) { - return Command::STRING_FAR_TELL; - } else if( name == "STRING_CHAT" ) { - return Command::STRING_CHAT; - } else if( name == "STRING_CHAT_TEAM" ) { - return Command::STRING_CHAT_TEAM; - } else if( name == "STRING_ADD_DYN_STR" ) { - return Command::STRING_ADD_DYN_STR; - } else if( name == "STRING_FILTER" ) { - return Command::STRING_FILTER; - } else if( name == "STRING_CHAT_MODE" ) { - return Command::STRING_CHAT_MODE; - } else if( name == "STRING_CHAT2" ) { - return Command::STRING_CHAT2; - } else if( name == "STRING_TELL2" ) { - return Command::STRING_TELL2; - } else if( name == "STRING_DYN_STRING" ) { - return Command::STRING_DYN_STRING; - } else if( name == "STRING_DYN_STRING_GROUP" ) { - return Command::STRING_DYN_STRING_GROUP; - } else if( name == "STRING_AFK_TXT" ) { - return Command::STRING_AFK_TXT; - } else if( name == "STUN_STUN" ) { - return Command::STUN_STUN; - } else if( name == "STUN_WAKE_UP" ) { - return Command::STUN_WAKE_UP; - } else if( name == "SENTENCE_EXECUTE" ) { - return Command::SENTENCE_EXECUTE; - } else if( name == "SENTENCE_CANCEL" ) { - return Command::SENTENCE_CANCEL; - } else if( name == "SENTENCE_CANCEL_CURRENT" ) { - return Command::SENTENCE_CANCEL_CURRENT; - } else if( name == "SENTENCE_CANCEL_ALL" ) { - return Command::SENTENCE_CANCEL_ALL; - } else if( name == "SENTENCE_CLEAR" ) { - return Command::SENTENCE_CLEAR; - } else if( name == "SENTENCE_MEMORIZE" ) { - return Command::SENTENCE_MEMORIZE; - } else if( name == "SENTENCE_FORGET" ) { - return Command::SENTENCE_FORGET; - } else if( name == "SENTENCE_EVALUATE" ) { - return Command::SENTENCE_EVALUATE; - } else if( name == "SENTENCE_ADD_BRICK" ) { - return Command::SENTENCE_ADD_BRICK; - } else if( name == "SENTENCE_REMOVE_BRICK" ) { - return Command::SENTENCE_REMOVE_BRICK; - } else if( name == "SENTENCE_START" ) { - return Command::SENTENCE_START; - } else if( name == "SENTENCE_STOP" ) { - return Command::SENTENCE_STOP; - } else if( name == "TEAM_JOIN" ) { - return Command::TEAM_JOIN; - } else if( name == "TEAM_LEAVE" ) { - return Command::TEAM_LEAVE; - } else if( name == "TEAM_INVITATION" ) { - return Command::TEAM_INVITATION; - } else if( name == "TEAM_JOIN_PROPOSAL" ) { - return Command::TEAM_JOIN_PROPOSAL; - } else if( name == "TEAM_JOIN_PROPOSAL_DECLINE" ) { - return Command::TEAM_JOIN_PROPOSAL_DECLINE; - } else if( name == "TEAM_KICK" ) { - return Command::TEAM_KICK; - } else if( name == "TEAM_SET_SUCCESSOR" ) { - return Command::TEAM_SET_SUCCESSOR; - } else if( name == "TEAM_SHARE_OPEN" ) { - return Command::TEAM_SHARE_OPEN; - } else if( name == "TEAM_SHARE_VALID_ITEM" ) { - return Command::TEAM_SHARE_VALID_ITEM; - } else if( name == "TEAM_SHARE_INVALID_ITEM" ) { - return Command::TEAM_SHARE_INVALID_ITEM; - } else if( name == "TEAM_SHARE_VALID" ) { - return Command::TEAM_SHARE_VALID; - } else if( name == "TEAM_SHARE_INVALID" ) { - return Command::TEAM_SHARE_INVALID; - } else if( name == "TEAM_SHARE_CLOSE" ) { - return Command::TEAM_SHARE_CLOSE; - } else if( name == "TEAM_CONTACT_INIT" ) { - return Command::TEAM_CONTACT_INIT; - } else if( name == "TEAM_CONTACT_ADD" ) { - return Command::TEAM_CONTACT_ADD; - } else if( name == "TEAM_CONTACT_DEL" ) { - return Command::TEAM_CONTACT_DEL; - } else if( name == "TEAM_CONTACT_MOVE" ) { - return Command::TEAM_CONTACT_MOVE; - } else if( name == "TEAM_CONTACT_CREATE" ) { - return Command::TEAM_CONTACT_CREATE; - } else if( name == "TEAM_CONTACT_STATUS" ) { - return Command::TEAM_CONTACT_STATUS; - } else if( name == "TEAM_CONTACT_REMOVE" ) { - return Command::TEAM_CONTACT_REMOVE; - } else if( name == "ITEM_DROP" ) { - return Command::ITEM_DROP; - } else if( name == "ITEM_PICK_UP" ) { - return Command::ITEM_PICK_UP; - } else if( name == "ITEM_PICK_UP_CLOSE" ) { - return Command::ITEM_PICK_UP_CLOSE; - } else if( name == "ITEM_SWAP" ) { - return Command::ITEM_SWAP; - } else if( name == "ITEM_ACTIVATE_SHEATH" ) { - return Command::ITEM_ACTIVATE_SHEATH; - } else if( name == "ITEM_HARVEST" ) { - return Command::ITEM_HARVEST; - } else if( name == "ITEM_HARVEST_CLOSE" ) { - return Command::ITEM_HARVEST_CLOSE; - } else if( name == "ITEM_GIVE" ) { - return Command::ITEM_GIVE; - } else if( name == "ITEM_DESTROY" ) { - return Command::ITEM_DESTROY; - } else if( name == "ITEM_EQUIP" ) { - return Command::ITEM_EQUIP; - } else if( name == "ITEM_UNEQUIP" ) { - return Command::ITEM_UNEQUIP; - } else if( name == "ITEM_TEMP_TO_BAG" ) { - return Command::ITEM_TEMP_TO_BAG; - } else if( name == "ITEM_ALL_TEMP" ) { - return Command::ITEM_ALL_TEMP; - } else if( name == "ITEM_NO_TEMP" ) { - return Command::ITEM_NO_TEMP; - } else if( name == "ITEM_ENCHANT" ) { - return Command::ITEM_ENCHANT; - } else if( name == "ITEM_OPEN_ROOM_INVENTORY" ) { - return Command::ITEM_OPEN_ROOM_INVENTORY; - } else if( name == "ITEM_CLOSE_ROOM_INVENTORY" ) { - return Command::ITEM_CLOSE_ROOM_INVENTORY; - } else if( name == "ITEM_USE_ITEM" ) { - return Command::ITEM_USE_ITEM; - } else if( name == "ITEM_STOP_USE_XP_CAT" ) { - return Command::ITEM_STOP_USE_XP_CAT; - } else if( name == "TP_RESPAWN" ) { - return Command::TP_RESPAWN; - } else if( name == "TP_BOT" ) { - return Command::TP_BOT; - } else if( name == "TP_WANTED" ) { - return Command::TP_WANTED; - } else if( name == "TP_DEST" ) { - return Command::TP_DEST; - } else if( name == "TP_DEST_WITH_SEASON" ) { - return Command::TP_DEST_WITH_SEASON; - } else if( name == "TP_ACK" ) { - return Command::TP_ACK; - } else if( name == "TP_CORRECT" ) { - return Command::TP_CORRECT; - } else if( name == "DEATH_RESPAWN_POINT" ) { - return Command::DEATH_RESPAWN_POINT; - } else if( name == "DEATH_ASK_RESPAWN" ) { - return Command::DEATH_ASK_RESPAWN; - } else if( name == "DEATH_RESPAWN" ) { - return Command::DEATH_RESPAWN; - } else if( name == "ANIMALS_BEAST" ) { - return Command::ANIMALS_BEAST; - } else if( name == "ANIMALS_MOUNT_ABORT" ) { - return Command::ANIMALS_MOUNT_ABORT; - } else if( name == "EXCHANGE_INVITATION" ) { - return Command::EXCHANGE_INVITATION; - } else if( name == "EXCHANGE_CLOSE_INVITATION" ) { - return Command::EXCHANGE_CLOSE_INVITATION; - } else if( name == "EXCHANGE_PROPOSAL" ) { - return Command::EXCHANGE_PROPOSAL; - } else if( name == "EXCHANGE_ACCEPT_INVITATION" ) { - return Command::EXCHANGE_ACCEPT_INVITATION; - } else if( name == "EXCHANGE_DECLINE_INVITATION" ) { - return Command::EXCHANGE_DECLINE_INVITATION; - } else if( name == "EXCHANGE_VALIDATE" ) { - return Command::EXCHANGE_VALIDATE; - } else if( name == "EXCHANGE_INVALIDATE" ) { - return Command::EXCHANGE_INVALIDATE; - } else if( name == "EXCHANGE_END" ) { - return Command::EXCHANGE_END; - } else if( name == "EXCHANGE_SEEDS" ) { - return Command::EXCHANGE_SEEDS; - } else if( name == "EXCHANGE_ADD" ) { - return Command::EXCHANGE_ADD; - } else if( name == "EXCHANGE_REMOVE" ) { - return Command::EXCHANGE_REMOVE; - } else if( name == "DEBUG_WHERE" ) { - return Command::DEBUG_WHERE; - } else if( name == "DEBUG_WHO" ) { - return Command::DEBUG_WHO; - } else if( name == "DEBUG_REPLY_WHERE" ) { - return Command::DEBUG_REPLY_WHERE; - } else if( name == "DEBUG_SERVICES" ) { - return Command::DEBUG_SERVICES; - } else if( name == "DEBUG_CMD" ) { - return Command::DEBUG_CMD; - } else if( name == "DEBUG_PING" ) { - return Command::DEBUG_PING; - } else if( name == "DEBUG_COUNTER" ) { - return Command::DEBUG_COUNTER; - } else if( name == "COMMAND_EMOTE" ) { - return Command::COMMAND_EMOTE; - } else if( name == "COMMAND_CUSTOM_EMOTE" ) { - return Command::COMMAND_CUSTOM_EMOTE; - } else if( name == "COMMAND_WHERE" ) { - return Command::COMMAND_WHERE; - } else if( name == "COMMAND_ADMIN" ) { - return Command::COMMAND_ADMIN; - } else if( name == "COMMAND_ADMIN_OFFLINE" ) { - return Command::COMMAND_ADMIN_OFFLINE; - } else if( name == "COMMAND_REMOTE_ADMIN" ) { - return Command::COMMAND_REMOTE_ADMIN; - } else if( name == "COMMAND_REMOTE_ADMIN_ANSWER" ) { - return Command::COMMAND_REMOTE_ADMIN_ANSWER; - } else if( name == "COMMAND_SIT" ) { - return Command::COMMAND_SIT; - } else if( name == "COMMAND_AFK" ) { - return Command::COMMAND_AFK; - } else if( name == "COMMAND_RANDOM" ) { - return Command::COMMAND_RANDOM; - } else if( name == "COMMAND_GUILDMOTD" ) { - return Command::COMMAND_GUILDMOTD; - } else if( name == "MP_EVAL_SET_MP" ) { - return Command::MP_EVAL_SET_MP; - } else if( name == "MP_EVAL_SET_MP_LEVEL" ) { - return Command::MP_EVAL_SET_MP_LEVEL; - } else if( name == "MP_EVAL_SET_MARKET" ) { - return Command::MP_EVAL_SET_MARKET; - } else if( name == "MP_EVAL_EXECUTE" ) { - return Command::MP_EVAL_EXECUTE; - } else if( name == "BOTCHAT_NEXT_PAGE_ITEM" ) { - return Command::BOTCHAT_NEXT_PAGE_ITEM; - } else if( name == "BOTCHAT_NEXT_PAGE_MISSION" ) { - return Command::BOTCHAT_NEXT_PAGE_MISSION; - } else if( name == "BOTCHAT_START_TRADE_ITEM" ) { - return Command::BOTCHAT_START_TRADE_ITEM; - } else if( name == "BOTCHAT_START_TRADE_TELEPORT" ) { - return Command::BOTCHAT_START_TRADE_TELEPORT; - } else if( name == "BOTCHAT_START_TRADE_FACTION" ) { - return Command::BOTCHAT_START_TRADE_FACTION; - } else if( name == "BOTCHAT_START_TRADE_SKILL" ) { - return Command::BOTCHAT_START_TRADE_SKILL; - } else if( name == "BOTCHAT_START_TRADE_PACT" ) { - return Command::BOTCHAT_START_TRADE_PACT; - } else if( name == "BOTCHAT_START_TRADE_ACTION" ) { - return Command::BOTCHAT_START_TRADE_ACTION; - } else if( name == "BOTCHAT_BUY" ) { - return Command::BOTCHAT_BUY; - } else if( name == "BOTCHAT_SELL" ) { - return Command::BOTCHAT_SELL; - } else if( name == "BOTCHAT_DESTROY_ITEM" ) { - return Command::BOTCHAT_DESTROY_ITEM; - } else if( name == "BOTCHAT_REFRESH_TRADE_LIST" ) { - return Command::BOTCHAT_REFRESH_TRADE_LIST; - } else if( name == "BOTCHAT_SET_FILTERS" ) { - return Command::BOTCHAT_SET_FILTERS; - } else if( name == "BOTCHAT_START_CHOOSE_MISSION" ) { - return Command::BOTCHAT_START_CHOOSE_MISSION; - } else if( name == "BOTCHAT_START_DYNAMIC_MISSION" ) { - return Command::BOTCHAT_START_DYNAMIC_MISSION; - } else if( name == "BOTCHAT_CONTINUE_MISSION" ) { - return Command::BOTCHAT_CONTINUE_MISSION; - } else if( name == "BOTCHAT_VALIDATE_PLAYER_GIFT" ) { - return Command::BOTCHAT_VALIDATE_PLAYER_GIFT; - } else if( name == "BOTCHAT_PICK_MISSION" ) { - return Command::BOTCHAT_PICK_MISSION; - } else if( name == "BOTCHAT_DM_CHOICE" ) { - return Command::BOTCHAT_DM_CHOICE; - } else if( name == "BOTCHAT_DM_ACCEPT" ) { - return Command::BOTCHAT_DM_ACCEPT; - } else if( name == "BOTCHAT_START_NEWS" ) { - return Command::BOTCHAT_START_NEWS; - } else if( name == "BOTCHAT_START_CREATE_GUILD" ) { - return Command::BOTCHAT_START_CREATE_GUILD; - } else if( name == "BOTCHAT_END" ) { - return Command::BOTCHAT_END; - } else if( name == "BOTCHAT_FORCE_END" ) { - return Command::BOTCHAT_FORCE_END; - } else if( name == "BOTCHAT_START_CHOOSE_DUTY" ) { - return Command::BOTCHAT_START_CHOOSE_DUTY; - } else if( name == "BOTCHAT_NEXT_PAGE_DUTY" ) { - return Command::BOTCHAT_NEXT_PAGE_DUTY; - } else if( name == "BOTCHAT_DUTY_APPLY" ) { - return Command::BOTCHAT_DUTY_APPLY; - } else if( name == "BOTCHAT_DUTY_CANCEL_APPLY" ) { - return Command::BOTCHAT_DUTY_CANCEL_APPLY; - } else if( name == "BOTCHAT_START_TRADE_GUILD_OPTIONS" ) { - return Command::BOTCHAT_START_TRADE_GUILD_OPTIONS; - } else if( name == "BOTCHAT_BUY_GUILD_OPTION" ) { - return Command::BOTCHAT_BUY_GUILD_OPTION; - } else if( name == "BOTCHAT_START_GUILD_RESEARCH" ) { - return Command::BOTCHAT_START_GUILD_RESEARCH; - } else if( name == "BOTCHAT_DESTROY_BUILDING" ) { - return Command::BOTCHAT_DESTROY_BUILDING; - } else if( name == "BOTCHAT_DYNCHAT_OPEN" ) { - return Command::BOTCHAT_DYNCHAT_OPEN; - } else if( name == "BOTCHAT_DYNCHAT_CLOSE" ) { - return Command::BOTCHAT_DYNCHAT_CLOSE; - } else if( name == "BOTCHAT_DYNCHAT_SEND" ) { - return Command::BOTCHAT_DYNCHAT_SEND; - } else if( name == "JOURNAL_INIT_COMPLETED_MISSIONS" ) { - return Command::JOURNAL_INIT_COMPLETED_MISSIONS; - } else if( name == "JOURNAL_UPDATE_COMPLETED_MISSIONS" ) { - return Command::JOURNAL_UPDATE_COMPLETED_MISSIONS; - } else if( name == "JOURNAL_MISSION_ABANDON" ) { - return Command::JOURNAL_MISSION_ABANDON; - } else if( name == "JOURNAL_GROUP_MISSION_ABANDON" ) { - return Command::JOURNAL_GROUP_MISSION_ABANDON; - } else if( name == "JOURNAL_ADD_COMPASS" ) { - return Command::JOURNAL_ADD_COMPASS; - } else if( name == "JOURNAL_ADD_COMPASS_BOT" ) { - return Command::JOURNAL_ADD_COMPASS_BOT; - } else if( name == "JOURNAL_REMOVE_COMPASS" ) { - return Command::JOURNAL_REMOVE_COMPASS; - } else if( name == "JOURNAL_REMOVE_COMPASS_BOT" ) { - return Command::JOURNAL_REMOVE_COMPASS_BOT; - } else if( name == "STRING_MANAGER_SET_LANGUAGE" ) { - return Command::STRING_MANAGER_SET_LANGUAGE; - } else if( name == "STRING_MANAGER_PHRASE_SEND" ) { - return Command::STRING_MANAGER_PHRASE_SEND; - } else if( name == "STRING_MANAGER_STRING_RQ" ) { - return Command::STRING_MANAGER_STRING_RQ; - } else if( name == "STRING_MANAGER_STRING_RESP" ) { - return Command::STRING_MANAGER_STRING_RESP; - } else if( name == "STRING_MANAGER_RELOAD_CACHE" ) { - return Command::STRING_MANAGER_RELOAD_CACHE; - } else if( name == "GUILD_CREATE" ) { - return Command::GUILD_CREATE; - } else if( name == "GUILD_ABORT_CREATION" ) { - return Command::GUILD_ABORT_CREATION; - } else if( name == "GUILD_OPEN_GUILD_WINDOW" ) { - return Command::GUILD_OPEN_GUILD_WINDOW; - } else if( name == "GUILD_INVITATION" ) { - return Command::GUILD_INVITATION; - } else if( name == "GUILD_ACCEPT_INVITATION" ) { - return Command::GUILD_ACCEPT_INVITATION; - } else if( name == "GUILD_REFUSE_INVITATION" ) { - return Command::GUILD_REFUSE_INVITATION; - } else if( name == "GUILD_JOIN_PROPOSAL" ) { - return Command::GUILD_JOIN_PROPOSAL; - } else if( name == "GUILD_SET_GRADE" ) { - return Command::GUILD_SET_GRADE; - } else if( name == "GUILD_SET_LEADER" ) { - return Command::GUILD_SET_LEADER; - } else if( name == "GUILD_KICK_MEMBER" ) { - return Command::GUILD_KICK_MEMBER; - } else if( name == "GUILD_TELEPORT" ) { - return Command::GUILD_TELEPORT; - } else if( name == "GUILD_ASCENSOR" ) { - return Command::GUILD_ASCENSOR; - } else if( name == "GUILD_FIRST_ASCENSOR_PAGE" ) { - return Command::GUILD_FIRST_ASCENSOR_PAGE; - } else if( name == "GUILD_NEXT_ASCENSOR_PAGE" ) { - return Command::GUILD_NEXT_ASCENSOR_PAGE; - } else if( name == "GUILD_LEAVE_ASCENSOR" ) { - return Command::GUILD_LEAVE_ASCENSOR; - } else if( name == "GUILD_QUIT" ) { - return Command::GUILD_QUIT; - } else if( name == "GUILD_SET_PLAYER_TITLE" ) { - return Command::GUILD_SET_PLAYER_TITLE; - } else if( name == "GUILD_UPDATE_PLAYER_TITLE" ) { - return Command::GUILD_UPDATE_PLAYER_TITLE; - } else if( name == "GUILD_USE_FEMALE_TITLES" ) { - return Command::GUILD_USE_FEMALE_TITLES; - } else if( name == "GUILD_PUT_MONEY" ) { - return Command::GUILD_PUT_MONEY; - } else if( name == "GUILD_TAKE_MONEY" ) { - return Command::GUILD_TAKE_MONEY; - } else if( name == "GUILD_OPEN_INVENTORY" ) { - return Command::GUILD_OPEN_INVENTORY; - } else if( name == "GUILD_CLOSE_INVENTORY" ) { - return Command::GUILD_CLOSE_INVENTORY; - } else if( name == "OUTPOST_GIVEUP_OUTPOST" ) { - return Command::OUTPOST_GIVEUP_OUTPOST; - } else if( name == "OUTPOST_SELECT" ) { - return Command::OUTPOST_SELECT; - } else if( name == "OUTPOST_UNSELECT" ) { - return Command::OUTPOST_UNSELECT; - } else if( name == "OUTPOST_DECLARE_WAR_START" ) { - return Command::OUTPOST_DECLARE_WAR_START; - } else if( name == "OUTPOST_DECLARE_WAR_ACK" ) { - return Command::OUTPOST_DECLARE_WAR_ACK; - } else if( name == "OUTPOST_DECLARE_WAR_VALIDATE" ) { - return Command::OUTPOST_DECLARE_WAR_VALIDATE; - } else if( name == "OUTPOST_SET_DEF_PERIOD" ) { - return Command::OUTPOST_SET_DEF_PERIOD; - } else if( name == "OUTPOST_SET_SQUAD" ) { - return Command::OUTPOST_SET_SQUAD; - } else if( name == "OUTPOST_SET_SQUAD_SPAWN" ) { - return Command::OUTPOST_SET_SQUAD_SPAWN; - } else if( name == "OUTPOST_INSERT_SQUAD" ) { - return Command::OUTPOST_INSERT_SQUAD; - } else if( name == "OUTPOST_REMOVE_SQUAD" ) { - return Command::OUTPOST_REMOVE_SQUAD; - } else if( name == "OUTPOST_SET_SQUAD_CAPITAL" ) { - return Command::OUTPOST_SET_SQUAD_CAPITAL; - } else if( name == "OUTPOST_CHOOSE_SIDE" ) { - return Command::OUTPOST_CHOOSE_SIDE; - } else if( name == "OUTPOST_SIDE_CHOSEN" ) { - return Command::OUTPOST_SIDE_CHOSEN; - } else if( name == "OUTPOST_BANISH_PLAYER" ) { - return Command::OUTPOST_BANISH_PLAYER; - } else if( name == "OUTPOST_BANISH_GUILD" ) { - return Command::OUTPOST_BANISH_GUILD; - } else if( name == "OUTPOST_BUY_BUILDING" ) { - return Command::OUTPOST_BUY_BUILDING; - } else if( name == "OUTPOST_DESTROY_BUILDING" ) { - return Command::OUTPOST_DESTROY_BUILDING; - } else if( name == "PHRASE_DELETE" ) { - return Command::PHRASE_DELETE; - } else if( name == "PHRASE_LEARN" ) { - return Command::PHRASE_LEARN; - } else if( name == "PHRASE_MEMORIZE" ) { - return Command::PHRASE_MEMORIZE; - } else if( name == "PHRASE_FORGET" ) { - return Command::PHRASE_FORGET; - } else if( name == "PHRASE_EXECUTE" ) { - return Command::PHRASE_EXECUTE; - } else if( name == "PHRASE_EXECUTE_CYCLIC" ) { - return Command::PHRASE_EXECUTE_CYCLIC; - } else if( name == "PHRASE_EXECUTE_FABER" ) { - return Command::PHRASE_EXECUTE_FABER; - } else if( name == "PHRASE_DOWNLOAD" ) { - return Command::PHRASE_DOWNLOAD; - } else if( name == "PHRASE_BUY" ) { - return Command::PHRASE_BUY; - } else if( name == "PHRASE_CONFIRM_BUY" ) { - return Command::PHRASE_CONFIRM_BUY; - } else if( name == "PHRASE_BUY_SHEET" ) { - return Command::PHRASE_BUY_SHEET; - } else if( name == "PHRASE_CANCEL_LINK" ) { - return Command::PHRASE_CANCEL_LINK; - } else if( name == "PHRASE_CANCEL_TOP" ) { - return Command::PHRASE_CANCEL_TOP; - } else if( name == "PHRASE_CANCEL_ALL" ) { - return Command::PHRASE_CANCEL_ALL; - } else if( name == "PHRASE_CRISTALIZE" ) { - return Command::PHRASE_CRISTALIZE; - } else if( name == "PHRASE_EXEC_CYCLIC_ACK" ) { - return Command::PHRASE_EXEC_CYCLIC_ACK; - } else if( name == "PHRASE_EXEC_NEXT_ACK" ) { - return Command::PHRASE_EXEC_NEXT_ACK; - } else if( name == "ITEM_INFO_GET" ) { - return Command::ITEM_INFO_GET; - } else if( name == "ITEM_INFO_SET" ) { - return Command::ITEM_INFO_SET; - } else if( name == "ITEM_INFO_REFRESH_VERSION" ) { - return Command::ITEM_INFO_REFRESH_VERSION; - } else if( name == "MISSION_PREREQ_GET" ) { - return Command::MISSION_PREREQ_GET; - } else if( name == "MISSION_PREREQ_SET" ) { - return Command::MISSION_PREREQ_SET; - } else if( name == "MISSION_ENTER_CRITICAL" ) { - return Command::MISSION_ENTER_CRITICAL; - } else if( name == "MISSION_ASK_ENTER_CRITICAL" ) { - return Command::MISSION_ASK_ENTER_CRITICAL; - } else if( name == "MISSION_CLOSE_ENTER_CRITICAL" ) { - return Command::MISSION_CLOSE_ENTER_CRITICAL; - } else if( name == "MISSION_WAKE" ) { - return Command::MISSION_WAKE; - } else if( name == "MISSION_GROUP_WAKE" ) { - return Command::MISSION_GROUP_WAKE; - } else if( name == "DUEL_ASK" ) { - return Command::DUEL_ASK; - } else if( name == "DUEL_ACCEPT" ) { - return Command::DUEL_ACCEPT; - } else if( name == "DUEL_REFUSE" ) { - return Command::DUEL_REFUSE; - } else if( name == "DUEL_ABANDON" ) { - return Command::DUEL_ABANDON; - } else if( name == "DUEL_INVITATION" ) { - return Command::DUEL_INVITATION; - } else if( name == "DUEL_CANCEL_INVITATION" ) { - return Command::DUEL_CANCEL_INVITATION; - } else if( name == "PVP_CHALLENGE_ASK" ) { - return Command::PVP_CHALLENGE_ASK; - } else if( name == "PVP_CHALLENGE_ACCEPT" ) { - return Command::PVP_CHALLENGE_ACCEPT; - } else if( name == "PVP_CHALLENGE_REFUSE" ) { - return Command::PVP_CHALLENGE_REFUSE; - } else if( name == "PVP_CHALLENGE_ABANDON" ) { - return Command::PVP_CHALLENGE_ABANDON; - } else if( name == "PVP_CHALLENGE_INVITATION" ) { - return Command::PVP_CHALLENGE_INVITATION; - } else if( name == "PVP_CHALLENGE_CANCEL_INVITATION" ) { - return Command::PVP_CHALLENGE_CANCEL_INVITATION; - } else if( name == "PVP_PVP_TAG" ) { - return Command::PVP_PVP_TAG; - } else if( name == "PVP_SET_NEUTRAL_ALLEGIANCE" ) { - return Command::PVP_SET_NEUTRAL_ALLEGIANCE; - } else if( name == "PVP_SET_NEUTRAL_ALLEGIANCE_GUILD" ) { - return Command::PVP_SET_NEUTRAL_ALLEGIANCE_GUILD; - } else if( name == "PVP_FACTION_PUSH_FACTION_WAR" ) { - return Command::PVP_FACTION_PUSH_FACTION_WAR; - } else if( name == "PVP_FACTION_POP_FACTION_WAR" ) { - return Command::PVP_FACTION_POP_FACTION_WAR; - } else if( name == "PVP_FACTION_FACTION_WARS" ) { - return Command::PVP_FACTION_FACTION_WARS; - } else if( name == "ENCYCLOPEDIA_UPDATE" ) { - return Command::ENCYCLOPEDIA_UPDATE; - } else if( name == "ENCYCLOPEDIA_INIT" ) { - return Command::ENCYCLOPEDIA_INIT; - } else if( name == "USER_BARS" ) { - return Command::USER_BARS; - } else if( name == "USER_POPUP" ) { - return Command::USER_POPUP; - } else if( name == "EVENT_SET_ITEM_CUSTOM_TEXT" ) { - return Command::EVENT_SET_ITEM_CUSTOM_TEXT; - } else if( name == "EVENT_DUMMY" ) { - return Command::EVENT_DUMMY; - } else if( name == "TOTEM_BUILD" ) { - return Command::TOTEM_BUILD; - } else if( name == "TOTEM_DUMMY" ) { - return Command::TOTEM_DUMMY; - } else if( name == "MODULE_GATEWAY_FEOPEN" ) { - return Command::MODULE_GATEWAY_FEOPEN; - } else if( name == "MODULE_GATEWAY_GATEWAY_MSG" ) { - return Command::MODULE_GATEWAY_GATEWAY_MSG; - } else if( name == "MODULE_GATEWAY_FECLOSE" ) { - return Command::MODULE_GATEWAY_FECLOSE; - } else if( name == "SEASON_SET" ) { - return Command::SEASON_SET; - } else if( name == "SEASON_DUMMY" ) { - return Command::SEASON_DUMMY; - } else if( name == "DM_GIFT_BEGIN" ) { - return Command::DM_GIFT_BEGIN; - } else if( name == "DM_GIFT_VALIDATE" ) { - return Command::DM_GIFT_VALIDATE; - } else if( name == "RING_MISSION_MISSION_RING_SELECT" ) { - return Command::RING_MISSION_MISSION_RING_SELECT; - } else if( name == "RING_MISSION_DSS_DOWN" ) { - return Command::RING_MISSION_DSS_DOWN; - } else if( name == "NPC_ICON_GET_DESC" ) { - return Command::NPC_ICON_GET_DESC; - } else if( name == "NPC_ICON_SET_DESC" ) { - return Command::NPC_ICON_SET_DESC; - } else if( name == "NPC_ICON_SVR_EVENT_MIS_AVL" ) { - return Command::NPC_ICON_SVR_EVENT_MIS_AVL; - } else if( name == "NPC_ICON_SET_TIMER" ) { - return Command::NPC_ICON_SET_TIMER; - } else { - WARN_PRINT("Ignore unknown keyword command '" + name + "'"); - } - return Command::__LAST_ELEMENT; -} - void ReferentialMessageCore::read_referential_step(Dictionary step, Vector head, Ref root) { uint32_t i; @@ -1788,8 +98,8 @@ void ReferentialMessageCore::read_referential_step(Dictionary step, Vectorput_serial(head.get(ii).get_pos(), getPowerOf2(_size)); - int id = get_command(a); - if (id != Command::__LAST_ELEMENT) + int id = ImpulseBase::get_command(a); + if (id != ImpulseBase::Impulse::__LAST_ELEMENT) { _encoder[id].copy_ref_bitstream(ele); root->set_id(id); @@ -1807,7 +117,7 @@ void ReferentialMessageCore::read_referential_step(Dictionary step, Vector root_child = root->add_child(Command::__LAST_ELEMENT, i); + Ref root_child = root->add_child(ImpulseBase::Impulse::__LAST_ELEMENT, i); Variant child ; child = step[name]; ElementHead tmp; @@ -1823,7 +133,7 @@ void ReferentialMessageCore::read_referential(Dictionary dictionary_message) { Vector head; DBG_PRINT("Read Referential Message"); - _decoder->set_id(Command::__LAST_ELEMENT); + _decoder->set_id(ImpulseBase::Impulse::__LAST_ELEMENT); read_referential_step(dictionary_message, head, _decoder); } @@ -1838,9 +148,9 @@ void ReferentialMessageCore::show() */ // show Element to push data { - for(int i = 0; i < Command::__LAST_ELEMENT; ++i) + for(int i = 0; i < ImpulseBase::Impulse::__LAST_ELEMENT; ++i) { - DBG_PRINT(itos(i) + ") " + get_command_name(i) + " " + this->_encoder[i].show().ascii().get_data() + " [size:" + itos(this->_encoder[i].size_data()) + "]"); + DBG_PRINT(itos(i) + ") " + ImpulseBase::get_command_name(i) + " " + this->_encoder[i].show().ascii().get_data() + " [size:" + itos(this->_encoder[i].size_data()) + "]"); } } // show element to read data diff --git a/modules/referentialmessage/referentialmessagecore.h b/modules/referentialmessage/referentialmessagecore.h index f9b0e37..8ebf4be 100644 --- a/modules/referentialmessage/referentialmessagecore.h +++ b/modules/referentialmessage/referentialmessagecore.h @@ -25,8 +25,7 @@ #include "core/dictionary.h" #include "modules/bitstream/bitstream.h" #include "modules/debug/debug.h" - -String get_command_name(uint32_t id); +#include "modules/impulse/impulsebase.h" inline uint32_t getPowerOf2(uint32_t v) { @@ -67,343 +66,6 @@ class ReferentialMessageCore : public Reference protected: static void _bind_methods(); public: - enum Command { - TARGET_PARTY, - TARGET_INVENTORY, - TARGET_FOLLOW, - TARGET_NO_FOLLOW, - CONNECTION_USER_CHAR, - CONNECTION_NO_USER_CHAR, - CONNECTION_USER_CHARS, - CONNECTION_CREATE_CHAR, - CONNECTION_SELECT_CHAR, - CONNECTION_DELETE_CHAR, - CONNECTION_RENAME_CHAR, - CONNECTION_ENTER, - CONNECTION_READY, - CONNECTION_TIME_DATE_SYNCHRO, - CONNECTION_ASK_NAME, - CONNECTION_VALID_NAME, - CONNECTION_CREATE_CHAR_ERROR, - CONNECTION_RECONNECT, - CONNECTION_SERVER_RECONNECT_OK, - CONNECTION_SHARD_ID, - CONNECTION_SERVER_QUIT_OK, - CONNECTION_SERVER_QUIT_ABORT, - CONNECTION_CLIENT_QUIT_REQUEST, - CONNECTION_MAIL_AVAILABLE, - CONNECTION_GUILD_MESSAGE_AVAILABLE, - CONNECTION_PERMANENT_BAN, - CONNECTION_UNBAN, - CONNECTION_FAR_TP, - CONNECTION_RET_MAINLAND, - DB_UPD_PLR, - DB_UPD_INV, - DB_INIT_PLR, - DB_INIT_INV, - DB_GROUP_UPDATE_BANK, - DB_GROUP_INIT_BANK, - DB_GROUP_RESET_BANK, - POSITION, - HARVEST_DEPOSIT, - HARVEST_CORPSE, - HARVEST_INTERRUPT, - HARVEST_CLOSE_TEMP_INVENTORY, - TRAINING, - JOB_SET_JOB_STATUS, - JOB_SWAP_JOB_STATUS, - CASTING_BEGIN, - CASTING_INTERRUPT, - FABER_OPEN, - FABER_CLOSE, - FABER_EXECUTE, - FABER_SET_NUM_ITEM, - FABER_START_CREATE, - FABER_START_REPAIR, - FABER_START_REFINE, - FABER_SET_MP_QUALITY, - FABER_SET_MP_REFINE, - FABER_SET_TOOL, - FABER_RESET_TOOL, - FABER_INTERRUPT, - COMBAT_ENGAGE, - COMBAT_DISENGAGE, - COMBAT_DEFAULT_ATTACK, - COMBAT_ENGAGE_FAILED, - COMBAT_VALIDATE_MELEE, - COMBAT_PARRY, - COMBAT_DODGE, - COMBAT_PROTECTED_SLOT, - COMBAT_FLYING_ChaScore1_DELTA, - COMBAT_FLYING_TEXT_ISE, - COMBAT_FLYING_TEXT, - STRING_TELL, - STRING_FAR_TELL, - STRING_CHAT, - STRING_CHAT_TEAM, - STRING_ADD_DYN_STR, - STRING_FILTER, - STRING_CHAT_MODE, - STRING_CHAT2, - STRING_TELL2, - STRING_DYN_STRING, - STRING_DYN_STRING_GROUP, - STRING_AFK_TXT, - STUN_STUN, - STUN_WAKE_UP, - SENTENCE_EXECUTE, - SENTENCE_CANCEL, - SENTENCE_CANCEL_CURRENT, - SENTENCE_CANCEL_ALL, - SENTENCE_CLEAR, - SENTENCE_MEMORIZE, - SENTENCE_FORGET, - SENTENCE_EVALUATE, - SENTENCE_ADD_BRICK, - SENTENCE_REMOVE_BRICK, - SENTENCE_START, - SENTENCE_STOP, - TEAM_JOIN, - TEAM_LEAVE, - TEAM_INVITATION, - TEAM_JOIN_PROPOSAL, - TEAM_JOIN_PROPOSAL_DECLINE, - TEAM_KICK, - TEAM_SET_SUCCESSOR, - TEAM_SHARE_OPEN, - TEAM_SHARE_VALID_ITEM, - TEAM_SHARE_INVALID_ITEM, - TEAM_SHARE_VALID, - TEAM_SHARE_INVALID, - TEAM_SHARE_CLOSE, - TEAM_CONTACT_INIT, - TEAM_CONTACT_ADD, - TEAM_CONTACT_DEL, - TEAM_CONTACT_MOVE, - TEAM_CONTACT_CREATE, - TEAM_CONTACT_STATUS, - TEAM_CONTACT_REMOVE, - ITEM_DROP, - ITEM_PICK_UP, - ITEM_PICK_UP_CLOSE, - ITEM_SWAP, - ITEM_ACTIVATE_SHEATH, - ITEM_HARVEST, - ITEM_HARVEST_CLOSE, - ITEM_GIVE, - ITEM_DESTROY, - ITEM_EQUIP, - ITEM_UNEQUIP, - ITEM_TEMP_TO_BAG, - ITEM_ALL_TEMP, - ITEM_NO_TEMP, - ITEM_ENCHANT, - ITEM_OPEN_ROOM_INVENTORY, - ITEM_CLOSE_ROOM_INVENTORY, - ITEM_USE_ITEM, - ITEM_STOP_USE_XP_CAT, - TP_RESPAWN, - TP_BOT, - TP_WANTED, - TP_DEST, - TP_DEST_WITH_SEASON, - TP_ACK, - TP_CORRECT, - DEATH_RESPAWN_POINT, - DEATH_ASK_RESPAWN, - DEATH_RESPAWN, - ANIMALS_BEAST, - ANIMALS_MOUNT_ABORT, - EXCHANGE_INVITATION, - EXCHANGE_CLOSE_INVITATION, - EXCHANGE_PROPOSAL, - EXCHANGE_ACCEPT_INVITATION, - EXCHANGE_DECLINE_INVITATION, - EXCHANGE_VALIDATE, - EXCHANGE_INVALIDATE, - EXCHANGE_END, - EXCHANGE_SEEDS, - EXCHANGE_ADD, - EXCHANGE_REMOVE, - DEBUG_WHERE, - DEBUG_WHO, - DEBUG_REPLY_WHERE, - DEBUG_SERVICES, - DEBUG_CMD, - DEBUG_PING, - DEBUG_COUNTER, - COMMAND_EMOTE, - COMMAND_CUSTOM_EMOTE, - COMMAND_WHERE, - COMMAND_ADMIN, - COMMAND_ADMIN_OFFLINE, - COMMAND_REMOTE_ADMIN, - COMMAND_REMOTE_ADMIN_ANSWER, - COMMAND_SIT, - COMMAND_AFK, - COMMAND_RANDOM, - COMMAND_GUILDMOTD, - MP_EVAL_SET_MP, - MP_EVAL_SET_MP_LEVEL, - MP_EVAL_SET_MARKET, - MP_EVAL_EXECUTE, - BOTCHAT_NEXT_PAGE_ITEM, - BOTCHAT_NEXT_PAGE_MISSION, - BOTCHAT_START_TRADE_ITEM, - BOTCHAT_START_TRADE_TELEPORT, - BOTCHAT_START_TRADE_FACTION, - BOTCHAT_START_TRADE_SKILL, - BOTCHAT_START_TRADE_PACT, - BOTCHAT_START_TRADE_ACTION, - BOTCHAT_BUY, - BOTCHAT_SELL, - BOTCHAT_DESTROY_ITEM, - BOTCHAT_REFRESH_TRADE_LIST, - BOTCHAT_SET_FILTERS, - BOTCHAT_START_CHOOSE_MISSION, - BOTCHAT_START_DYNAMIC_MISSION, - BOTCHAT_CONTINUE_MISSION, - BOTCHAT_VALIDATE_PLAYER_GIFT, - BOTCHAT_PICK_MISSION, - BOTCHAT_DM_CHOICE, - BOTCHAT_DM_ACCEPT, - BOTCHAT_START_NEWS, - BOTCHAT_START_CREATE_GUILD, - BOTCHAT_END, - BOTCHAT_FORCE_END, - BOTCHAT_START_CHOOSE_DUTY, - BOTCHAT_NEXT_PAGE_DUTY, - BOTCHAT_DUTY_APPLY, - BOTCHAT_DUTY_CANCEL_APPLY, - BOTCHAT_START_TRADE_GUILD_OPTIONS, - BOTCHAT_BUY_GUILD_OPTION, - BOTCHAT_START_GUILD_RESEARCH, - BOTCHAT_DESTROY_BUILDING, - BOTCHAT_DYNCHAT_OPEN, - BOTCHAT_DYNCHAT_CLOSE, - BOTCHAT_DYNCHAT_SEND, - JOURNAL_INIT_COMPLETED_MISSIONS, - JOURNAL_UPDATE_COMPLETED_MISSIONS, - JOURNAL_MISSION_ABANDON, - JOURNAL_GROUP_MISSION_ABANDON, - JOURNAL_ADD_COMPASS, - JOURNAL_ADD_COMPASS_BOT, - JOURNAL_REMOVE_COMPASS, - JOURNAL_REMOVE_COMPASS_BOT, - STRING_MANAGER_SET_LANGUAGE, - STRING_MANAGER_PHRASE_SEND, - STRING_MANAGER_STRING_RQ, - STRING_MANAGER_STRING_RESP, - STRING_MANAGER_RELOAD_CACHE, - GUILD_CREATE, - GUILD_ABORT_CREATION, - GUILD_OPEN_GUILD_WINDOW, - GUILD_INVITATION, - GUILD_ACCEPT_INVITATION, - GUILD_REFUSE_INVITATION, - GUILD_JOIN_PROPOSAL, - GUILD_SET_GRADE, - GUILD_SET_LEADER, - GUILD_KICK_MEMBER, - GUILD_TELEPORT, - GUILD_ASCENSOR, - GUILD_FIRST_ASCENSOR_PAGE, - GUILD_NEXT_ASCENSOR_PAGE, - GUILD_LEAVE_ASCENSOR, - GUILD_QUIT, - GUILD_SET_PLAYER_TITLE, - GUILD_UPDATE_PLAYER_TITLE, - GUILD_USE_FEMALE_TITLES, - GUILD_PUT_MONEY, - GUILD_TAKE_MONEY, - GUILD_OPEN_INVENTORY, - GUILD_CLOSE_INVENTORY, - OUTPOST_GIVEUP_OUTPOST, - OUTPOST_SELECT, - OUTPOST_UNSELECT, - OUTPOST_DECLARE_WAR_START, - OUTPOST_DECLARE_WAR_ACK, - OUTPOST_DECLARE_WAR_VALIDATE, - OUTPOST_SET_DEF_PERIOD, - OUTPOST_SET_SQUAD, - OUTPOST_SET_SQUAD_SPAWN, - OUTPOST_INSERT_SQUAD, - OUTPOST_REMOVE_SQUAD, - OUTPOST_SET_SQUAD_CAPITAL, - OUTPOST_CHOOSE_SIDE, - OUTPOST_SIDE_CHOSEN, - OUTPOST_BANISH_PLAYER, - OUTPOST_BANISH_GUILD, - OUTPOST_BUY_BUILDING, - OUTPOST_DESTROY_BUILDING, - PHRASE_DELETE, - PHRASE_LEARN, - PHRASE_MEMORIZE, - PHRASE_FORGET, - PHRASE_EXECUTE, - PHRASE_EXECUTE_CYCLIC, - PHRASE_EXECUTE_FABER, - PHRASE_DOWNLOAD, - PHRASE_BUY, - PHRASE_CONFIRM_BUY, - PHRASE_BUY_SHEET, - PHRASE_CANCEL_LINK, - PHRASE_CANCEL_TOP, - PHRASE_CANCEL_ALL, - PHRASE_CRISTALIZE, - PHRASE_EXEC_CYCLIC_ACK, - PHRASE_EXEC_NEXT_ACK, - ITEM_INFO_GET, - ITEM_INFO_SET, - ITEM_INFO_REFRESH_VERSION, - MISSION_PREREQ_GET, - MISSION_PREREQ_SET, - MISSION_ENTER_CRITICAL, - MISSION_ASK_ENTER_CRITICAL, - MISSION_CLOSE_ENTER_CRITICAL, - MISSION_WAKE, - MISSION_GROUP_WAKE, - DUEL_ASK, - DUEL_ACCEPT, - DUEL_REFUSE, - DUEL_ABANDON, - DUEL_INVITATION, - DUEL_CANCEL_INVITATION, - PVP_CHALLENGE_ASK, - PVP_CHALLENGE_ACCEPT, - PVP_CHALLENGE_REFUSE, - PVP_CHALLENGE_ABANDON, - PVP_CHALLENGE_INVITATION, - PVP_CHALLENGE_CANCEL_INVITATION, - PVP_PVP_TAG, - PVP_SET_NEUTRAL_ALLEGIANCE, - PVP_SET_NEUTRAL_ALLEGIANCE_GUILD, - PVP_FACTION_PUSH_FACTION_WAR, - PVP_FACTION_POP_FACTION_WAR, - PVP_FACTION_FACTION_WARS, - ENCYCLOPEDIA_UPDATE, - ENCYCLOPEDIA_INIT, - USER_BARS, - USER_POPUP, - EVENT_SET_ITEM_CUSTOM_TEXT, - EVENT_DUMMY, - TOTEM_BUILD, - TOTEM_DUMMY, - MODULE_GATEWAY_FEOPEN, - MODULE_GATEWAY_GATEWAY_MSG, - MODULE_GATEWAY_FECLOSE, - SEASON_SET, - SEASON_DUMMY, - DM_GIFT_BEGIN, - DM_GIFT_VALIDATE, - RING_MISSION_MISSION_RING_SELECT, - RING_MISSION_DSS_DOWN, - NPC_ICON_GET_DESC, - NPC_ICON_SET_DESC, - NPC_ICON_SVR_EVENT_MIS_AVL, - NPC_ICON_SET_TIMER, - __LAST_ELEMENT - }; class ElementHead { private: @@ -423,9 +85,8 @@ public: }; private: static ReferentialMessageCore *singleton; - BitStream _encoder[Command::__LAST_ELEMENT]; + BitStream _encoder[ImpulseBase::Impulse::__LAST_ELEMENT]; Ref _decoder; - int get_command(String name); void read_referential_step(Dictionary step, Vector head, Ref root); public: @@ -441,6 +102,4 @@ public: int read_command(Ref msgin); }; -VARIANT_ENUM_CAST(ReferentialMessageCore::Command); - #endif \ No newline at end of file diff --git a/modules/referentialmessage/register_types.cpp b/modules/referentialmessage/register_types.cpp index 25bf3d6..d97de42 100644 --- a/modules/referentialmessage/register_types.cpp +++ b/modules/referentialmessage/register_types.cpp @@ -8,8 +8,11 @@ void register_referentialmessage_types() { ClassDB::register_class(); ClassDB::register_class(); + // Initialize singleton + ReferentialMessageCore::get_singleton(); } void unregister_referentialmessage_types() { - // Nothing to do here in this example. + // Delete singleton + ReferentialMessageCore::clear_session(); }