diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-07 20:58:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | 67e60992dbe7dc855d89a9443249ad82f6268f2f (patch) | |
tree | 64237ba927443a32dfa509cc7f3801f2ac513151 /src/char/mapif.h | |
parent | 9d6efc2567484d5f218f56de2ad0757ea71d0c1d (diff) | |
download | hercules-67e60992dbe7dc855d89a9443249ad82f6268f2f.tar.gz hercules-67e60992dbe7dc855d89a9443249ad82f6268f2f.tar.bz2 hercules-67e60992dbe7dc855d89a9443249ad82f6268f2f.tar.xz hercules-67e60992dbe7dc855d89a9443249ad82f6268f2f.zip |
Add most functions from int_elemental.c to interfaces.
Diffstat (limited to 'src/char/mapif.h')
-rw-r--r-- | src/char/mapif.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/char/mapif.h b/src/char/mapif.h index 6ba6e5924..16c8627b1 100644 --- a/src/char/mapif.h +++ b/src/char/mapif.h @@ -7,6 +7,8 @@ #include "char.h" +struct s_elemental; + /* mapif interface */ struct mapif_interface { void (*ban) (int id, unsigned int flag, int status); @@ -31,6 +33,16 @@ struct mapif_interface { void (*parse_auction_close) (int fd); void (*auction_bid) (int fd, int char_id, int bid, unsigned char result); void (*parse_auction_bid) (int fd); + bool (*elemental_save) (struct s_elemental* ele); + bool (*elemental_load) (int ele_id, int char_id, struct s_elemental *ele); + bool (*elemental_delete) (int ele_id); + void (*elemental_send) (int fd, struct s_elemental *ele, unsigned char flag); + void (*parse_elemental_create) (int fd, struct s_elemental* ele); + void (*parse_elemental_load) (int fd, int ele_id, int char_id); + void (*elemental_deleted) (int fd, unsigned char flag); + void (*parse_elemental_delete) (int fd, int ele_id); + void (*elemental_saved) (int fd, unsigned char flag); + void (*parse_elemental_save) (int fd, struct s_elemental* ele); } mapif_s; struct mapif_interface *mapif; |