diff options
author | Hercules.ws <dev@herc.ws> | 2018-07-28 03:22:23 +0200 |
---|---|---|
committer | HerculesWSAPI <dev@herc.ws> | 2018-07-28 03:22:23 +0200 |
commit | bc42485f6fde4d70b8b25fe2a8bfc41c9906d3a0 (patch) | |
tree | e62e3c74bac9cc885fbe20785b0481dfe3179fcf /src/common | |
parent | 621611e6e90af0c5551b4daca75ba1267d8e8478 (diff) | |
download | hercules-bc42485f6fde4d70b8b25fe2a8bfc41c9906d3a0.tar.gz hercules-bc42485f6fde4d70b8b25fe2a8bfc41c9906d3a0.tar.bz2 hercules-bc42485f6fde4d70b8b25fe2a8bfc41c9906d3a0.tar.xz hercules-bc42485f6fde4d70b8b25fe2a8bfc41c9906d3a0.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPMDataCheck.h | 22 | ||||
-rw-r--r-- | src/common/HPMSymbols.inc.h | 14 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/common/HPMDataCheck.h b/src/common/HPMDataCheck.h index 7f96954bc..3784661f6 100644 --- a/src/common/HPMDataCheck.h +++ b/src/common/HPMDataCheck.h @@ -57,6 +57,11 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { #else #define CHAR_INTER_H #endif // CHAR_INTER_H + #ifdef CHAR_INT_ACHIEVEMENT_H + { "inter_achievement_interface", sizeof(struct inter_achievement_interface), SERVER_TYPE_CHAR }, + #else + #define CHAR_INT_ACHIEVEMENT_H + #endif // CHAR_INT_ACHIEVEMENT_H #ifdef CHAR_INT_AUCTION_H { "inter_auction_interface", sizeof(struct inter_auction_interface), SERVER_TYPE_CHAR }, #else @@ -199,7 +204,9 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { #define COMMON_MEMMGR_H #endif // COMMON_MEMMGR_H #ifdef COMMON_MMO_H + { "achievement", sizeof(struct achievement), SERVER_TYPE_ALL }, { "auction_data", sizeof(struct auction_data), SERVER_TYPE_ALL }, + { "char_achievements", sizeof(struct char_achievements), SERVER_TYPE_ALL }, { "clan", sizeof(struct clan), SERVER_TYPE_ALL }, { "clan_buff", sizeof(struct clan_buff), SERVER_TYPE_ALL }, { "clan_member", sizeof(struct clan_member), SERVER_TYPE_ALL }, @@ -371,6 +378,15 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { #else #define LOGIN_LOGIN_H #endif // LOGIN_LOGIN_H + #ifdef MAP_ACHIEVEMENT_H + { "achievement_data", sizeof(struct achievement_data), SERVER_TYPE_MAP }, + { "achievement_interface", sizeof(struct achievement_interface), SERVER_TYPE_MAP }, + { "achievement_objective", sizeof(struct achievement_objective), SERVER_TYPE_MAP }, + { "achievement_reward_item", sizeof(struct achievement_reward_item), SERVER_TYPE_MAP }, + { "achievement_rewards", sizeof(struct achievement_rewards), SERVER_TYPE_MAP }, + #else + #define MAP_ACHIEVEMENT_H + #endif // MAP_ACHIEVEMENT_H #ifdef MAP_ATCOMMAND_H { "AliasInfo", sizeof(struct AliasInfo), SERVER_TYPE_MAP }, { "AtCommandInfo", sizeof(struct AtCommandInfo), SERVER_TYPE_MAP }, @@ -690,9 +706,13 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { { "PACKET_ZC_USE_ITEM_ACK", sizeof(struct PACKET_ZC_USE_ITEM_ACK), SERVER_TYPE_MAP }, { "PACKET_ZC_WRITE_MAIL_RESULT", sizeof(struct PACKET_ZC_WRITE_MAIL_RESULT), SERVER_TYPE_MAP }, { "ZC_PROGRESS_ACTOR", sizeof(struct ZC_PROGRESS_ACTOR), SERVER_TYPE_MAP }, + { "ach_list_info", sizeof(struct ach_list_info), SERVER_TYPE_MAP }, { "mail_item", sizeof(struct mail_item), SERVER_TYPE_MAP }, { "maillistinfo", sizeof(struct maillistinfo), SERVER_TYPE_MAP }, { "packet_ZC_REFUSE_LOGIN", sizeof(struct packet_ZC_REFUSE_LOGIN), SERVER_TYPE_MAP }, + { "packet_achievement_list", sizeof(struct packet_achievement_list), SERVER_TYPE_MAP }, + { "packet_achievement_reward_ack", sizeof(struct packet_achievement_reward_ack), SERVER_TYPE_MAP }, + { "packet_achievement_update", sizeof(struct packet_achievement_update), SERVER_TYPE_MAP }, { "packet_additem", sizeof(struct packet_additem), SERVER_TYPE_MAP }, { "packet_authok", sizeof(struct packet_authok), SERVER_TYPE_MAP }, { "packet_banking_check", sizeof(struct packet_banking_check), SERVER_TYPE_MAP }, @@ -740,6 +760,8 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { { "packet_quest_list_info", sizeof(struct packet_quest_list_info), SERVER_TYPE_MAP }, { "packet_quest_update_header", sizeof(struct packet_quest_update_header), SERVER_TYPE_MAP }, { "packet_quest_update_hunt", sizeof(struct packet_quest_update_hunt), SERVER_TYPE_MAP }, + { "packet_reqname_ack", sizeof(struct packet_reqname_ack), SERVER_TYPE_MAP }, + { "packet_reqnameall_ack", sizeof(struct packet_reqnameall_ack), SERVER_TYPE_MAP }, { "packet_roulette_close_ack", sizeof(struct packet_roulette_close_ack), SERVER_TYPE_MAP }, { "packet_roulette_generate_ack", sizeof(struct packet_roulette_generate_ack), SERVER_TYPE_MAP }, { "packet_roulette_info_ack", sizeof(struct packet_roulette_info_ack), SERVER_TYPE_MAP }, diff --git a/src/common/HPMSymbols.inc.h b/src/common/HPMSymbols.inc.h index 70de5cdef..15acb1b06 100644 --- a/src/common/HPMSymbols.inc.h +++ b/src/common/HPMSymbols.inc.h @@ -32,6 +32,9 @@ struct HCache_interface *HCache; #ifdef LOGIN_ACCOUNT_H /* account */ struct account_interface *account; #endif // LOGIN_ACCOUNT_H +#ifdef MAP_ACHIEVEMENT_H /* achievement */ +struct achievement_interface *achievement; +#endif // MAP_ACHIEVEMENT_H #ifdef MAP_ATCOMMAND_H /* atcommand */ struct atcommand_interface *atcommand; #endif // MAP_ATCOMMAND_H @@ -101,6 +104,9 @@ struct homunculus_interface *homun; #ifdef MAP_INSTANCE_H /* instance */ struct instance_interface *instance; #endif // MAP_INSTANCE_H +#ifdef CHAR_INT_ACHIEVEMENT_H /* inter_achievement */ +struct inter_achievement_interface *inter_achievement; +#endif // CHAR_INT_ACHIEVEMENT_H #ifdef CHAR_INT_AUCTION_H /* inter_auction */ struct inter_auction_interface *inter_auction; #endif // CHAR_INT_AUCTION_H @@ -305,6 +311,10 @@ HPExport const char *HPM_shared_symbols(int server_type) if ((server_type&(SERVER_TYPE_LOGIN)) != 0 && !HPM_SYMBOL("account", account)) return "account"; #endif // LOGIN_ACCOUNT_H +#ifdef MAP_ACHIEVEMENT_H /* achievement */ + if ((server_type&(SERVER_TYPE_MAP)) != 0 && !HPM_SYMBOL("achievement", achievement)) + return "achievement"; +#endif // MAP_ACHIEVEMENT_H #ifdef MAP_ATCOMMAND_H /* atcommand */ if ((server_type&(SERVER_TYPE_MAP)) != 0 && !HPM_SYMBOL("atcommand", atcommand)) return "atcommand"; @@ -397,6 +407,10 @@ HPExport const char *HPM_shared_symbols(int server_type) if ((server_type&(SERVER_TYPE_MAP)) != 0 && !HPM_SYMBOL("instance", instance)) return "instance"; #endif // MAP_INSTANCE_H +#ifdef CHAR_INT_ACHIEVEMENT_H /* inter_achievement */ + if ((server_type&(SERVER_TYPE_CHAR)) != 0 && !HPM_SYMBOL("inter_achievement", inter_achievement)) + return "inter_achievement"; +#endif // CHAR_INT_ACHIEVEMENT_H #ifdef CHAR_INT_AUCTION_H /* inter_auction */ if ((server_type&(SERVER_TYPE_CHAR)) != 0 && !HPM_SYMBOL("inter_auction", inter_auction)) return "inter_auction"; |