Crossfire Server, Trunk
commands.h
Go to the documentation of this file.
1
6
#ifndef COMMANDS_H
7
#define COMMANDS_H
8
17
typedef
void
(*
command_function
)(
object
*
op
,
const
char
*
params
);
18
29
typedef
void
(*
command_function_extra
)(
object
*
op
,
const
char
*
params
,
const
char
*extra);
30
32
typedef
uint64_t
command_registration
;
33
35
#define COMMAND_TYPE_NORMAL 0
36
37
#define COMMAND_TYPE_COMMUNICATION 1
38
39
#define COMMAND_TYPE_WIZARD 2
40
41
enum
shutdown_type
{
42
SHUTDOWN_NONE
,
//< No shutdown pending
43
SHUTDOWN_TIME
,
//< Shutdown at a given time
44
SHUTDOWN_IDLE
//< Shutdown when no active players are in the game
45
};
46
47
struct
shutdown_s
{
48
enum
shutdown_type
type
;
49
time_t
time
;
51
int
next_warn
;
//< Used in SHUTDOWN_TIME to warn players
52
};
53
54
extern
struct
shutdown_s
shutdown_state
;
55
56
#endif
/* COMMANDS_H */
SHUTDOWN_IDLE
@ SHUTDOWN_IDLE
Definition:
commands.h:44
shutdown_type
shutdown_type
Definition:
commands.h:41
shutdown_s::time
time_t time
Definition:
commands.h:49
shutdown_s::type
enum shutdown_type type
Definition:
commands.h:48
shutdown_s
Definition:
commands.h:47
SHUTDOWN_NONE
@ SHUTDOWN_NONE
Definition:
commands.h:42
nlohmann::detail::void
j template void())
Definition:
json.hpp:4099
SHUTDOWN_TIME
@ SHUTDOWN_TIME
Definition:
commands.h:43
give.op
op
Definition:
give.py:33
roll-o-matic.params
params
Definition:
roll-o-matic.py:193
command_function_extra
void(* command_function_extra)(object *op, const char *params, const char *extra)
Definition:
commands.h:29
shutdown_state
struct shutdown_s shutdown_state
Definition:
c_wiz.cpp:44
command_registration
uint64_t command_registration
Definition:
commands.h:32
shutdown_s::next_warn
int next_warn
Definition:
commands.h:51
command_function
void(* command_function)(object *op, const char *params)
Definition:
commands.h:17
crossfire-crossfire-server
include
commands.h
Generated by
1.8.17