1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2026-10-10 03:43:06 +08:00

Move CBaseGameSystem to CAutoGameSystem (#432)

This commit is contained in:
Michal
2026-10-04 20:39:41 +02:00
committed by GAMMACASE
parent 53fe42ca4f
commit c96455462c
+5 -8
View File
@@ -387,10 +387,10 @@ public:
// Quick and dirty server system for users who don't care about precise ordering
// and usually only want to implement a few of the callbacks
class CBaseGameSystem : public IGameSystem
class CAutoGameSystem : public IGameSystem
{
public:
CBaseGameSystem(const char* pszInitName = "unnamed")
CAutoGameSystem(const char* pszInitName = "unnamed")
: m_pName(pszInitName)
{
}
@@ -491,16 +491,13 @@ public:
virtual void SetGameSystemGlobalPtrs(void* pValue) override {}
virtual void SetName(const char* pName) override { m_pName = pName; }
virtual bool DoesGameSystemReallocate() override { return false; }
virtual ~CBaseGameSystem() {}
virtual ~CAutoGameSystem() {}
private:
const char* m_pName;
};
class CAutoGameSystem : public CBaseGameSystem
{
protected:
virtual ~CAutoGameSystem() {};
};
// AMNOTE: Deprecated, use CAutoGameSystem instead
using CBaseGameSystem = CAutoGameSystem;
#endif // IGAMESYSTEM_H