Xonotic
events.qh
Go to the documentation of this file.
1 #pragma once
2 
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;
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);
MUTATOR_HOOKABLE(CSQC_ConsoleCommand, EV_CSQC_ConsoleCommand)