-
Notifications
You must be signed in to change notification settings - Fork 2
/
g_main.h
51 lines (37 loc) · 1.02 KB
/
g_main.h
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
#pragma once
extern qcvm_t *qvm;
// exported from QC
typedef struct
{
int32_t apiversion;
int32_t clientsize;
qcvm_func_t InitGame;
qcvm_func_t ShutdownGame;
qcvm_func_t PreSpawnEntities;
qcvm_func_t SpawnEntities;
qcvm_func_t PostSpawnEntities;
qcvm_func_t ClientConnect;
qcvm_func_t ClientBegin;
qcvm_func_t ClientUserinfoChanged;
qcvm_func_t ClientDisconnect;
qcvm_func_t ClientCommand;
qcvm_func_t ClientThink;
qcvm_func_t RunFrame;
qcvm_func_t ServerCommand;
qcvm_func_t PreWriteGame;
qcvm_func_t PostWriteGame;
qcvm_func_t PreReadGame;
qcvm_func_t PostReadGame;
qcvm_func_t PreWriteLevel;
qcvm_func_t PostWriteLevel;
qcvm_func_t PreReadLevel;
qcvm_func_t PostReadLevel;
} qc_export_t;
extern qc_export_t qce;
void RestoreClientData(void);
void AssignClientPointer(edict_t *e, const bool assign);
void WipeClientPointers(void);
void WipeEntities(void);
void BackupClientData(void);
// exported, but here to prevent warnings
game_export_t *GetGameAPI (game_import_t *import);