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
9
struct
plMsgExtractRenderData
;
10
11
class
PL_PARTICLEPLUGIN_DLL
plParticleFinisherComponentManager
final :
public
plComponentManager
<class plParticleFinisherComponent, plBlockStorageType::Compact>
12
{
13
using
SUPER
=
plComponentManager<class plParticleFinisherComponent, plBlockStorageType::Compact>
;
14
15
public
:
16
plParticleFinisherComponentManager
(
plWorld
* pWorld);
17
18
void
UpdateBounds();
19
};
20
25
class
PL_PARTICLEPLUGIN_DLL
plParticleFinisherComponent
final :
public
plRenderComponent
26
{
27
PL_DECLARE_COMPONENT_TYPE(
plParticleFinisherComponent
,
plRenderComponent
,
plParticleFinisherComponentManager
);
28
30
// plComponent
31
32
protected
:
33
virtual
void
OnDeactivated()
override
;
34
36
// plRenderComponent
37
38
public
:
39
virtual
plResult
GetLocalBounds(
plBoundingBoxSphere
& ref_bounds,
bool
& ref_bAlwaysVisible,
plMsgUpdateLocalBounds
& ref_msg)
override
;
40
42
// plParticleFinisherComponent
43
44
public
:
45
plParticleFinisherComponent
();
46
~plParticleFinisherComponent
();
47
48
plParticleEffectController
m_EffectController;
49
50
protected
:
51
void
OnMsgExtractRenderData(
plMsgExtractRenderData
& msg)
const
;
52
53
void
UpdateBounds();
54
};
plBoundingBoxSphereTemplate< float >
plComponentManager
Definition
ComponentManager.h:88
plParticleEffectController
Definition
ParticleEffectController.h:7
plParticleFinisherComponent
Automatically created by the particle system to finish playing a particle effect.
Definition
ParticleFinisherComponent.h:26
plParticleFinisherComponentManager
Definition
ParticleFinisherComponent.h:12
plRenderComponent
Base class for objects that should be rendered.
Definition
RenderComponent.h:9
plWorld
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition
World.h:22
plMsgExtractRenderData
Definition
RenderData.h:116
plMsgUpdateLocalBounds
Definition
UpdateLocalBoundsMessage.h:9
plResult
Default enum for returning failure or success, instead of using a bool.
Definition
Types.h:54
Code
EnginePlugins
ParticlePlugin
Components
ParticleFinisherComponent.h
Generated by
1.11.0