From 7e6df4619270cbec689f4d6d73c5fc0498c2ed18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Nov 2014 12:34:30 +0300 Subject: Add most functions from int_mercenary.c to interfaces. --- src/char/mapif.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/char/mapif.h') 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; -- cgit v1.2.3-60-g2f50