summaryrefslogtreecommitdiff
path: root/src/emap/send.h
blob: 7e15a039fd1693cbb04cdf14e6d6f70a150c26d1 (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
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers

#ifndef EVOL_MAP_SEND
#define EVOL_MAP_SEND

enum send_target;

struct block_list;
struct homun_data;
struct item_data;
struct map_session_data;
struct unit_data;

void send_npccommand (struct map_session_data *sd, int npcId, int cmd);
void send_npccommand2 (struct map_session_data *sd, int npcId, int cmd, int id, int x, int y);
void send_local_message(int fd, struct block_list* bl, const char* msg);
void send_changelook(struct map_session_data* sd, struct map_session_data* sd2, int fd,
                     int id, int type, int val, int val2,
                     struct item_data *data, int n);
void send_mapmask(int fd, int mask);
void send_mapmask_brodcast(const int map, const int mask);
void send_mob_info(struct block_list* bl1, struct block_list* bl2, enum send_target target);
void send_advmoving(struct unit_data* ud, bool moving, struct block_list *tbl, enum send_target target);
void send_changemusic_brodcast(const int map, const char *music);
void send_changenpc_title (struct map_session_data *sd, const int npcId, const char *name);
void send_join_ack(int fd, const char *const name, int flag);
void send_pc_own_flags(struct block_list* bl);
void send_pc_info(struct block_list* bl1,
                  struct block_list* bl2,
                  enum send_target target);
void send_npc_info(struct block_list* bl1,
                   struct block_list* bl2,
                   enum send_target target);
void send_slave_say(struct map_session_data *sd,
                    struct block_list *bl,
                    const char *const name,
                    const char *const message);
void send_online_list(int fd, const char *buf, unsigned size);
void send_online_list2(int fd, const char *buf, unsigned size);
void send_client_command(struct map_session_data *sd,
                         const char *const command);
void send_changelook2(struct map_session_data* sd,
                      struct block_list *bl,
                      int id,
                      int type,
                      int val,
                      int val2,
                      struct item_data *data,
                      int n,
                      enum send_target target);
void send_setwall(int m,
                  int layer,
                  int x1, int y1,
                  int x2, int y2,
                  int mask,
                  enum send_target target);
void send_setwall_single(int fd,
                         int m,
                         int layer,
                         int x1, int y1,
                         int x2, int y2,
                         int mask);
void send_pc_skin(int fd,
                  int npcId,
                  const char *const skin);
void send_pc_killed(int fd,
                    struct block_list* bl);
void send_walk_fail(int fd,
                    int x,
                    int y);
void send_homun_exp(struct homun_data *hd,
                    const int exp);

#endif  // EVOL_MAP_SEND