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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user