diff options
author | shennetsind <ind@henn.et> | 2013-06-15 05:00:04 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-15 05:00:04 -0300 |
commit | cf78bebc95e3387cf7fbe0720825bacb95c1b61a (patch) | |
tree | e895ec5f3f9baa111476af18607ec292f06d9df6 /src/map/trade.h | |
parent | 1dd4882c00b82d9a2f138211dbc2c8c542e2af88 (diff) | |
parent | de3f4423058405636c76e05cd87a6eae0bfa7707 (diff) | |
download | hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.tar.gz hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.tar.bz2 hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.tar.xz hercules-cf78bebc95e3387cf7fbe0720825bacb95c1b61a.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/trade.h')
-rw-r--r-- | src/map/trade.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/map/trade.h b/src/map/trade.h index 6bb39936e..6bcefdb96 100644 --- a/src/map/trade.h +++ b/src/map/trade.h @@ -7,12 +7,19 @@ //#include "map.h" struct map_session_data; -void trade_traderequest(struct map_session_data *sd, struct map_session_data *target_sd); -void trade_tradeack(struct map_session_data *sd,int type); -void trade_tradeadditem(struct map_session_data *sd,short index,short amount); -void trade_tradeaddzeny(struct map_session_data *sd,int amount); -void trade_tradeok(struct map_session_data *sd); -void trade_tradecancel(struct map_session_data *sd); -void trade_tradecommit(struct map_session_data *sd); +struct trade_interface { + void (*request) (struct map_session_data *sd, struct map_session_data *target_sd); + void (*ack) (struct map_session_data *sd,int type); + int (*check_impossible) (struct map_session_data *sd); + int (*check) (struct map_session_data *sd, struct map_session_data *tsd); + void (*additem) (struct map_session_data *sd,short index,short amount); + void (*addzeny) (struct map_session_data *sd,int amount); + void (*ok) (struct map_session_data *sd); + void (*cancel) (struct map_session_data *sd); + void (*commit) (struct map_session_data *sd); +} trade_s; + +struct trade_interface *trade; +void trade_interface(void); #endif /* _TRADE_H_ */ |