mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-04 00:23:25 +08:00
Updated IVEngineServer, IServerGameDLL, IFileSystem, and IClient.
This commit is contained in:
parent
8486372afb
commit
ded3b74538
@ -353,9 +353,6 @@ public:
|
||||
// Cleans up the cluster list
|
||||
virtual void CleanUpEntityClusterList( PVSInfo_t *pPVSInfo ) = 0;
|
||||
|
||||
virtual void SetAchievementMgr( IAchievementMgr *pAchievementMgr ) =0;
|
||||
virtual IAchievementMgr *GetAchievementMgr() = 0;
|
||||
|
||||
virtual int GetAppID() = 0;
|
||||
|
||||
virtual bool IsLowViolence() = 0;
|
||||
@ -429,11 +426,18 @@ public:
|
||||
virtual void RefreshScreenIfNecessary() = 0;
|
||||
|
||||
// Tells the engine to allocate paint surfaces
|
||||
virtual bool HasPaintMap() = 0;
|
||||
virtual void PaintSurface( const model_t *model, const Vector& position, const Color& color, float radius ) = 0;
|
||||
virtual void TracePaintSurface( const model_t *model, const Vector& position, float radius, CUtlVector<Color>& surfColor ) = 0;
|
||||
virtual bool HasPaintmap() = 0;
|
||||
|
||||
// Calls ShootPaintSphere
|
||||
virtual bool SpherePaintSurface( const model_t *pModel, const Vector &, unsigned char, float, float ) = 0;
|
||||
|
||||
virtual void SphereTracePaintSurface( const model_t *pModel, const Vector &, const Vector &, float, CUtlVector<unsigned char, CUtlMemory<unsigned char, int>> & ) = 0;
|
||||
|
||||
virtual void RemoveAllPaint() = 0;
|
||||
|
||||
virtual void PaintAllSurfaces( unsigned char ) = 0;
|
||||
virtual void RemovePaint( const model_t *pModel ) = 0;
|
||||
|
||||
// Send a client command keyvalues
|
||||
// keyvalues are deleted inside the function
|
||||
virtual void ClientCommandKeyValues( edict_t *pEdict, KeyValues *pCommand ) = 0;
|
||||
@ -441,6 +445,16 @@ public:
|
||||
// Returns the XUID of the specified player. It'll be NULL if the player hasn't connected yet.
|
||||
virtual uint64 GetClientXUID( edict_t *pPlayerEdict ) = 0;
|
||||
virtual bool IsActiveApp() = 0;
|
||||
|
||||
virtual void SetNoClipEnabled( bool bEnabled ) = 0;
|
||||
|
||||
virtual void GetPaintmapDataRLE( CUtlVector<unsigned int, CUtlMemory<unsigned int, int>> &mapdata ) = 0;
|
||||
virtual void LoadPaintmapDataRLE( CUtlVector<unsigned int, CUtlMemory<unsigned int, int>> &mapdata ) = 0;
|
||||
virtual void SendPaintmapDataToClient( edict_t *pEdict ) = 0;
|
||||
|
||||
virtual float GetLatencyForChoreoSounds() = 0;
|
||||
|
||||
virtual int GetClientCrossPlayPlatform( int client_index ) = 0;
|
||||
};
|
||||
|
||||
#define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL005"
|
||||
@ -563,15 +577,7 @@ public:
|
||||
|
||||
virtual void ServerHibernationUpdate( bool bHibernating ) = 0;
|
||||
|
||||
virtual void GetMatchmakingGameData( char *buf, size_t bufSize ) = 0;
|
||||
|
||||
virtual bool ShouldPreferSteamAuth() = 0;
|
||||
|
||||
// does this game support randomly generated maps?
|
||||
virtual bool SupportsRandomMaps() = 0;
|
||||
|
||||
// return true to disconnect client due to timeout (used to do stricter timeouts when the game is sure the client isn't loading a map)
|
||||
virtual bool ShouldTimeoutClient( int nUserID, float flTimeSinceLastReceived ) = 0;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -538,6 +538,12 @@ public:
|
||||
FileFindHandle_t *pHandle
|
||||
) = 0;
|
||||
|
||||
virtual void FindFileAbsoluteList(
|
||||
CUtlVector<CUtlString, CUtlMemory<CUtlString, int>> &output,
|
||||
const char *pWildCard,
|
||||
const char *pPathID
|
||||
) = 0;
|
||||
|
||||
//--------------------------------------------------------
|
||||
// File name and directory operations
|
||||
//--------------------------------------------------------
|
||||
|
@ -165,6 +165,11 @@ public:
|
||||
const char *pPathID,
|
||||
FileFindHandle_t *pHandle
|
||||
) { return m_pFileSystemPassThru->FindFirstEx( pWildCard, pPathID, pHandle ); }
|
||||
virtual void FindFileAbsoluteList(
|
||||
CUtlVector<CUtlString, CUtlMemory<CUtlString, int>> &output,
|
||||
const char *pWildCard,
|
||||
const char *pPathID
|
||||
) { m_pFileSystemPassThru->FindFileAbsoluteList( output, pWildCard, pPathID ); }
|
||||
virtual void MarkPathIDByRequestOnly( const char *pPathID, bool bRequestOnly ) { m_pFileSystemPassThru->MarkPathIDByRequestOnly( pPathID, bRequestOnly ); }
|
||||
virtual bool AddPackFile( const char *fullpath, const char *pathID ) { return m_pFileSystemPassThru->AddPackFile( fullpath, pathID ); }
|
||||
virtual FSAsyncStatus_t AsyncAppend(const char *pFileName, const void *pSrc, int nSrcBytes, bool bFreeMemory, FSAsyncControl_t *pControl ) { return m_pFileSystemPassThru->AsyncAppend( pFileName, pSrc, nSrcBytes, bFreeMemory, pControl); }
|
||||
|
@ -98,6 +98,8 @@ public:
|
||||
virtual int GetNumPlayers() = 0;
|
||||
|
||||
virtual bool IsHumanPlayer() const = 0;
|
||||
|
||||
virtual int GetClientPlatform() const = 0;
|
||||
};
|
||||
|
||||
#endif // ICLIENT_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user