108 virtual void tick(
double dt)
override;
128 virtual const char*
type()
const override;
Provides attribute handling system for hierarchical data storage and manipulation.
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
virtual ~DtPlayerStateAttributeSampleComponent() override=default
Virtual destructor.
DtPlayerStateAttributeSampleComponent()
Default constructor.
virtual const char * type() const override
Returns the component type identifier.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the component with player station and configuration.
virtual void shutdown() override
Shutdown callback for cleanup.
makVre::DtAttributeHandle myGearAttributeHandle
Handle to the "set-gear" player attribute.
Definition sampleComponent.h:155
virtual void tick(double dt) override
Per-frame update callback.
virtual void onGearChanged(const std::string &newGear)
Callback invoked when the "set-gear" attribute changes.
Handle class for safe access to attributes.
Definition attributeHandle.h:30
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
Defines the DtPlayerComponent base class for VR-Engage role components.
constexpr auto DtPlayerStateAttributeSampleComponentType
Type identifier string for DtNotifyLogic component registration.
Definition sampleComponent.h:24