diff options
author | Haru <haru@dotalux.com> | 2018-06-25 00:04:03 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-06-30 01:51:11 +0200 |
commit | a72fda7c66703e3a33be0438497ac0c6155c4602 (patch) | |
tree | dab792cc2df4e54cb07ee9f5a9344b538685b01d /src/char/int_party.h | |
parent | f071f91664ac5b6ed31591c33c001bcf6a75a53f (diff) | |
download | hercules-a72fda7c66703e3a33be0438497ac0c6155c4602.tar.gz hercules-a72fda7c66703e3a33be0438497ac0c6155c4602.tar.bz2 hercules-a72fda7c66703e3a33be0438497ac0c6155c4602.tar.xz hercules-a72fda7c66703e3a33be0438497ac0c6155c4602.zip |
Move some non-mapif functionality from the mapif interface to the inter_party interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_party.h')
-rw-r--r-- | src/char/int_party.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/char/int_party.h b/src/char/int_party.h index 0e1215eea..b9a888cca 100644 --- a/src/char/int_party.h +++ b/src/char/int_party.h @@ -60,9 +60,15 @@ struct inter_party_interface { int (*check_exp_share) (struct party_data *p); int (*check_empty) (struct party_data *p); int (*parse_frommap) (int fd); - int (*leave) (int party_id,int account_id, int char_id); + bool (*leave) (int party_id,int account_id, int char_id); int (*CharOnline) (int char_id, int party_id); int (*CharOffline) (int char_id, int party_id); + struct party_data *(*create) (const char *name, int item, int item2, const struct party_member *leader); + bool (*add_member) (int party_id, const struct party_member *member); + bool (*change_option) (int party_id, int account_id, int exp, int item, int map_fd); + bool (*change_map) (int party_id, int account_id, int char_id, unsigned short map, int online, unsigned int lv); + bool (*disband) (int party_id); + bool (*change_leader) (int party_id, int account_id, int char_id); }; #ifdef HERCULES_CORE |