mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Put initializer values inside brackets. * Put logical AND conditions within parentheses. * Put assignments within conditional statements within parentheses. * Mark unused variables as such to suppress compiler warnings. * Fix vftable shadow warnings caused by ConVar::CreateInternal (does not implement, only interface. Renamed to yield desired behavior). * Fix 'never' initialized class members for 'CCVarIteratorInternal'. * Return values in interface vftables that cannot be pure virtual.
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
//===== Copyright (c) 1996-2005, Valve Corporation, All rights reserved. ======//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef ISERVERNETWORKABLE_H
|
|
#define ISERVERNETWORKABLE_H
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Forward declarations
|
|
//-----------------------------------------------------------------------------
|
|
class CBaseEntity;
|
|
class ServerClass;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
class IServerNetworkable
|
|
{
|
|
// These functions are handled automatically by the server_class macros and CBaseNetworkable.
|
|
public:
|
|
virtual CBaseEntity* GetBaseEntity() { return nullptr; }; // Only used by game code.
|
|
virtual const char* GetClassName() const { return nullptr; };
|
|
|
|
protected:
|
|
// Should never call delete on this!
|
|
virtual ~IServerNetworkable() {}
|
|
virtual ServerClass* GetServerClass() { return nullptr; };
|
|
};
|
|
|
|
|
|
#endif // ISERVERNETWORKABLE_H
|