Plasma Engine  2.0
Loading...
Searching...
No Matches
MarkPoiVisibleComponent.h
1#pragma once
2
3#include <Core/World/Component.h>
4#include <Core/World/World.h>
5#include <RecastPlugin/Components/RecastNavMeshComponent.h>
6#include <RecastPlugin/RecastPluginDLL.h>
7
10
12
14
15class PL_RECASTPLUGIN_DLL plRcMarkPoiVisibleComponent : public plRcComponent
16{
18
20 // plComponent
21
22public:
23 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
24 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
25
26protected:
27 virtual void OnSimulationStarted() override;
28
29
31 // plRcMarkPoiVisibleComponent
32
33public:
36
37 float m_fRadius = 20.0f; // [ property ]
38 plUInt8 m_uiCollisionLayer = 0; // [ property ]
39
40protected:
41 void Update();
42
43 plRecastWorldModule* m_pWorldModule = nullptr;
44 plPhysicsWorldModuleInterface* m_pPhysicsModule = nullptr;
45
46private:
47 plUInt32 m_uiLastFirstCheckedPoint = 0;
48};
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void OnSimulationStarted()
This method is called once for active components, at the start of the next world update,...
Definition Component.cpp:144
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
Simple component manager implementation that calls an update method on all components every frame.
Definition ComponentManager.h:142
Definition PhysicsWorldModule.h:109
Base class for all Recast components.
Definition RecastNavMeshComponent.h:18
Definition MarkPoiVisibleComponent.h:16
Definition RecastWorldModule.h:16
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13