diff options
author | Haru <haru@dotalux.com> | 2015-01-19 13:37:45 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-24 00:46:07 +0100 |
commit | d2b8de52e56914d8135c5209fb3e2a7339065b94 (patch) | |
tree | 21b64227afaa3b3a28f071da7212f8b26108f83b /src/map/quest.h | |
parent | 21e3b27ba67b74bc106eb83e26d23255a363ce59 (diff) | |
download | hercules-d2b8de52e56914d8135c5209fb3e2a7339065b94.tar.gz hercules-d2b8de52e56914d8135c5209fb3e2a7339065b94.tar.bz2 hercules-d2b8de52e56914d8135c5209fb3e2a7339065b94.tar.xz hercules-d2b8de52e56914d8135c5209fb3e2a7339065b94.zip |
Converted quest_db to libconfig
- This allows for more fields to be easily added to the file (coming
soon).
- Special thanks to Dastgir.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/quest.h')
-rw-r--r-- | src/map/quest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/quest.h b/src/map/quest.h index f988d0c61..ec01e295e 100644 --- a/src/map/quest.h +++ b/src/map/quest.h @@ -7,6 +7,7 @@ #include "map.h" // TBL_PC #include "../common/cbasetypes.h" +#include "../common/conf.h" #include "../common/mmo.h" // MAX_QUEST_OBJECTIVES #define MAX_QUEST_DB (60355+1) // Highest quest ID + 1 @@ -46,6 +47,7 @@ struct quest_interface { int (*check) (TBL_PC *sd, int quest_id, enum quest_check_type type); void (*clear) (void); int (*read_db) (void); + struct quest_db *(*read_db_sub) (config_setting_t *cs, int n, const char *source); }; struct quest_interface *quest; |