diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-08 12:34:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | 7e6df4619270cbec689f4d6d73c5fc0498c2ed18 (patch) | |
tree | 627a223f0a29c392dd0c7a17977032198dce4155 /src/char/mapif.c | |
parent | 72427289b387df3394eeadf629d3510f60742970 (diff) | |
download | hercules-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.c')
-rw-r--r-- | src/char/mapif.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c index 58b47a6e4..5c53564f7 100644 --- a/src/char/mapif.c +++ b/src/char/mapif.c @@ -113,6 +113,16 @@ void mapif_mail_return(int fd, int char_id, int mail_id, int new_mail); void mapif_parse_mail_return(int fd); void mapif_mail_send(int fd, struct mail_message* msg); void mapif_parse_mail_send(int fd); +bool mapif_mercenary_save(struct s_mercenary* merc); +bool mapif_mercenary_load(int merc_id, int char_id, struct s_mercenary *merc); +bool mapif_mercenary_delete(int merc_id); +void mapif_mercenary_send(int fd, struct s_mercenary *merc, unsigned char flag); +void mapif_parse_mercenary_create(int fd, struct s_mercenary* merc); +void mapif_parse_mercenary_load(int fd, int merc_id, int char_id); +void mapif_mercenary_deleted(int fd, unsigned char flag); +void mapif_parse_mercenary_delete(int fd, int merc_id); +void mapif_mercenary_saved(int fd, unsigned char flag); +void mapif_parse_mercenary_save(int fd, struct s_mercenary* merc); void mapif_defaults(void) { mapif = &mapif_s; @@ -211,4 +221,14 @@ void mapif_defaults(void) { mapif->parse_mail_return = mapif_parse_mail_return; mapif->mail_send = mapif_mail_send; mapif->parse_mail_send = mapif_parse_mail_send; + mapif->mercenary_save = mapif_mercenary_save; + mapif->mercenary_load = mapif_mercenary_load; + mapif->mercenary_delete = mapif_mercenary_delete; + mapif->mercenary_send = mapif_mercenary_send; + mapif->parse_mercenary_create = mapif_parse_mercenary_create; + mapif->parse_mercenary_load = mapif_parse_mercenary_load; + mapif->mercenary_deleted = mapif_mercenary_deleted; + mapif->parse_mercenary_delete = mapif_parse_mercenary_delete; + mapif->mercenary_saved = mapif_mercenary_saved; + mapif->parse_mercenary_save = mapif_parse_mercenary_save; } |