-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathglobalvars.h
47 lines (43 loc) · 841 Bytes
/
globalvars.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
#ifndef _INCLUDE_GLOBALVARS_H_
#define _INCLUDE_GLOBALVARS_H_
struct CGlobalVarsBase
{
float realtime;
int framecount;
float absoluteframetime;
float curtime;
float frametime;
int maxClients;
int tickcount;
float interval_per_tick;
float interpolation_amount;
int simTicksThisFrame;
int network_protocol;
void *pSaveData; // CSaveRestoreData *
bool m_bClient;
int nTimestampNetworkingBase;
int nTimestampRandomizeWindow;
};
enum MapLoadType_t
{
MapLoad_NewGame = 0,
MapLoad_LoadGame,
MapLoad_Transition,
MapLoad_Background,
};
struct CGlobalVars
{
CGlobalVarsBase base;
char * mapname;
int mapversion;
char * startspot;
MapLoadType_t eLoadType;
bool bMapLoadFailed;
bool deathmatch;
bool coop;
bool teamplay;
int maxEntities;
int serverCount;
void *pEdicts; // edict_t *
};
#endif // _INCLUDE_GLOBALVARS_H_