1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 20:16:10 +08:00

Misc, ILoopMode tweak, ServerConfig param names

This commit is contained in:
Nick Hastings
2023-10-15 23:03:25 -04:00
parent 62490710ed
commit c644a2862e
2 changed files with 18 additions and 12 deletions

View File

@ -61,6 +61,7 @@ class CEntityLump;
class IPVS;
class IHLTVDirector;
struct SpawnGroupDesc_t;
enum HostStateLoopModeType_t : int;
class IClassnameForMapClassCallback;
struct Entity2Networkable_t;
class CCreateGameServerLoadInfo;
@ -73,7 +74,6 @@ struct RenderDeviceInfo_t;
struct RenderMultisampleType_t;
class GameSessionConfiguration_t;
struct StringTableDef_t;
struct HostStateLoopModeType_t;
class ILoopModePrerequisiteRegistry;
struct URLArgument_t;
struct vis_info_t;
@ -524,7 +524,7 @@ public:
virtual float GetTickInterval( void ) const = 0;
// Get server maxplayers and lower bound for same
virtual void GetPlayerLimits( int& minplayers, int& maxplayers, int &defaultMaxPlayers, bool &unknown ) const = 0;
virtual void GetPlayerLimits( int& minplayers, int& maxplayers, int &defaultMaxPlayers, bool &bIsMultiplayer ) const = 0;
// Returns max splitscreen slot count ( 1 == no splits, 2 for 2-player split screen )
virtual int GetMaxSplitscreenPlayers( void ) = 0;
@ -536,13 +536,15 @@ public:
virtual bool AllowPlayerToTakeOverBots() = 0;
virtual void OnClientFullyConnect( CEntityIndex index ) = 0;
virtual void OnClientFullyConnect( CEntityIndex nEntityIndex ) = 0;
virtual void GetHostStateLoopModeInfo( HostStateLoopModeType_t, CUtlString &, KeyValues ** ) = 0;
virtual void GetHostStateLoopModeInfo( HostStateLoopModeType_t type, CUtlString &loopModeName, KeyValues **ppLoopModeOptions ) = 0;
virtual bool AllowDedicatedServers( EUniverse universe ) const = 0;
virtual void GetConVarPrefixesToResetToDefaults( CUtlString &prefixes ) const = 0;
virtual void GetConVarPrefixesToResetToDefaults( CUtlString &sSemicolonDelimitedPrefixList ) const = 0;
virtual bool AllowSaveRestore() = 0;
};
#define INTERFACEVERSION_SERVERGAMECLIENTS "Source2GameClients001"

View File

@ -54,6 +54,16 @@ struct RHBackColorBuffer_t
HSceneViewRenderTarget m_hBackColorBuffer;
};
enum HostStateLoopModeType_t
{
HOST_STATE_LOOP_MODE_IDLE = 0,
HOST_STATE_LOOP_MODE_GAME,
HOST_STATE_LOOP_MODE_SOURCETV_RELAY,
HOST_STATE_LOOP_MODE_COUNT
};
struct EngineLoopState_t
{
PlatWindow_t m_hWnd;
@ -111,13 +121,7 @@ public:
virtual InputHandlerResult_t HandleInputEvent( const InputEvent_t &event, CSplitScreenSlot nSplitScreenPlayerSlot ) = 0;
virtual ISceneView* AddViewsToSceneSystem( const EngineLoopState_t &state, double flRenderTime, double flRealTime,
const RenderViewport_t &viewport, const RHBackColorBuffer_t &backColorBuffer ) = 0;
virtual ISource2WorldSession* GetWorldSession( void ) = 0;
virtual ClientServerMode_t GetClientServerMode( void ) = 0;
virtual bool ReceivedServerInfo( const GameSessionConfiguration_t &config, ILoopModePrerequisiteRegistry *pRegistry ) = 0;
virtual bool IsInHeadlessMode( void ) = 0;
virtual void SetFadeColor( Vector4D vColorNormalized ) = 0;
virtual bool IsBackgroundMap( void ) = 0;
virtual bool IsLevelTransition( void ) = 0;
virtual bool unk001( void ) = 0;
};
abstract_class ILoopModeFactory