summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-12-20 23:42:37 +0100
committerHaruna <haru@dotalux.com>2014-12-20 23:42:37 +0100
commit1134e030744e67bca61f52dc97075f33932f7a38 (patch)
tree3c5f077c6537f7e165039d3bf68d8052253b7dc2 /src/map/itemdb.h
parentc4456ddbebccaca51ab040c60e3c586ed2cc0a10 (diff)
parent2c6fd58d633e4139a6f0f3b4bb0262e64fc957e2 (diff)
downloadhercules-1134e030744e67bca61f52dc97075f33932f7a38.tar.gz
hercules-1134e030744e67bca61f52dc97075f33932f7a38.tar.bz2
hercules-1134e030744e67bca61f52dc97075f33932f7a38.tar.xz
hercules-1134e030744e67bca61f52dc97075f33932f7a38.zip
Merge pull request #416 from 4144/plugext
Extend plugins support in item_data, mob_db, mob_data
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 23339790e..9a72c64ac 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -434,6 +434,10 @@ struct item_data {
/* TODO add a pointer to some sort of (struct extra) and gather all the not-common vals into it to save memory */
struct item_group *group;
struct item_package *package;
+
+ /* HPM Custom Struct */
+ struct HPluginData **hdata;
+ unsigned int hdatac;
};
struct item_combo {
@@ -600,6 +604,7 @@ struct itemdb_interface {
void (*read_combos) ();
int (*gendercheck) (struct item_data *id);
int (*validate_entry) (struct item_data *entry, int n, const char *source);
+ void (*readdb_additional_fields) (int itemid, config_setting_t *it, int n, const char *source);
int (*readdb_sql_sub) (Sql *handle, int n, const char *source);
int (*readdb_libconfig_sub) (config_setting_t *it, int n, const char *source);
int (*readdb_libconfig) (const char *filename);