summaryrefslogtreecommitdiff
path: root/src/char/int_mercenary.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-24 22:04:10 +0200
committerHaru <haru@dotalux.com>2018-06-30 01:51:11 +0200
commitccfd2de6387f7919ef0c83fc3e48eb18b0fc5427 (patch)
tree1c5d51884fe578bdf22e44d90ed8104c15648c06 /src/char/int_mercenary.h
parentbc7e7be46de608fb695e6e324dd76fb6c2a91eea (diff)
downloadhercules-ccfd2de6387f7919ef0c83fc3e48eb18b0fc5427.tar.gz
hercules-ccfd2de6387f7919ef0c83fc3e48eb18b0fc5427.tar.bz2
hercules-ccfd2de6387f7919ef0c83fc3e48eb18b0fc5427.tar.xz
hercules-ccfd2de6387f7919ef0c83fc3e48eb18b0fc5427.zip
Move some non-mapif functionality from the mapif interface to the inter_mercenary interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_mercenary.h')
-rw-r--r--src/char/int_mercenary.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char/int_mercenary.h b/src/char/int_mercenary.h
index 2b7c82dfa..6291bfcf6 100644
--- a/src/char/int_mercenary.h
+++ b/src/char/int_mercenary.h
@@ -22,6 +22,7 @@
#define CHAR_INT_MERCENARY_H
#include "common/hercules.h"
+#include "common/mmo.h"
struct mmo_charstatus;
@@ -35,6 +36,11 @@ struct inter_mercenary_interface {
int (*sql_init) (void);
void (*sql_final) (void);
int (*parse_frommap) (int fd);
+
+ bool (*create) (struct s_mercenary *merc);
+ bool (*save) (const struct s_mercenary *merc);
+ bool (*load) (int merc_id, int char_id, struct s_mercenary *merc);
+ bool (*delete) (int merc_id);
};
#ifdef HERCULES_CORE