31constexpr const char*
lights =
"lights";
34constexpr const char*
sirens =
"sirens";
74 virtual void tick(
double dt)
override;
83 virtual const char*
type()
const override;
std::map< std::string, int > LightMap
Type definition for mapping light names to their light type IDs.
Definition lightsSirensControlLogic.h:102
virtual void tick(double dt) override
Called every frame to update lights and sirens states.
virtual void shutdown() override
Shuts down the lights and sirens control component.
LightMap myLightMap
Map associating light names with their corresponding light type IDs.
Definition lightsSirensControlLogic.h:108
virtual makVre::DtVreMessageResult handleMenuMessage(makVre::DtVreMessage *msg)
Handles menu action messages for lights and sirens.
virtual ~DtLightsSirensControlLogic() override
Virtual destructor for DtLightsSirensControlLogic.
DtLightsSirensControlLogic()
Constructor for DtLightsSirensControlLogic.
virtual void toggleLight(const std::string &lightName)
Toggles the state of a specific light.
virtual void toggleSiren(const std::string &sirenName)
Toggles the state of a specific siren.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the lights and sirens control component.
virtual const char * type() const override
Returns the component type identifier.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Base class for all role components in VR-Engage.
Definition playerComponent.h:78
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * sirens
Definition lightsSirensControlLogic.h:34
constexpr const char * lights
Definition lightsSirensControlLogic.h:31
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
constexpr const char * DtLightsSirensControlLogicType
Type identifier for DtLightsSirensControlLogic component.
Definition lightsSirensControlLogic.h:41
Definition lightsSirensControlLogic.h:23
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the DtPlayerComponent base class for VR-Engage role components.
Defines the base class for all VREngage messages.