Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
811 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef AR2_EXPLOSION_H
  9. #define AR2_EXPLOSION_H
  10. #include "baseparticleentity.h"
  11. class AR2Explosion : public CBaseParticleEntity
  12. {
  13. DECLARE_DATADESC();
  14. public:
  15. DECLARE_CLASS( AR2Explosion, CBaseParticleEntity );
  16. DECLARE_SERVERCLASS();
  17. static AR2Explosion* CreateAR2Explosion(const Vector &pos);
  18. inline void SetMaterialName(const char *szMaterialName);
  19. private:
  20. CNetworkString( m_szMaterialName, 255 );
  21. };
  22. void AR2Explosion::SetMaterialName(const char *szMaterialName)
  23. {
  24. if (szMaterialName)
  25. {
  26. Q_strncpy(m_szMaterialName.GetForModify(), szMaterialName, sizeof(m_szMaterialName));
  27. }
  28. }
  29. #endif