4#include <Core/Messages/TriggerMessage.h>
5#include <Core/World/Component.h>
6#include <Core/World/World.h>
7#include <GameComponentsPlugin/GameComponentsDLL.h>
66 void SetTriggerMessage(
const char* szSz);
67 const char* GetTriggerMessage()
const;
69 void SetRaycastEndObject(
const char* szReference);
72 float m_fMaxDistance = 100.0f;
73 bool m_bForceTargetParentless =
false;
74 bool m_bDisableTargetObjectOnNoHit =
false;
75 plUInt8 m_uiCollisionLayerEndPoint = 0;
76 plUInt8 m_uiCollisionLayerTrigger = 0;
88 const char* DummyGetter()
const {
return nullptr; }
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 Deinitialize()
This method is called before the component is destroyed. A derived type can override this method to d...
Definition Component.cpp:133
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
virtual void OnActivated()
This method is called when the component gets activated.
Definition Component.cpp:140
Definition ComponentManager.h:88
A message sender that sends all messages to the next component derived from plEventMessageHandlerComp...
Definition EventMessage.h:39
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
Definition PhysicsWorldModule.h:109
A component which does a ray cast and positions a target object there.
Definition RaycastComponent.h:41
Definition RaycastComponent.h:12
virtual void Initialize() override
This method is called after the constructor. A derived type can override this method to do initializa...
Definition RaycastComponent.cpp:16
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22
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
The plBitflags class allows you to work with type-safe bitflags.
Definition Bitflags.h:82
A handle to a game object.
Definition Declarations.h:76
Enum
Definition TriggerMessage.h:12
Definition WorldModule.h:33