diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/hl2/ar2_explosion.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/hl2/ar2_explosion.h')
| -rw-r--r-- | sp/src/game/server/hl2/ar2_explosion.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sp/src/game/server/hl2/ar2_explosion.h b/sp/src/game/server/hl2/ar2_explosion.h new file mode 100644 index 00000000..b44c0db8 --- /dev/null +++ b/sp/src/game/server/hl2/ar2_explosion.h @@ -0,0 +1,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
|