summaryrefslogtreecommitdiff
path: root/src/emap/clif.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-02 19:06:39 +0300
commit1fc6228436311da0d70f14176fe47f3e37f6faa6 (patch)
tree9434c90ab44ac55200daa199f524fa11f3168678 /src/emap/clif.h
parent00d1b8bf9fc3648730904b6f86696417f4445037 (diff)
downloadevol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.gz
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.bz2
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.tar.xz
evol-hercules-1fc6228436311da0d70f14176fe47f3e37f6faa6.zip
Update function hook prototypes for support new hercules.
Diffstat (limited to 'src/emap/clif.h')
-rw-r--r--src/emap/clif.h108
1 files changed, 68 insertions, 40 deletions
diff --git a/src/emap/clif.h b/src/emap/clif.h
index 2b95249..d396d98 100644
--- a/src/emap/clif.h
+++ b/src/emap/clif.h
@@ -4,54 +4,82 @@
#ifndef EVOL_MAP_CLIF
#define EVOL_MAP_CLIF
-void eclif_quest_send_list(TBL_PC *sd);
-void eclif_quest_add(TBL_PC *sd, struct quest *qd);
-void eclif_charnameack(int *fdPtr, struct block_list *bl);
-void eclif_getareachar_unit_post(TBL_PC* sd, struct block_list *bl);
-bool eclif_spawn_post(bool retVal, struct block_list *bl);
-void eclif_sendlook(struct block_list *bl, int *id, int *type,
- int *val, int *val2, enum send_target *target);
-bool eclif_send(const void* buf, int *len, struct block_list* bl, enum send_target *type);
-void eclif_set_unit_idle(struct block_list* bl, TBL_PC *tsd,
- enum send_target *target);
-int eclif_send_actual(int *fd, void *buf, int *len);
-
+void eclif_quest_send_list_pre(TBL_PC **sdPtr);
+void eclif_quest_add(TBL_PC *sd,
+ struct quest *qd);
+void eclif_quest_add_pre(TBL_PC **sdPtr,
+ struct quest **qdPtr);
+void eclif_charnameack_pre(int *fdPtr,
+ struct block_list **blPtr);
+void eclif_getareachar_unit_post(TBL_PC *sd,
+ struct block_list *bl);
+bool eclif_spawn_post(bool retVal,
+ struct block_list *bl);
+void eclif_sendlook_pre(struct block_list **blPtr,
+ int *id,
+ int *type,
+ int *val,
+ int *val2,
+ enum send_target *target);
+bool eclif_send_pre(const void **bufPtr,
+ int *len,
+ struct block_list **blPtr,
+ enum send_target *type);
+void eclif_set_unit_idle_pre(struct block_list **blPtr,
+ TBL_PC **tsdPtr,
+ enum send_target *target);
+int eclif_send_actual_pre(int *fd,
+ void **bufPtr,
+ int *len);
void eclif_authok_post(TBL_PC *sd);
-void eclif_changemap_post(TBL_PC *sd, short *m, int *x, int *y);
-void eclif_set_unit_idle_post(struct block_list* bl, TBL_PC *tsd,
- enum send_target *target);
-void eclif_set_unit_walking_pre(struct block_list* bl, TBL_PC *tsd,
- struct unit_data* ud, enum send_target *target);
-void eclif_set_unit_walking_post(struct block_list* bl, TBL_PC *tsd,
- struct unit_data* ud, enum send_target *target);
+void eclif_changemap_post(TBL_PC *sd,
+ short m,
+ int x,
+ int y);
+void eclif_set_unit_idle_post(struct block_list *bl,
+ TBL_PC *tsd,
+ enum send_target target);
+void eclif_set_unit_walking_pre(struct block_list **blPtr,
+ TBL_PC **tsdPtr,
+ struct unit_data **udPtr,
+ enum send_target *target);
+void eclif_set_unit_walking_post(struct block_list *bl,
+ TBL_PC *tsd,
+ struct unit_data *ud,
+ enum send_target target);
int eclif_damage_post(int retVal,
- struct block_list* src,
- struct block_list* dst,
- int *sdelay,
- int *ddelay,
- int64 *in_damage,
- short *div,
- unsigned char *type,
- int64 *in_damage2);
-void eclif_move(struct unit_data *ud);
+ struct block_list *src,
+ struct block_list *dst,
+ int sdelay,
+ int ddelay,
+ int64 in_damage,
+ short div,
+ unsigned char type,
+ int64 in_damage2);
+void eclif_move_post(struct unit_data *ud);
void eclif_parse_LoadEndAck_pre(int *fdPtr,
- struct map_session_data *sd);
-void eclif_parse_LoadEndAck_post(int *fdPtr,
+ struct map_session_data **sdPtr);
+void eclif_parse_LoadEndAck_post(int fd,
struct map_session_data *sd);
-void eclif_changelook2(struct block_list *bl, int type, int val,
- struct item_data *id, int n);
-void eclif_getareachar_item(struct map_session_data *sd, struct flooritem_data *fitem);
-void eclif_dropflooritem(struct flooritem_data* fitem);
-void eclif_sendbgemblem_area(struct map_session_data *sd);
-void eclif_sendbgemblem_single(int *fdPtr, struct map_session_data *sd);
-void eclif_disp_message(struct block_list* src,
- const char* mes,
- enum send_target *targetPtr);
+void eclif_changelook2(struct block_list *bl,
+ int type,
+ int val,
+ struct item_data *id,
+ int n);
+void eclif_getareachar_item_pre(struct map_session_data **sdPtr,
+ struct flooritem_data **fitemPtr);
+void eclif_dropflooritem_pre(struct flooritem_data **fitemPtr);
+void eclif_sendbgemblem_area_pre(struct map_session_data **sdPtr);
+void eclif_sendbgemblem_single_pre(int *fdPtr,
+ struct map_session_data **sdPtr);
+void eclif_disp_message_pre(struct block_list **srcPtr,
+ const char **mesPtr,
+ enum send_target *targetPtr);
void eclif_set_unit_idle_old(struct block_list* bl,
struct map_session_data *tsd,
enum send_target target);
-void eclif_spawn_unit_pre(struct block_list* bl,
+void eclif_spawn_unit_pre(struct block_list **blPtr,
enum send_target *target);
#endif // EVOL_MAP_CLIF