3#include <Core/Prefabs/PrefabResource.h>
4#include <Core/World/Component.h>
5#include <Core/World/World.h>
6#include <Foundation/Containers/ArrayMap.h>
7#include <Foundation/Types/RangeView.h>
44 virtual void SerializeComponent(
plWorldWriter& inout_stream)
const override;
45 virtual void DeserializeComponent(
plWorldReader& inout_stream)
override;
48 virtual void OnActivated()
override;
49 virtual void OnDeactivated()
override;
62 void SetPrefabFile(
const char* szFile);
63 const char* GetPrefabFile()
const;
69 void SetParameter(
const char* szKey,
const plVariant& value);
70 void RemoveParameter(
const char* szKey);
71 bool GetParameter(
const char* szKey,
plVariant& out_value)
const;
77 void InstantiatePrefab();
78 void ClearPreviousInstances();
82 bool m_bInUpdateList =
false;
See plArrayMapBase for details.
Definition ArrayMap.h:149
Base class of all component types.
Definition Component.h:25
Definition ComponentManager.h:88
The central component to instantiate prefabs.
Definition PrefabReferenceComponent.h:37
Definition PrefabReferenceComponent.h:12
This class uses delegates to define a range of values that can be enumerated using a forward iterator...
Definition RangeView.h:24
plVariant is a class that can store different types of variables, which is useful in situations where...
Definition Variant.h:44
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
virtual void OnSimulationStarted()
This method is called at the start of the next world update when the world is simulated....
Definition WorldModule.h:105
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
These events may be sent by a specific plResource or by the plResourceManager.
Definition Declarations.h:22
Definition WorldModule.h:33