summaryrefslogtreecommitdiff
path: root/src/map/storage.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-23 16:35:42 -0300
committershennetsind <ind@henn.et>2013-06-23 16:35:42 -0300
commitfcba8a2161a392369db99ab9a516a24470c54796 (patch)
treedc223cbd60e53b57eee6ff5e03a3a6bfea76e516 /src/map/storage.h
parenta48f523555f02b4245cfc0313cb35f8a332cac50 (diff)
downloadhercules-fcba8a2161a392369db99ab9a516a24470c54796.tar.gz
hercules-fcba8a2161a392369db99ab9a516a24470c54796.tar.bz2
hercules-fcba8a2161a392369db99ab9a516a24470c54796.tar.xz
hercules-fcba8a2161a392369db99ab9a516a24470c54796.zip
Official Item Group/Package/Chain
http://hercules.ws/board/topic/1244-official-item-grouppackagechain/ Also Further implemented itemdb.c/storage.c interfaces, and a minor update to db2sql plugin. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/storage.h')
-rw-r--r--src/map/storage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/storage.h b/src/map/storage.h
index 058b980b1..fc05ef06c 100644
--- a/src/map/storage.h
+++ b/src/map/storage.h
@@ -9,6 +9,7 @@ struct storage_data;
struct guild_storage;
struct item;
struct map_session_data;
+struct DBMap;
struct storage_interface {
int (*init) (void);
@@ -20,6 +21,7 @@ struct storage_interface {
int (*open) (struct map_session_data *sd);
int (*add) (struct map_session_data *sd,int index,int amount);
int (*get) (struct map_session_data *sd,int index,int amount);
+ int (*additem) (struct map_session_data* sd, struct item* item_data, int amount);
int (*addfromcart) (struct map_session_data *sd,int index,int amount);
int (*gettocart) (struct map_session_data *sd,int index,int amount);
void (*close) (struct map_session_data *sd);
@@ -28,6 +30,8 @@ struct storage_interface {
struct storage_interface *storage;
struct guild_storage_interface {
+ struct DBMap* db; // int guild_id -> struct guild_storage*
+ /* */
struct guild_storage *(*id2storage) (int guild_id);
struct guild_storage *(*id2storage2) (int guild_id);
int (*delete) (int guild_id);