1#include <Core/World/Component.h>
2#include <GameComponentsPlugin/GameComponentsDLL.h>
3#include <GameEngine/AI/SensorComponent.h>
18 plUInt16 m_uiPrevValue = 0;
19 plUInt16 m_uiNewValue = 0;
61 virtual void SerializeComponent(
plWorldWriter& inout_stream)
const override;
62 virtual void DeserializeComponent(
plWorldReader& inout_stream)
override;
65 virtual void OnDeactivated()
override;
66 virtual void OnSimulationStarted()
override;
77 void SetOutput(plUInt16 value);
78 plUInt16 GetOutput()
const {
return m_uiOutput; }
84 bool IsConnected()
const;
87 bool IsAttached()
const;
93 void SetBuddyReference(
const char* szReference);
94 void SetConnectedToReference(
const char* szReference);
98 void SetInput(plUInt16 value);
114 plUInt16 m_uiOutput = 0;
115 plUInt16 m_uiInput = 0;
120 void InputChanged(plUInt16 uiPrevInput, plUInt16 uiInput);
121 void OutputChanged(plUInt16 uiOutput);
124 const char* DummyGetter()
const {
return nullptr; }
Base class of all component types.
Definition Component.h:25
Definition ComponentManager.h:88
This component is for propagating the flow of power in cables or fluid in pipes and determine whether...
Definition PowerConnectorComponent.h:54
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
Base class for all messages that are sent as 'events'.
Definition EventMessage.h:8
A handle to a game object.
Definition Declarations.h:76
Sent by components such as plJoltGrabObjectComponent to indicate that the object has been grabbed or ...
Definition PhysicsWorldModule.h:221
Definition SensorComponent.h:11
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12