mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 05:48:00 +08:00
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
#ifndef GLOBALVARS_H
|
|
#define GLOBALVARS_H
|
|
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "globalvars_base.h"
|
|
#include "string_t.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Defines the ways that a map can be loaded.
|
|
//-----------------------------------------------------------------------------
|
|
enum MapLoadType_t
|
|
{
|
|
MapLoad_NewGame = 0,
|
|
MapLoad_LoadGame,
|
|
MapLoad_Transition,
|
|
MapLoad_Background,
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: Global variables shared between the engine and the game .dll
|
|
//-----------------------------------------------------------------------------
|
|
class CGlobalVars : public CGlobalVarsBase
|
|
{
|
|
public:
|
|
|
|
CGlobalVars();
|
|
|
|
public:
|
|
// Current map
|
|
string_t mapname;
|
|
string_t startspot;
|
|
MapLoadType_t eLoadType; // How the current map was loaded
|
|
bool mp_teamplay;
|
|
|
|
// current maxentities
|
|
int maxEntities;
|
|
|
|
int serverCount;
|
|
};
|
|
|
|
inline CGlobalVars::CGlobalVars() :
|
|
CGlobalVarsBase()
|
|
{
|
|
serverCount = 0;
|
|
}
|
|
|
|
#endif // GLOBALVARS_H
|