3#include <Core/ResourceManager/ResourceHandle.h>
4#include <KrautPlugin/KrautDeclarations.h>
5#include <KrautPlugin/Renderer/KrautRenderData.h>
6#include <RendererCore/Components/RenderComponent.h>
7#include <RendererCore/Meshes/MeshResource.h>
8#include <RendererCore/Pipeline/RenderData.h>
9#include <RendererCore/Utils/WorldGeoExtractionUtil.h>
53 virtual void SerializeComponent(
plWorldWriter& inout_stream)
const override;
54 virtual void DeserializeComponent(
plWorldReader& inout_stream)
override;
57 virtual void OnActivated()
override;
74 static const int s_iLocalBoundsScale = 3;
81 void SetKrautFile(
const char* szFile);
82 const char* GetKrautFile()
const;
92 void SetVariationIndex(plUInt16 uiIndex);
93 plUInt16 GetVariationIndex()
const;
98 void SetCustomRandomSeed(plUInt16 uiSeed);
99 plUInt16 GetCustomRandomSeed()
const;
108 void EnsureTreeIsGenerated();
110 plUInt16 m_uiVariationIndex = 0xFFFF;
111 plUInt16 m_uiCustomRandomSeed = 0xFFFF;
115 void ComputeWind()
const;
117 mutable plUInt64 m_uiLastWindUpdate = (plUInt64)-1;
118 mutable plVec3 m_vWindSpringPos;
119 mutable plVec3 m_vWindSpringVel;
Definition AbstractObjectGraph.h:17
Definition ComponentManager.h:88
Provides functions to generate standard geometric shapes, such as boxes, spheres, cylinders,...
Definition Geometry.h:17
Definition KrautRenderData.h:12
Instantiates a Kraut tree model.
Definition KrautTreeComponent.h:46
Definition KrautTreeComponent.h:21
Provides a simple mechanism for mutual exclusion to prevent multiple threads from accessing a shared ...
Definition Mutex.h:13
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
virtual void Initialize()
This method is called after the constructor. A derived type can override this method to do initializa...
Definition WorldModule.h:98
virtual void Deinitialize()
This method is called before the destructor. A derived type can override this method to do deinitiali...
Definition WorldModule.h:101
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 component.
Definition Declarations.h:138
Definition PhysicsWorldModule.h:263
Definition UpdateLocalBoundsMessage.h:9
These events may be sent by a specific plResource or by the plResourceManager.
Definition Declarations.h:22
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
Definition WorldModule.h:33