Files
funnygame/game/shared/game.h
2026-05-30 20:43:02 +03:00

61 lines
1.2 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"
#include "kottui/kottui.h"
#include "iaudio.h"
#include "ixr.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;
extern IKotUIManager *g_pKotUI;
extern IAudioManager *g_pAudioManager;
extern IXRManager *g_pXRManager;
#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