r5sdk/r5dev/public/baseentity.cpp
Kawe Mazidjatari 54f08bd887 Work-in-progress user command executor
* Added some getters in 'CBaseEntity' and 'CServerNetworkProperty'.
* Implemented 'CPlayer::SetTimeBase'.
* WIP implementation of 'CPlayer::RunNullCommand'.
2023-01-19 15:25:45 +01:00

40 lines
1.2 KiB
C++

//======= Copyright (c) 1996-2009, Valve Corporation, All rights reserved. ======
//
// Purpose: The base class from which all game entities are derived.
//
//===============================================================================
#include "core/stdafx.h"
#include "baseentity.h"
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
CCollisionProperty* CBaseEntity::CollisionProp()
{
return &m_Collision;
}
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
const CCollisionProperty* CBaseEntity::CollisionProp() const
{
return &m_Collision;
}
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
CServerNetworkProperty* CBaseEntity::NetworkProp()
{
return &m_Network;
}
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
const CServerNetworkProperty* CBaseEntity::NetworkProp() const
{
return &m_Network;
}