summaryrefslogtreecommitdiff
path: root/src/char/mapif.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-08 00:33:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commitf324b507a9c0792abee2d31f6f3607077376619d (patch)
tree9a956650647f34b0842f076d5dc33760f5a17d2e /src/char/mapif.h
parent8e3ff5af507352d8c0c3f50469917f2b5ba231f9 (diff)
downloadhercules-f324b507a9c0792abee2d31f6f3607077376619d.tar.gz
hercules-f324b507a9c0792abee2d31f6f3607077376619d.tar.bz2
hercules-f324b507a9c0792abee2d31f6f3607077376619d.tar.xz
hercules-f324b507a9c0792abee2d31f6f3607077376619d.zip
Add most functions from int_homun.c to interfaces.
Diffstat (limited to 'src/char/mapif.h')
-rw-r--r--src/char/mapif.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/char/mapif.h b/src/char/mapif.h
index 60fd7e392..4a61db3fd 100644
--- a/src/char/mapif.h
+++ b/src/char/mapif.h
@@ -8,6 +8,7 @@
#include "char.h"
struct s_elemental;
+struct s_homunculus;
/* mapif interface */
struct mapif_interface {
@@ -78,6 +79,20 @@ struct mapif_interface {
int (*parse_GuildCastleDataLoad) (int fd, int len, int *castle_ids);
int (*parse_GuildCastleDataSave) (int fd, int castle_id, int index, int value);
int (*parse_GuildMasterChange) (int fd, int guild_id, const char* name, int len);
+ void (*homunculus_created) (int fd, int account_id, struct s_homunculus *sh, unsigned char flag);
+ void (*homunculus_deleted) (int fd, int flag);
+ void (*homunculus_loaded) (int fd, int account_id, struct s_homunculus *hd);
+ void (*homunculus_saved) (int fd, int account_id, bool flag);
+ void (*homunculus_renamed) (int fd, int account_id, int char_id, unsigned char flag, char* name);
+ bool (*homunculus_save) (struct s_homunculus* hd);
+ bool (*homunculus_load) (int homun_id, struct s_homunculus* hd);
+ bool (*homunculus_delete) (int homun_id);
+ bool (*homunculus_rename) (char *name);
+ void (*parse_homunculus_create) (int fd, int len, int account_id, struct s_homunculus* phd);
+ void (*parse_homunculus_delete) (int fd, int homun_id);
+ void (*parse_homunculus_load) (int fd, int account_id, int homun_id);
+ void (*parse_homunculus_save) (int fd, int len, int account_id, struct s_homunculus* phd);
+ void (*parse_homunculus_rename) (int fd, int account_id, int char_id, char* name);
} mapif_s;
struct mapif_interface *mapif;