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

#ifndef EVOL_MAP_ATCOMMAND
#define EVOL_MAP_ATCOMMAND

const char* eatcommand_msgsd_pre(struct map_session_data **sdPtr,
                                 int *msgPtr);
const char* eatcommand_msgfd_pre(int *fdPtr,
                                 int *msgPtr);

#define ACMD0(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \
    struct map_session_data* sd __attribute__ ((unused)), \
    const char* command __attribute__ ((unused)), \
    const char* message __attribute__ ((unused)), struct AtCommandInfo *info __attribute__ ((unused)))
#define ACMD1(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \
    struct map_session_data* sd __attribute__ ((unused)), \
    const char* command __attribute__ ((unused)), \
    const char* message, struct AtCommandInfo *info __attribute__ ((unused)))
#define ACMD2(x) bool atcommand_ ## x (const int fd, \
    struct map_session_data* sd, \
    const char* command __attribute__ ((unused)), \
    const char* message, \
    struct AtCommandInfo *info)
#define ACMD3(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \
    struct map_session_data* sd, \
    const char* command __attribute__ ((unused)), \
    const char* message __attribute__ ((unused)), \
    struct AtCommandInfo *info __attribute__ ((unused)))
#define ACMD4(x) bool atcommand_ ## x (const int fd __attribute__ ((unused)), \
    struct map_session_data* sd, \
    const char* command __attribute__ ((unused)), \
    const char* message, \
    struct AtCommandInfo *info __attribute__ ((unused)))

ACMD2(setSkill);
ACMD2(slide);
ACMD3(hugo);
ACMD3(linus);
ACMD1(mapExit);
ACMD1(serverExit);
ACMD0(log);
ACMD4(tee);
ACMD4(getName);

#endif  // EVOL_MAP_ATCOMMAND