summaryrefslogtreecommitdiff
path: root/src/emap/clif.h
blob: 1353cc7da3ea69e5cfe366ac2230c17c88272cc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers

#ifndef EVOL_MAP_CLIF
#define EVOL_MAP_CLIF

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 **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_post(struct unit_data *ud);
void eclif_parse_LoadEndAck_pre(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_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 **blPtr,
                          enum send_target *target);
void eclif_addcards_post(unsigned char *buf,
                         struct item *item);
void eclif_addcards2_post(unsigned short *cards,
                          struct item *item);
void eclif_useskill(struct block_list* bl,
                    int src_id,
                    int dst_id,
                    int dst_x,
                    int dst_y,
                    uint16 skill_id,
                    uint16 skill_lv,
                    int casttime);
void eclif_skillinfoblock_pre(struct map_session_data **sdPtr);
void eclif_addskill_pre(struct map_session_data **sdPtr,
                        int *idPtr);
void eclif_skillinfo_pre(struct map_session_data **sdPtr,
                         int *skill_idPtr,
                         int *infPtr);
void eclif_parse_WalkToXY(int fd,
                          struct map_session_data *sd) __attribute__((nonnull (2)));
void eclif_party_info_post(struct party_data *p,
                           struct map_session_data *sd);
void eclif_parse_NpcStringInput(int fd,
                                struct map_session_data* sd) __attribute__((nonnull (2)));
#endif  // EVOL_MAP_CLIF