source-engine/game/client/c_physicsprop.h

48 lines
1.1 KiB
C
Raw Normal View History

2023-10-03 17:23:56 +03:00
//===== Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ======//
2020-04-22 12:56:21 -04:00
//
// Purpose:
//
2023-10-03 17:23:56 +03:00
//===========================================================================//
2020-04-22 12:56:21 -04:00
#ifndef C_PHYSICSPROP_H
#define C_PHYSICSPROP_H
#ifdef _WIN32
#pragma once
#endif
#include "c_breakableprop.h"
2023-10-03 17:23:56 +03:00
2020-04-22 12:56:21 -04:00
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class C_PhysicsProp : public C_BreakableProp
{
typedef C_BreakableProp BaseClass;
public:
DECLARE_CLIENTCLASS();
2023-10-03 17:23:56 +03:00
// Inherited from IClientUnknown
public:
virtual IClientModelRenderable* GetClientModelRenderable();
// Inherited from IClientModelRenderable
public:
virtual bool GetRenderData( void *pData, ModelDataCategory_t nCategory );
// Other public methods
public:
2020-04-22 12:56:21 -04:00
C_PhysicsProp();
2023-10-03 17:23:56 +03:00
virtual ~C_PhysicsProp();
2020-04-22 12:56:21 -04:00
2023-10-03 17:23:56 +03:00
virtual void OnDataChanged( DataUpdateType_t type );
2020-04-22 12:56:21 -04:00
virtual bool OnInternalDrawModel( ClientModelRenderInfo_t *pInfo );
protected:
// Networked vars.
bool m_bAwake;
bool m_bAwakeLastTime;
2023-10-03 17:23:56 +03:00
bool m_bCanUseStaticLighting;
2020-04-22 12:56:21 -04:00
};
#endif // C_PHYSICSPROP_H