summaryrefslogtreecommitdiff
path: root/src/char/mapif.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-08 20:27:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commita181f75908d065293685d5adc7c90726fa29c064 (patch)
treef06b4768551614f41862464f911c96253de1948e /src/char/mapif.h
parentf28739e8d1b08d871c8430b949246bb6a0090bc2 (diff)
downloadhercules-a181f75908d065293685d5adc7c90726fa29c064.tar.gz
hercules-a181f75908d065293685d5adc7c90726fa29c064.tar.bz2
hercules-a181f75908d065293685d5adc7c90726fa29c064.tar.xz
hercules-a181f75908d065293685d5adc7c90726fa29c064.zip
Add most functions from int_quest.c to interfaces.
Diffstat (limited to 'src/char/mapif.h')
-rw-r--r--src/char/mapif.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/char/mapif.h b/src/char/mapif.h
index 8c4c8922e..b67d07611 100644
--- a/src/char/mapif.h
+++ b/src/char/mapif.h
@@ -11,6 +11,7 @@ struct s_elemental;
struct s_homunculus;
struct s_mercenary;
struct s_pet;
+struct quest;
struct mail_message;
/* mapif interface */
@@ -151,6 +152,14 @@ struct mapif_interface {
int (*parse_LoadPet) (int fd);
int (*parse_SavePet) (int fd);
int (*parse_DeletePet) (int fd);
+ struct quest *(*quests_fromsql) (int char_id, int *count);
+ bool (*quest_delete) (int char_id, int quest_id);
+ bool (*quest_add) (int char_id, struct quest qd);
+ bool (*quest_update) (int char_id, struct quest qd);
+ void (*quest_save_ack) (int fd, int char_id, bool success);
+ int (*parse_quest_save) (int fd);
+ void (*send_quests) (int fd, int char_id, struct quest *tmp_questlog, int num_quests);
+ int (*parse_quest_load) (int fd);
} mapif_s;
struct mapif_interface *mapif;