1 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL |
---|
2 | // For more information, see LICENCE in the main folder |
---|
3 | |
---|
4 | #ifndef _STORAGE_H_ |
---|
5 | #define _STORAGE_H_ |
---|
6 | |
---|
7 | //#include "../common/mmo.h" |
---|
8 | struct storage; |
---|
9 | struct guild_storage; |
---|
10 | struct item; |
---|
11 | //#include "map.h" |
---|
12 | struct map_session_data; |
---|
13 | |
---|
14 | int storage_storageopen(struct map_session_data *sd); |
---|
15 | int storage_storageadd(struct map_session_data *sd,int index,int amount); |
---|
16 | int storage_storageget(struct map_session_data *sd,int index,int amount); |
---|
17 | int storage_storageaddfromcart(struct map_session_data *sd,int index,int amount); |
---|
18 | int storage_storagegettocart(struct map_session_data *sd,int index,int amount); |
---|
19 | int storage_storageclose(struct map_session_data *sd); |
---|
20 | int do_init_storage(void); |
---|
21 | void do_final_storage(void); |
---|
22 | void do_reconnect_storage(void); |
---|
23 | struct storage* account2storage(int account_id); |
---|
24 | struct storage* account2storage2(int account_id); |
---|
25 | int storage_storage_quit(struct map_session_data *sd, int flag); |
---|
26 | int storage_storage_save(int account_id, int final); |
---|
27 | int storage_storage_saved(int account_id); //Ack from char server that guild store was saved. |
---|
28 | void storage_storage_dirty(struct map_session_data *sd); |
---|
29 | |
---|
30 | struct guild_storage* guild2storage(int guild_id); |
---|
31 | int guild_storage_delete(int guild_id); |
---|
32 | int storage_guild_storageopen(struct map_session_data *sd); |
---|
33 | int guild_storage_additem(struct map_session_data *sd,struct guild_storage *stor,struct item *item_data,int amount); |
---|
34 | int guild_storage_delitem(struct map_session_data *sd,struct guild_storage *stor,int n,int amount); |
---|
35 | int storage_guild_storageadd(struct map_session_data *sd,int index,int amount); |
---|
36 | int storage_guild_storageget(struct map_session_data *sd,int index,int amount); |
---|
37 | int storage_guild_storageaddfromcart(struct map_session_data *sd,int index,int amount); |
---|
38 | int storage_guild_storagegettocart(struct map_session_data *sd,int index,int amount); |
---|
39 | int storage_guild_storageclose(struct map_session_data *sd); |
---|
40 | int storage_guild_storage_quit(struct map_session_data *sd,int flag); |
---|
41 | int storage_guild_storagesave(int account_id, int guild_id, int flag); |
---|
42 | int storage_guild_storagesaved(int guild_id); //Ack from char server that guild store was saved. |
---|
43 | |
---|
44 | int storage_comp_item(const void *_i1, const void *_i2); |
---|
45 | //int storage_comp_item(const struct item* i1, const struct item* i2); |
---|
46 | void storage_sortitem(struct storage* stor); |
---|
47 | void storage_gsortitem(struct guild_storage* gstor); |
---|
48 | |
---|
49 | #endif /* _STORAGE_H_ */ |
---|