mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-12 11:42:10 +08:00
44 lines
867 B
C
44 lines
867 B
C
|
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
// $NoKeywords: $
|
|||
|
//
|
|||
|
//=============================================================================//
|
|||
|
|
|||
|
#ifndef AR2_EXPLOSION_H
|
|||
|
#define AR2_EXPLOSION_H
|
|||
|
|
|||
|
|
|||
|
#include "baseparticleentity.h"
|
|||
|
|
|||
|
|
|||
|
class AR2Explosion : public CBaseParticleEntity
|
|||
|
{
|
|||
|
DECLARE_DATADESC();
|
|||
|
|
|||
|
public:
|
|||
|
DECLARE_CLASS( AR2Explosion, CBaseParticleEntity );
|
|||
|
DECLARE_SERVERCLASS();
|
|||
|
|
|||
|
static AR2Explosion* CreateAR2Explosion(const Vector &pos);
|
|||
|
|
|||
|
inline void SetMaterialName(const char *szMaterialName);
|
|||
|
|
|||
|
private:
|
|||
|
|
|||
|
CNetworkString( m_szMaterialName, 255 );
|
|||
|
};
|
|||
|
|
|||
|
|
|||
|
void AR2Explosion::SetMaterialName(const char *szMaterialName)
|
|||
|
{
|
|||
|
if (szMaterialName)
|
|||
|
{
|
|||
|
Q_strncpy(m_szMaterialName.GetForModify(), szMaterialName, sizeof(m_szMaterialName));
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
#endif
|