Plasma Engine  2.0
Loading...
Searching...
No Matches
ParticleFinisherComponent.h
1#pragma once
2
3#include <Core/World/World.h>
4#include <ParticlePlugin/Effect/ParticleEffectController.h>
5#include <ParticlePlugin/Effect/ParticleEffectInstance.h>
6#include <ParticlePlugin/ParticlePluginDLL.h>
7#include <RendererCore/Components/RenderComponent.h>
8
10
11class PL_PARTICLEPLUGIN_DLL plParticleFinisherComponentManager final : public plComponentManager<class plParticleFinisherComponent, plBlockStorageType::Compact>
12{
14
15public:
17
18 void UpdateBounds();
19};
20
25class PL_PARTICLEPLUGIN_DLL plParticleFinisherComponent final : public plRenderComponent
26{
28
30 // plComponent
31
32protected:
33 virtual void OnDeactivated() override;
34
36 // plRenderComponent
37
38public:
39 virtual plResult GetLocalBounds(plBoundingBoxSphere& ref_bounds, bool& ref_bAlwaysVisible, plMsgUpdateLocalBounds& ref_msg) override;
40
42 // plParticleFinisherComponent
43
44public:
47
48 plParticleEffectController m_EffectController;
49
50protected:
51 void OnMsgExtractRenderData(plMsgExtractRenderData& msg) const;
52
53 void UpdateBounds();
54};
Definition ComponentManager.h:88
Definition ParticleEffectController.h:7
Automatically created by the particle system to finish playing a particle effect.
Definition ParticleFinisherComponent.h:26
Definition ParticleFinisherComponent.h:12
Base class for objects that should be rendered.
Definition RenderComponent.h:9
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
Definition RenderData.h:116
Definition UpdateLocalBoundsMessage.h:9
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54