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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
/*
* PARSEC HEADER: con_std.h
*/
#ifndef _CON_STD_H_
#define _CON_STD_H_
// standard commands table entry ----------------------------------------------
//
struct std_command_s {
const char* command; // command string
short commlen; // length of string
short numparams; // number of parameters (used by tab-completion)
};
// enumeration of standard commands -------------------------------------------
//
enum enum_std_commands {
CM_APPEND,
CM_BASE,
CM_BIND,
CM_BUILD,
CM_CAT,
CM_CLASSINFO,
CM_CLEAR,
CM_CLOSE,
CM_CLS,
CM_COLANIM,
CM_COMPILE,
CM_CONNECT,
CM_CREATE,
CM_DEC,
CM_DISABLE,
CM_NOMACROS,
CM_DISCONNECT,
CM_DISPLAY,
CM_ENABLE,
CM_ENABLEMACROS,
CM_EXIT,
CM_EXITGAME,
CM_FACEINFO,
CM_FLASHBLUE,
CM_FLASHWHITE,
CM_GAMELOOPBATCH,
CM_HEX,
CM_HIDE,
CM_KEY,
CM_LISTBINDINGS,
CM_LISTCLASSES,
CM_LISTSTDCOMMANDS,
CM_LISTDATA,
CM_LISTDEMOS,
CM_LISTGAMEFUNCKEYS,
CM_LISTINTCOMMANDS,
CM_LISTTEXTMACS,
CM_LISTTYPES,
CM_LOAD,
CM_LOGIN,
CM_LOGOUT,
CM_LISTEXTCOMMS,
CM_NAME,
CM_NET_SUBSYS,
CM_OBJECTCLEAR,
CM_OBJECTCOUNT,
CM_OBJECTINFO,
CM_OCT,
CM_OPEN,
CM_PATH_ANIM_INTRO,
CM_PATH_ASTREAM_INTRO,
CM_PATH_ASTREAM_MENU,
CM_PATH_ASTREAM,
CM_PLAYDEMO,
CM_PROP,
CM_PROPC,
CM_PROPO,
CM_QUIT,
CM_RECDEM,
CM_RECORD,
CM_REPINFO,
CM_REPSTOP,
CM_RESCAN,
CM_SAY,
CM_SET_MACRO,
CM_SETORIGIN,
CM_DEFSHADER,
CM_SETSHADER,
CM_SHIPS,
CM_SHOWPOSITION,
CM_TALKMODE,
CM_TYPEINFO,
CM_VID_LISTMODES,
CM_VID_SETMODE,
CM_VID_SUBSYS,
CM_WORKINGDIRECTORY,
CM_WRITESTRING,
CM_AUD_CONF,
CM_INP_CONF,
// must be last in list!!
NUM_STD_COMMAND_CONSTANTS
};
// command list and length array
extern std_command_s std_commands[];
// number of standard commands
extern int num_std_commands;
// macro to retrieve standard command strings
#define CMSTR(x) (std_commands[x].command)
// macro to retrieve string length of standard commmands
#define CMLEN(x) (std_commands[x].commlen)
// macro to determine number of arguments of standard commmands
#define CMARG(x) (std_commands[x].numparams)
#endif // _CON_STD_H_
|