53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
#ifndef GAME_H
|
|
#define GAME_H
|
|
|
|
#include "tier2/ifilesystem.h"
|
|
#include "enginebridge.h"
|
|
#include "icvar.h"
|
|
#include "materialsystem/imaterialsystem.h"
|
|
#include "materialsystem/igamewindow.h"
|
|
#include "networkbase.h"
|
|
#include "iphysics.h"
|
|
#include "ihumandevice.h"
|
|
|
|
class CEngineVars
|
|
{
|
|
public:
|
|
double m_fTime;
|
|
double m_fDeltaTime;
|
|
};
|
|
|
|
extern IFileSystem *filesystem;
|
|
|
|
|
|
extern IRenderContext *g_pRenderContext;
|
|
extern IGameWindow *g_pMainWindow;
|
|
|
|
|
|
extern INetworkBase *g_pServerBridge;
|
|
extern INetworkBase *g_pClientBridge;
|
|
|
|
extern INetworkBase *g_pServerConnection;
|
|
extern INetworkBase *g_pPublicConnection;
|
|
extern INetworkBase *g_pCurrentConnection;
|
|
|
|
|
|
extern CEngineVars *g_pEngineVars;
|
|
extern EngineConsts_t *g_pEngineConstants;
|
|
|
|
|
|
extern IPhysics *g_pPhysics;
|
|
extern IPhysicsWorld *g_pPhysicsWorld;
|
|
|
|
#define FUNNY_SECURE_PORT 27015
|
|
#define FUNNY_QUERY_PORT 27016
|
|
|
|
#define CON_COMMAND( name, description ) \
|
|
static void name( int c, char **v ); \
|
|
static ConCommand name##_command(#name, name, description); \
|
|
static void name( int c, char **v ) \
|
|
|
|
CreateInterfaceFn GetEngineFactory();
|
|
|
|
#endif
|