BVB Source Codes

CRYENGINE Show Featurekill.cpp Source code

Return Download CRYENGINE: download Featurekill.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #include "StdAfx.h"
  4. #include "ParticleSystem/ParticleFeature.h"
  5. #include "FeatureCommon.h"
  6.  
  7. CRY_PFX2_DBG
  8.  
  9. namespace pfx2
  10. {
  11.  
  12. class CFeatureKillOnParentDeath : public CParticleFeature
  13. {
  14. public:
  15.         CRY_PFX2_DECLARE_FEATURE
  16.  
  17.         virtual void AddToComponent(CParticleComponent* pComponent, SComponentParams* pParams) override
  18.         {
  19.                 pComponent->AddToUpdateList(EUL_Update, this);
  20.         }
  21.  
  22.         virtual void Serialize(Serialization::IArchive& ar) override
  23.         {
  24.                 CParticleFeature::Serialize(ar);
  25.                 AddNoPropertiesLabel(ar);
  26.         }
  27.  
  28.         virtual void Update(const SUpdateContext& context) override
  29.         {
  30.                 CRY_PFX2_PROFILE_DETAIL;
  31.                 KillOnParentDeath(context);
  32.         }
  33.  
  34. private:
  35. };
  36.  
  37. CRY_PFX2_IMPLEMENT_FEATURE(CParticleFeature, CFeatureKillOnParentDeath, "Kill", "OnParentDeath", colorKill);
  38.  
  39. }
  40.  
downloadFeaturekill.cpp Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top