diff options
author | shennetsind <ind@henn.et> | 2013-04-22 18:28:18 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-22 18:28:18 -0300 |
commit | 19b8cbb835e867febb597b34187f6bbca48cbe7b (patch) | |
tree | 02ffe058dc91d2b79c81783cbd50afc295c25d76 /src/map/vending.h | |
parent | d8d392b0a37c122b303d04e92ebc7fb826e53bce (diff) | |
download | hercules-19b8cbb835e867febb597b34187f6bbca48cbe7b.tar.gz hercules-19b8cbb835e867febb597b34187f6bbca48cbe7b.tar.bz2 hercules-19b8cbb835e867febb597b34187f6bbca48cbe7b.tar.xz hercules-19b8cbb835e867febb597b34187f6bbca48cbe7b.zip |
Hercules April 22 MEGA-ULTRA-LONG Patch~!
http://hercules.ws/board/topic/470-hercules-april-22-patch/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/vending.h')
-rw-r--r-- | src/map/vending.h | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/map/vending.h b/src/map/vending.h index 402df5579..0148deb71 100644 --- a/src/map/vending.h +++ b/src/map/vending.h @@ -1,11 +1,12 @@ -// Copyright (c) Athena Dev Teams - Licensed under GNU GPL -// For more information, see LICENCE in the main folder +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// Portions Copyright (c) Athena Dev Teams #ifndef _VENDING_H_ #define _VENDING_H_ #include "../common/cbasetypes.h" -//#include "map.h" +#include "../common/db.h" struct map_session_data; struct s_search_store_search; @@ -15,11 +16,23 @@ struct s_vending { unsigned int value; //at wich price }; -void vending_closevending(struct map_session_data* sd); -void vending_openvending(struct map_session_data* sd, const char* message, const uint8* data, int count); -void vending_vendinglistreq(struct map_session_data* sd, int id); -void vending_purchasereq(struct map_session_data* sd, int aid, int uid, const uint8* data, int count); -bool vending_search(struct map_session_data* sd, unsigned short nameid); -bool vending_searchall(struct map_session_data* sd, const struct s_search_store_search* s); +struct vending_interface { + unsigned int next_id;/* next vender id */ + DBMap *db; + /* */ + void (*init) (void); + void (*final) (void); + /* */ + void (*close) (struct map_session_data* sd); + void (*open) (struct map_session_data* sd, const char* message, const uint8* data, int count); + void (*list) (struct map_session_data* sd, unsigned int id); + void (*purchase) (struct map_session_data* sd, int aid, unsigned int uid, const uint8* data, int count); + bool (*search) (struct map_session_data* sd, unsigned short nameid); + bool (*searchall) (struct map_session_data* sd, const struct s_search_store_search* s); +} vending_s; + +struct vending_interface * vending; + +void vending_defaults(void); #endif /* _VENDING_H_ */ |