r5sdk/r5dev/game/server/gameinterface.h

32 lines
979 B
C
Raw Normal View History

//=============================================================================//
//
// Purpose: Interface server dll virtual functions to the SDK.
//
// $NoKeywords: $
//=============================================================================//
class CServerGameDLL
{
public:
void GameInit(void);
void PrecompileScriptsJob(void);
void LevelShutdown(void);
void GameShutdown(void);
float GetTickInterval(void);
};
extern CServerGameDLL* g_pServerGameDLL;
///////////////////////////////////////////////////////////////////////////////
class HServerGameDLL : public IDetour
{
virtual void debugp()
{
std::cout << "| VAR: g_pServerGameDLL : 0x" << std::hex << std::uppercase << g_pServerGameDLL << std::setw(0) << " |" << std::endl;
std::cout << "+----------------------------------------------------------------+" << std::endl;
}
};
///////////////////////////////////////////////////////////////////////////////
REGISTER(HServerGameDLL);