mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-10 11:53:05 +08:00
Move CBaseGameSystem to CAutoGameSystem (#432)
This commit is contained in:
@@ -387,10 +387,10 @@ public:
|
|||||||
|
|
||||||
// Quick and dirty server system for users who don't care about precise ordering
|
// 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
|
// and usually only want to implement a few of the callbacks
|
||||||
class CBaseGameSystem : public IGameSystem
|
class CAutoGameSystem : public IGameSystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CBaseGameSystem(const char* pszInitName = "unnamed")
|
CAutoGameSystem(const char* pszInitName = "unnamed")
|
||||||
: m_pName(pszInitName)
|
: m_pName(pszInitName)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -491,16 +491,13 @@ public:
|
|||||||
virtual void SetGameSystemGlobalPtrs(void* pValue) override {}
|
virtual void SetGameSystemGlobalPtrs(void* pValue) override {}
|
||||||
virtual void SetName(const char* pName) override { m_pName = pName; }
|
virtual void SetName(const char* pName) override { m_pName = pName; }
|
||||||
virtual bool DoesGameSystemReallocate() override { return false; }
|
virtual bool DoesGameSystemReallocate() override { return false; }
|
||||||
virtual ~CBaseGameSystem() {}
|
virtual ~CAutoGameSystem() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const char* m_pName;
|
const char* m_pName;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CAutoGameSystem : public CBaseGameSystem
|
// AMNOTE: Deprecated, use CAutoGameSystem instead
|
||||||
{
|
using CBaseGameSystem = CAutoGameSystem;
|
||||||
protected:
|
|
||||||
virtual ~CAutoGameSystem() {};
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // IGAMESYSTEM_H
|
#endif // IGAMESYSTEM_H
|
||||||
|
|||||||
Reference in New Issue
Block a user