summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2016-06-13 15:31:44 +0300
committerJoseph Botosh <rumly111@gmail.com>2016-06-15 02:17:45 +0300
commit38c20e9b5992fff9239fb17ee8cd8cc262d2d439 (patch)
treee793271505c9cf8cdfbd14aaca8f865b53d51fa1 /src/emap/init.c
parent54c9c5edbc0b134faa3ddd37dd2bfdfc9a3fec41 (diff)
downloadevol-hercules-38c20e9b5992fff9239fb17ee8cd8cc262d2d439.tar.gz
evol-hercules-38c20e9b5992fff9239fb17ee8cd8cc262d2d439.tar.bz2
evol-hercules-38c20e9b5992fff9239fb17ee8cd8cc262d2d439.tar.xz
evol-hercules-38c20e9b5992fff9239fb17ee8cd8cc262d2d439.zip
add hashtable functions
htnew, htdelete, htput, htget, htclear, htsize htiterator, htinextkey, hticheck, htidelete
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index d75f2c2..3a586dd 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -49,6 +49,7 @@
#include "emap/config.h"
#include "emap/craft.h"
#include "emap/craftconf.h"
+#include "emap/hashtable.h"
#include "emap/itemdb.h"
#include "emap/lang.h"
#include "emap/mail.h"
@@ -84,6 +85,7 @@ HPExport void plugin_init (void)
{
isInit = false;
status_init();
+ htreg_init();
addAtcommand("setskill", setSkill);
addAtcommand("slide", slide);
@@ -155,6 +157,16 @@ HPExport void plugin_init (void)
addScriptCommand("setskin", "s", setSkin);
addScriptCommand("emotion", "i??", emotion);
addScriptCommand("setlook", "ii", setLook);
+ addScriptCommand("htnew", "", htNew);
+ addScriptCommand("htget", "is?", htGet);
+ addScriptCommand("htput", "isv", htPut);
+ addScriptCommand("htclear", "i", htClear);
+ addScriptCommand("htdelete", "i", htDelete);
+ addScriptCommand("htsize", "i", htSize);
+ addScriptCommand("htiterator", "i", htIterator);
+ addScriptCommand("htinextkey", "i", htiNextKey);
+ addScriptCommand("hticheck", "i", htiCheck);
+ addScriptCommand("htidelete", "i", htiDelete);
do_init_langs();
@@ -276,6 +288,7 @@ HPExport void plugin_init (void)
HPExport void server_preinit (void)
{
interfaces_init_common();
+ htreg_defaults();
setDefaultMap();
addMapInterConf("default_map", config_default_map);
@@ -301,5 +314,6 @@ HPExport void plugin_final (void)
do_final_craft();
do_final_craftconf();
commonClean();
+ htreg_final();
isInit = false;
}