From 735e2e8340c9522ee5a9afdcad29d191da29c8d4 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 24 Jun 2018 20:30:19 +0200 Subject: Move some non-mapif functionality from the mapif interface to the inter_homunculus interface Signed-off-by: Haru --- src/char/int_homun.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/char/int_homun.h') 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 -- cgit v1.2.3-70-g09d2