aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/hl2/ar2_explosion.h
blob: 673528d70ae1c906dad5c71291a2898d58bfdd51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//========= Copyright 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