diff options
author | Haruna <haru@dotalux.com> | 2014-11-15 17:33:46 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-15 17:33:46 +0100 |
commit | 27cd926dd2f41e008da738e8d9259cd0c33a2f77 (patch) | |
tree | fc62c34bea003f6d5839996474485d51ddf98ad6 /src/common | |
parent | 47565d423f40f4fbbbb032dcc6fa2f6670bfafab (diff) | |
parent | 35d190c1927d4405507490ac1a34c3e324d47762 (diff) | |
download | hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.gz hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.bz2 hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.xz hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.zip |
Merge pull request #389 from 4144/confplugins
Add support for plugin parameters in different config files (before was only battle config)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/HPMi.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/common/HPMi.h b/src/common/HPMi.h index a7435b437..0f2bed10d 100644 --- a/src/common/HPMi.h +++ b/src/common/HPMi.h @@ -84,7 +84,13 @@ enum HPluginDataTypes { /* used in macros and conf storage */ enum HPluginConfType { - HPCT_BATTLE, /* battle-conf (map-server */ + HPCT_BATTLE, /* battle-conf (map-server */ + HPCT_LOGIN, /* login-server.conf (login-server) */ + HPCT_CHAR, /* char-server.conf (char-server) */ + HPCT_CHAR_INTER, /* inter-server.conf (char-server) */ + HPCT_MAP_INTER, /* inter-server.conf (map-server) */ + HPCT_LOG, /* logs.conf (map-server) */ + HPCT_SCRIPT, /* script.conf (map-server) */ HPCT_MAX, }; @@ -157,6 +163,18 @@ enum HPluginConfType { #define addPacket(cmd,len,receive,point) HPMi->addPacket(cmd,len,receive,point,HPMi->pid) /* HPMi->addBattleConf */ #define addBattleConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_BATTLE,bcname,funcname) +/* HPMi->addLogin */ +#define addLoginConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_LOGIN,bcname,funcname) +/* HPMi->addChar */ +#define addCharConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_CHAR,bcname,funcname) +/* HPMi->addCharInter */ +#define addCharInterConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_CHAR_INTER,bcname,funcname) +/* HPMi->addMapInter */ +#define addMapInterConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_MAP_INTER,bcname,funcname) +/* HPMi->addLog */ +#define addLogConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_LOG,bcname,funcname) +/* HPMi->addScript */ +#define addScriptConf(bcname,funcname) HPMi->addConf(HPMi->pid,HPCT_SCRIPT,bcname,funcname) /* HPMi->addPCGPermission */ #define addGroupPermission(pcgname,maskptr) HPMi->addPCGPermission(HPMi->pid,pcgname,&maskptr) |