Plasma Engine  2.0
Loading...
Searching...
No Matches
NavMeshPathTestComponent.h
1#pragma once
2
3#include <AiPlugin/AiPluginDLL.h>
4#include <AiPlugin/Navigation/Navigation.h>
5#include <Core/World/Component.h>
6#include <Core/World/World.h>
7
9
17class PL_AIPLUGIN_DLL plAiNavMeshPathTestComponent : public plComponent
18{
20
22 // plComponent
23
24public:
25 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
26 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
27
29 // plAiNavMeshPathTestComponent
30
31public:
34
35 void SetPathEndReference(const char* szReference); // [ property ]
36 void SetPathEnd(plGameObjectHandle hObject);
37
39 bool m_bVisualizePathCorridor = true; // [ property ]
40
42 bool m_bVisualizePathLine = true; // [ property ]
43
45 bool m_bVisualizePathState = true; // [ property ]
46
49
52
53protected:
54 void Update();
55
56 plGameObjectHandle m_hPathEnd;
57 plAiNavigation m_Navigation;
58
59private:
60 const char* DummyGetter() const { return nullptr; }
61};
Used to test path-finding through a navmesh.
Definition NavMeshPathTestComponent.h:18
plHashedString m_sNavmeshConfig
Name of the plAiNavmeshConfig to use. See plAiNavigationConfig.
Definition NavMeshPathTestComponent.h:48
plHashedString m_sPathSearchConfig
Name of the plAiPathSearchConfig to use. See plAiNavigationConfig.
Definition NavMeshPathTestComponent.h:51
Computes a path through a navigation mesh.
Definition Navigation.h:41
Base class of all component types.
Definition Component.h:25
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 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
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
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
A handle to a game object.
Definition Declarations.h:76