summaryrefslogtreecommitdiff
path: root/src/char/int_quest.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-25 00:47:42 +0200
committerHaru <haru@dotalux.com>2018-06-30 01:51:12 +0200
commit7772ec2ad36d01b7a73ab320ac740eb99f7eafbf (patch)
treed1b7b991bfd5272259b615b94d9f240db5a59fa4 /src/char/int_quest.h
parent401b579bb064c180a5e17196fcd5b420bc3d49ee (diff)
downloadhercules-7772ec2ad36d01b7a73ab320ac740eb99f7eafbf.tar.gz
hercules-7772ec2ad36d01b7a73ab320ac740eb99f7eafbf.tar.bz2
hercules-7772ec2ad36d01b7a73ab320ac740eb99f7eafbf.tar.xz
hercules-7772ec2ad36d01b7a73ab320ac740eb99f7eafbf.zip
Move some non-mapif functionality from the mapif interface to the inter_quest interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_quest.h')
-rw-r--r--src/char/int_quest.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/char/int_quest.h b/src/char/int_quest.h
index 6f34645bf..e71afc561 100644
--- a/src/char/int_quest.h
+++ b/src/char/int_quest.h
@@ -28,6 +28,12 @@
**/
struct inter_quest_interface {
int (*parse_frommap) (int fd);
+
+ struct quest *(*fromsql) (int char_id, int *count);
+ bool (*delete) (int char_id, int quest_id);
+ bool (*add) (int char_id, struct quest qd);
+ bool (*update) (int char_id, struct quest qd);
+ bool (*save) (int char_id, const struct quest *new_qd, int new_n);
};
#ifdef HERCULES_CORE