3#include <Core/ResourceManager/ResourceHandle.h>
4#include <Core/World/World.h>
5#include <Foundation/Types/RangeView.h>
6#include <GameEngine/GameEngineDLL.h>
39 void SetTemplateFile(
const char* szFile);
40 const char* GetTemplateFile()
const;
47 void SetSortOrder(
float fOrder);
48 float GetSortOrder()
const {
return m_fSortOrder; }
51 void SetVolumeType(
const char* szType);
52 const char* GetVolumeType()
const;
59 m_Values.TryGetValue(sName, v);
65 bool Reflection_GetValue(
const char* szName,
plVariant& value)
const;
66 void Reflection_InsertValue(
const char* szName,
const plVariant& value);
67 void Reflection_RemoveValue(
const char* szName);
69 void InitializeFromTemplate();
70 void ReloadTemplate();
71 void RemoveReloadFunction();
76 float m_fSortOrder = 0.0f;
78 bool m_bReloadFunctionAdded =
false;
104 void SetRadius(
float fRadius);
105 float GetRadius()
const {
return m_fRadius; }
108 void SetFalloff(
float fFalloff);
109 float GetFalloff()
const {
return m_fFalloff; }
114 float m_fRadius = 5.0f;
115 float m_fFalloff = 0.5f;
142 void SetExtents(
const plVec3& vExtents);
143 const plVec3& GetExtents()
const {
return m_vExtents; }
148 void SetFalloff(
const plVec3& vFalloff);
149 const plVec3& GetFalloff()
const {
return m_vFalloff; }
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 OnDeactivated()
This method is called when the component gets deactivated.
Definition Component.cpp:142
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
virtual void OnActivated()
This method is called when the component gets activated.
Definition Component.cpp:140
Definition ComponentManager.h:88
Definition HashTable.h:333
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
This class uses delegates to define a range of values that can be enumerated using a forward iterator...
Definition RangeView.h:24
Definition SmallArray.h:219
A class to use together with plHashedString for quick comparisons with temporary strings that need no...
Definition HashedString.h:151
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
A box implementation of the plVolumeComponent.
Definition VolumeComponent.h:124
A volume component can hold generic values either from a blackboard template or set directly on the c...
Definition VolumeComponent.h:17
A sphere implementation of the plVolumeComponent.
Definition VolumeComponent.h:87
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
Definition UpdateLocalBoundsMessage.h:9
Definition SpatialData.h:27