Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Entities/Helpers/NativeEntityBase.h"
- class CParticleEmitter
- : public CGameObjectExtensionHelper<CParticleEmitter, CNativeEntityBase>
- {
- public:
- enum EInputPorts
- {
- eInputPort_TurnOn = 0,
- eInputPort_TurnOff,
- eInputPort_Num
- };
- // Indices of the properties, registered in the Register function
- enum EProperties
- {
- eProperty_Active = 0,
- eProperty_EffectName,
- eNumProperties
- };
- public:
- CParticleEmitter();
- virtual ~CParticleEmitter() {};
- virtual void PostInit(IGameObject *pGameObject) override;
- // CNativeEntityBase
- virtual void ProcessEvent(SEntityEvent& event) override;
- // ~CNativeEntityBase
- // Called to register the entity class and its properties
- static void Register();
- // Called when one of the input Flowgraph ports are activated in one of the entity instances tied to this class
- static void OnFlowgraphActivation(EntityId entityId, IFlowNode::SActivationInfo* pActInfo, const class CFlowGameEntityNode *pNode);
- protected:
- void Reset();
- int m_particleSlot;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement