Xonotic
events.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include <
common/mutators/base.qh
>
4
5
// register all possible hooks here
6
7
// to use a hook, first register your mutator using REGISTER_MUTATOR
8
// then create your function using MUTATOR_HOOKFUNCTION
9
10
// globals
11
12
string
cmd_name
;
13
int
cmd_argc
;
14
string
cmd_string
;
15
35
#define EV_Menu_ConsoleCommand(i, o) \
36
i(string, cmd_name) \
37
i(int, cmd_argc) \
38
i(string, cmd_string) \
39
40
MUTATOR_HOOKABLE
(Menu_ConsoleCommand,
EV_Menu_ConsoleCommand
);
41
42
#define EV_ConfigureDialogs(i, o) \
43
i(entity, MUTATOR_ARGV_0_entity) \
44
45
MUTATOR_HOOKABLE
(ConfigureDialogs,
EV_ConfigureDialogs
);
EV_Menu_ConsoleCommand
#define EV_Menu_ConsoleCommand(i, o)
Called when a menu command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return fals...
Definition:
events.qh:35
cmd_argc
int cmd_argc
Definition:
events.qh:13
MUTATOR_HOOKABLE
MUTATOR_HOOKABLE(CSQC_ConsoleCommand, EV_CSQC_ConsoleCommand)
base.qh
cmd_name
string cmd_name
Definition:
events.qh:12
cmd_string
string cmd_string
Definition:
events.qh:14
EV_ConfigureDialogs
#define EV_ConfigureDialogs(i, o)
Definition:
events.qh:42
menu
mutators
events.qh
Generated on Thu Mar 17 2022 17:26:26 for Xonotic by
1.8.13