Game: move interface version identifiers to interface file

Small cleanup and deduplication.
This commit is contained in:
Kawe Mazidjatari 2024-07-30 01:52:03 +02:00
parent 5428e1914f
commit 705813599c
4 changed files with 10 additions and 7 deletions

View File

@ -35,6 +35,9 @@ public:
virtual void ClientFullyConnect(edict_t nEntity, bool bRestore) = 0;
};
#define INTERFACEVERSION_SERVERGAMECLIENTS_NEW "ServerGameClients004"
#define INTERFACEVERSION_SERVERGAMECLIENTS "ServerGameClients003"
//-----------------------------------------------------------------------------
// Purpose: Interface to get at server entities
//-----------------------------------------------------------------------------
@ -45,6 +48,8 @@ public:
// !TODO
};
#define INTERFACEVERSION_SERVERGAMEENTS "ServerGameEnts002"
//-----------------------------------------------------------------------------
// Purpose: Interface the engine exposes to the game DLL
//-----------------------------------------------------------------------------
@ -166,4 +171,6 @@ public:
// !TODO: the rest..
};
#define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL005"
#endif // EIFACE_H

View File

@ -60,5 +60,7 @@ public:
virtual void TraceRay(const Ray_t& ray, unsigned int fMask, trace_t* pTrace) = 0;
};
#define INTERFACEVERSION_ENGINETRACE_SERVER "EngineTraceServer004"
#define INTERFACEVERSION_ENGINETRACE_CLIENT "EngineTraceClient004"
#endif // ENGINE_IENGINETRACE_H

View File

@ -37,3 +37,4 @@ public:
virtual int GetMaxEntities() = 0;
};
#define VCLIENTENTITYLIST_INTERFACE_VERSION "VClientEntityList003"

View File

@ -15,16 +15,10 @@
#define MATERIALSYSTEM_CONFIG_VERSION "VMaterialSystemConfig004"
#define SERVER_DLL_SHARED_APPSYSTEMS "VServerDllSharedAppSystems001"
#define INTERFACEVERSION_SERVERGAMECLIENTS_NEW "ServerGameClients004"
#define INTERFACEVERSION_SERVERGAMECLIENTS "ServerGameClients003"
#define INTERFACEVERSION_SERVERGAMEENTS "ServerGameEnts002"
#define INTERFACEVERSION_SERVERGAMEDLL "ServerGameDLL005"
#define VCLIENT_PREDICTION_INTERFACE_VERSION "VClientPrediction001"
#define VCLIENTENTITYLIST_INTERFACE_VERSION "VClientEntityList003"
#define CLIENT_DLL_INTERFACE_VERSION "VClient018"
#define CLIENTRENDERTARGETS_INTERFACE_VERSION "ClientRenderTargets001"
#define INTERFACEVERSION_ENGINETRACE_CLIENT "EngineTraceClient004"
#define INTERFACEVERSION_ENGINETRACEDECALS_CLIENT "EngineTraceClientDecals004"
#define VGUI_SYSTEM_INTERFACE_VERSION "VGUI_System010"
@ -33,7 +27,6 @@
#define RUNGAMEENGINE_INTERFACE_VERSION "RunGameEngine005"
#define EVENTSYSTEM_INTERFACE_VERSION "EventSystem001"
#define CVAR_QUERY_INTERFACE_VERSION "VCvarQuery001"
#define VPHYSICS_DEBUG_OVERLAY_INTERFACE_VERSION "VPhysicsDebugOverlay001"
#define VDEBUG_OVERLAY_INTERFACE_VERSION "VDebugOverlay004"
#define SOUNDCARD_INTERFACE_VERSION "ISoundC002"