21#include <vrvUtil/DtProfiler.h>
66constexpr const char*
name =
"name";
141 virtual void tick(
double dt) = 0;
193 virtual const char*
type()
const = 0;
207 virtual const std::string&
name();
236 const std::string& key,
const std::string& value, DtEntityIdentifier entity = DtEntityIdentifier::nullId());
Provides attribute handling system for hierarchical data storage and manipulation.
Convenience manager that owns and organises a collection of attribute callbacks.
Definition attributeCallback.h:223
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Entity resolution and mapping system.
Definition entityResolver.h:52
Table-based access to Lua state for configuration data.
Definition initializer.h:38
DtInitTable myConfig
Component configuration table.
Definition playerComponent.h:260
virtual void setName(const std::string &name)
Sets the component name.
virtual const char * type() const =0
Gets the component type identifier.
virtual DtAttributeHandle & playerAttributeStore()
Gets the player attribute store.
virtual const DtAttributeHandle & playerAttributeStore() const
Gets the player attribute store (const version)
virtual DtInitTickStatus finalizeInitTick(double dt)
Performs one frame of deferred initialization work.
virtual bool postInitialize()
Performs post-initialization setup.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config)
Initializes the component.
virtual void shutdown()
Shuts down the component.
bool componentReady() const
Returns whether this component has completed deferred initialization.
Definition playerComponent.h:157
virtual DtPlayerStation & player()
Gets the player station.
std::string myName
Component instance name.
Definition playerComponent.h:257
virtual ~DtPlayerComponent()
Virtual destructor.
virtual void tick(double dt)=0
Updates the component.
virtual void initializeStateAttributes()
Initializes component state attributes.
DtPlayerStation * myPlayer
Pointer to the owning player station.
Definition playerComponent.h:263
DtEntityResolver * myResolver
Pointer to the entity resolver (common to all components)
Definition playerComponent.h:269
virtual void setExtendedData(const std::string &key, const std::string &value, DtEntityIdentifier entity=DtEntityIdentifier::nullId())
Sets scripted extended data on an entity.
DtAttributeCallbackManager myAttributeCallbacks
Member-scope instance of Attribute callback manager.
Definition playerComponent.h:275
bool myComponentReady
Whether this component has completed deferred initialization.
Definition playerComponent.h:254
makVrv::DtDe * myDe
Pointer to the display engine (common to all components)
Definition playerComponent.h:266
virtual const std::string & name()
Gets the component name.
DtPlayerComponent()
Constructor.
void setComponentReady(bool ready)
Sets the component readiness state.
Definition playerComponent.h:164
virtual const DtAttributeHandle & ownshipState() const
Gets the ownship state attribute handle.
DtVreMessageHandlerGroup myMessageHandlers
Member-scope instance of message handler group.
Definition playerComponent.h:281
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Manager class for connecting message handlers to message types.
Definition vreMessageManager.h:292
constexpr const char * initAttributes
Definition playerComponent.h:63
constexpr const char * name
Definition playerComponent.h:66
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Provides configuration initialization for VREngage components.
Definition playerComponent.h:44
!
Definition glsVreMessageUtil.h:50
DtInitTickStatus
Status returned by DtPlayerComponent::finalizeInitTick() to indicate deferred initialization progress...
Definition playerComponent.h:80
@ Pending
Component still needs work — finalizeInitTick() will be called again.
Definition playerComponent.h:82
@ Failed
Component initialization failed unrecoverably.
Definition playerComponent.h:83
@ Ready
Component initialization is complete.
Definition playerComponent.h:81
Definition appLauncherComponent.h:28
Defines the central message manager for the VREngage messaging system.