diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-07 19:51:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | 9d6efc2567484d5f218f56de2ad0757ea71d0c1d (patch) | |
tree | c7bfa99e94e6e87d812b2f0a132f3a60933af1bf /src/char/mapif.c | |
parent | 8338483dd4c41bc9831bebc9d6dc1808247fc497 (diff) | |
download | hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.tar.gz hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.tar.bz2 hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.tar.xz hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.zip |
Add most functions from int_auction.c to interfaces.
Diffstat (limited to 'src/char/mapif.c')
-rw-r--r-- | src/char/mapif.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c index 7c807e21f..dfa8f437b 100644 --- a/src/char/mapif.c +++ b/src/char/mapif.c @@ -9,6 +9,7 @@ #include <stdlib.h> #include "char.h" +#include "int_auction.h" #include "../common/cbasetypes.h" #include "../common/mmo.h" #include "../common/random.h" @@ -27,6 +28,17 @@ int mapif_sendall(unsigned char *buf, unsigned int len); int mapif_sendallwos(int sfd, unsigned char *buf, unsigned int len); int mapif_send(int fd, unsigned char *buf, unsigned int len); void mapif_send_users_count(int users); +void mapif_auction_message(int char_id, unsigned char result); +void mapif_auction_sendlist(int fd, int char_id, short count, short pages, unsigned char *buf); +void mapif_parse_auction_requestlist(int fd); +void mapif_auction_register(int fd, struct auction_data *auction); +void mapif_parse_auction_register(int fd); +void mapif_auction_cancel(int fd, int char_id, unsigned char result); +void mapif_parse_auction_cancel(int fd); +void mapif_auction_close(int fd, int char_id, unsigned char result); +void mapif_parse_auction_close(int fd); +void mapif_auction_bid(int fd, int char_id, int bid, unsigned char result); +void mapif_parse_auction_bid(int fd); void mapif_defaults(void) { mapif = &mapif_s; @@ -42,4 +54,15 @@ void mapif_defaults(void) { mapif->sendallwos = mapif_sendallwos; mapif->send = mapif_send; mapif->send_users_count = mapif_send_users_count; + mapif->auction_message = mapif_auction_message; + mapif->auction_sendlist = mapif_auction_sendlist; + mapif->parse_auction_requestlist = mapif_parse_auction_requestlist; + mapif->auction_register = mapif_auction_register; + mapif->parse_auction_register = mapif_parse_auction_register; + mapif->auction_cancel = mapif_auction_cancel; + mapif->parse_auction_cancel = mapif_parse_auction_cancel; + mapif->auction_close = mapif_auction_close; + mapif->parse_auction_close = mapif_parse_auction_close; + mapif->auction_bid = mapif_auction_bid; + mapif->parse_auction_bid = mapif_parse_auction_bid; } |