summaryrefslogtreecommitdiff
path: root/src/char/int_homun.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-24 20:30:19 +0200
committerHaru <haru@dotalux.com>2018-06-30 01:51:10 +0200
commit735e2e8340c9522ee5a9afdcad29d191da29c8d4 (patch)
tree536e52409a69bb46b086cc977dddc7ecc3cf22f7 /src/char/int_homun.h
parentbfafa60e80f4a3241177c6d6e8849269b2aea166 (diff)
downloadhercules-735e2e8340c9522ee5a9afdcad29d191da29c8d4.tar.gz
hercules-735e2e8340c9522ee5a9afdcad29d191da29c8d4.tar.bz2
hercules-735e2e8340c9522ee5a9afdcad29d191da29c8d4.tar.xz
hercules-735e2e8340c9522ee5a9afdcad29d191da29c8d4.zip
Move some non-mapif functionality from the mapif interface to the inter_homunculus interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_homun.h')
-rw-r--r--src/char/int_homun.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/char/int_homun.h b/src/char/int_homun.h
index fbd9d0eb9..8eba66963 100644
--- a/src/char/int_homun.h
+++ b/src/char/int_homun.h
@@ -22,6 +22,7 @@
#define CHAR_INT_HOMUN_H
#include "common/hercules.h"
+#include "common/mmo.h"
/**
* inter_homunculus interface
@@ -30,6 +31,12 @@ struct inter_homunculus_interface {
int (*sql_init) (void);
void (*sql_final) (void);
int (*parse_frommap) (int fd);
+
+ bool (*create) (struct s_homunculus *hd);
+ bool (*save) (const struct s_homunculus *hd);
+ bool (*load) (int homun_id, struct s_homunculus* hd);
+ bool (*delete) (int homun_id);
+ bool (*rename) (const char *name);
};
#ifdef HERCULES_CORE