summaryrefslogtreecommitdiff
path: root/src/map/mob.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-07 18:32:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-19 21:52:27 +0300
commit3feef93f71b52c90ff0ef46af65962d55ef37fed (patch)
treed59ddce86dc88b76f58e812ce4c7b05d5a6aec75 /src/map/mob.h
parentcffb68c6ee66227327e128f86cde8aa843e273d6 (diff)
downloadhercules-3feef93f71b52c90ff0ef46af65962d55ef37fed.tar.gz
hercules-3feef93f71b52c90ff0ef46af65962d55ef37fed.tar.bz2
hercules-3feef93f71b52c90ff0ef46af65962d55ef37fed.tar.xz
hercules-3feef93f71b52c90ff0ef46af65962d55ef37fed.zip
Add support for mob_db in conf format.
Diffstat (limited to 'src/map/mob.h')
-rw-r--r--src/map/mob.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index bb26258c6..c20453cde 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -363,10 +363,16 @@ struct mob_interface {
int (*clone_delete) (struct mob_data *md);
unsigned int (*drop_adjust) (int baserate, int rate_adjust, unsigned short rate_min, unsigned short rate_max);
void (*item_dropratio_adjust) (int nameid, int mob_id, int *rate_adjust);
- bool (*parse_dbrow) (char **str);
- bool (*readdb_sub) (char *fields[], int columns, int current);
void (*readdb) (void);
- int (*read_sqldb) (void);
+ bool (*lookup_const) (const config_setting_t *it, const char *name, int *value);
+ bool (*get_const) (const config_setting_t *it, int *value);
+ int (*read_libconfig) (const char *filename);
+ void (*read_db_additional_fields) (struct mob_db *entry, int class_, config_setting_t *it, int n, const char *source);
+ bool (*read_db_sub) (config_setting_t *mobt, int id, const char *source);
+ void (*read_db_drops_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
+ void (*read_db_mvpdrops_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
+ int (*read_db_mode_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
+ void (*read_db_stats_sub) (struct mob_db *entry, struct status_data *mstatus, int class_, config_setting_t *t);
void (*name_constants) (void);
bool (*readdb_mobavail) (char *str[], int columns, int current);
int (*read_randommonster) (void);