1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/game/client/c_ragdoll_manager.cpp

52 lines
1.4 KiB
C++
Raw Permalink Normal View History

2013-06-27 06:22:04 +08:00
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "ragdoll_shared.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
class C_RagdollManager : public C_BaseEntity
{
public:
DECLARE_CLASS( C_RagdollManager, C_BaseEntity );
DECLARE_CLIENTCLASS();
C_RagdollManager();
// C_BaseEntity overrides.
public:
virtual void OnDataChanged( DataUpdateType_t updateType );
public:
int m_iCurrentMaxRagdollCount;
};
IMPLEMENT_CLIENTCLASS_DT_NOBASE( C_RagdollManager, DT_RagdollManager, CRagdollManager )
RecvPropInt( RECVINFO( m_iCurrentMaxRagdollCount ) ),
END_RECV_TABLE()
//-----------------------------------------------------------------------------
// Constructor
//-----------------------------------------------------------------------------
C_RagdollManager::C_RagdollManager()
{
m_iCurrentMaxRagdollCount = -1;
}
//-----------------------------------------------------------------------------
// Purpose:
// Input : updateType -
//-----------------------------------------------------------------------------
void C_RagdollManager::OnDataChanged( DataUpdateType_t updateType )
{
BaseClass::OnDataChanged( updateType );
s_RagdollLRU.SetMaxRagdollCount( m_iCurrentMaxRagdollCount );
}