31constexpr const char*
script =
"script";
80 virtual void tick(
double dt)
override;
88 virtual const char*
type()
const override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Class for managing a Lua state and providing high-level operations.
Definition luaState.h:43
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
virtual void shutdown() override
Shuts down the script component.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the script component.
std::string myScriptConfig
Serialized configuration table to pass to the script.
Definition scriptComponent.h:110
virtual void reload()
Reloads the script file.
virtual void tick(double dt) override
Called every frame to update the script state.
virtual void shutdownVm()
Shuts down and cleans up the Lua virtual machine.
virtual bool setupVm()
Sets up the Lua virtual machine.
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
virtual ~DtScriptComponent() override
Virtual destructor for DtScriptComponent.
DtScriptComponent()
Constructor for DtScriptComponent.
std::string myScriptFilename
Path to the Lua script file to execute.
Definition scriptComponent.h:107
DtLuaState * myVm
Pointer to the Lua virtual machine instance.
Definition scriptComponent.h:113
virtual const char * type() const override
Returns the type identifier for this component.
constexpr const char * script
Definition scriptComponent.h:31
constexpr const char * scriptConfig
Definition scriptComponent.h:34
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition scriptComponent.h:23
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtScriptComponentType
Type identifier for DtScriptComponent component.
Definition scriptComponent.h:40
Defines the DtPlayerComponent base class for VR-Engage role components.