summaryrefslogtreecommitdiff
path: root/src/char/mapif.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-08 12:34:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commit7e6df4619270cbec689f4d6d73c5fc0498c2ed18 (patch)
tree627a223f0a29c392dd0c7a17977032198dce4155 /src/char/mapif.h
parent72427289b387df3394eeadf629d3510f60742970 (diff)
downloadhercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.tar.gz
hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.tar.bz2
hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.tar.xz
hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.zip
Add most functions from int_mercenary.c to interfaces.
Diffstat (limited to 'src/char/mapif.h')
-rw-r--r--src/char/mapif.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/char/mapif.h b/src/char/mapif.h
index ec177fcd1..511a40a68 100644
--- a/src/char/mapif.h
+++ b/src/char/mapif.h
@@ -9,6 +9,7 @@
struct s_elemental;
struct s_homunculus;
+struct s_mercenary;
struct mail_message;
/* mapif interface */
@@ -107,6 +108,16 @@ struct mapif_interface {
void (*parse_mail_return) (int fd);
void (*mail_send) (int fd, struct mail_message* msg);
void (*parse_mail_send) (int fd);
+ bool (*mercenary_save) (struct s_mercenary* merc);
+ bool (*mercenary_load) (int merc_id, int char_id, struct s_mercenary *merc);
+ bool (*mercenary_delete) (int merc_id);
+ void (*mercenary_send) (int fd, struct s_mercenary *merc, unsigned char flag);
+ void (*parse_mercenary_create) (int fd, struct s_mercenary* merc);
+ void (*parse_mercenary_load) (int fd, int merc_id, int char_id);
+ void (*mercenary_deleted) (int fd, unsigned char flag);
+ void (*parse_mercenary_delete) (int fd, int merc_id);
+ void (*mercenary_saved) (int fd, unsigned char flag);
+ void (*parse_mercenary_save) (int fd, struct s_mercenary* merc);
} mapif_s;
struct mapif_interface *mapif;