|
VR-Engage
2.3
|
Listens to SimulationStateMessage to keep "deployable-objects" in the player attribute store up to date. Deploy/recover operations are forwarded to VRF via scripted-entity tasks. Inter-component cleanup (stop using drone, exit launcher) is driven through MenuActionMessage.
#include <embeddedEntityLogic.h>
Public Member Functions | |
| DtEmbeddedEntityLogic () | |
| virtual | ~DtEmbeddedEntityLogic () override |
| virtual bool | initialize (DtPlayerStation *player, DtInitTable &config) override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
| virtual void | deployEmbeddedEntity (const std::string &embeddedEntityName) |
| virtual void | recoverEmbeddedEntity (const std::string &embeddedEntityName) |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| virtual bool | postInitialize () |
| bool | componentReady () const |
| void | setComponentReady (bool ready) |
| virtual DtInitTickStatus | finalizeInitTick (double dt) |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
| virtual const DtAttributeHandle & | ownshipState () const |
| virtual void | setExtendedData (const std::string &key, const std::string &value, DtEntityIdentifier entity=DtEntityIdentifier::nullId()) |
Protected Member Functions | |
| virtual makVre::DtVreMessageResult | handleSimState (makVre::DtVreMessage *msg) |
| void | updateOwnshipFromSimState (SimulationStateMessage *smsg) |
| void | updateEmbeddedEntityFromSimState (SimulationStateMessage *smsg) |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
| makVre::DtEmbeddedEntityLogic::DtEmbeddedEntityLogic | ( | ) |
|
overridevirtual |
|
overridevirtual |
Initializes the component.
| player | Pointer to the player station that owns this component |
| config | Configuration table with component settings |
Called when the component is first created during player station initialization. This method performs initial setup and calls initializeStateAttributes(). Components should override this method to perform type-specific initialization, but must call the base class implementation first.
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Updates the component.
| dt | Time in seconds since the last tick |
Called once per frame to update the component's state. All concrete component classes must implement this method.
Implements makVre::DtPlayerComponent.
|
overridevirtual |
Shuts down the component.
Called when the player station is shutting down. Components should override this method to release resources and perform cleanup operations.
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Gets the component type identifier.
Returns the unique type identifier for this component class. The type string is used by the component system to identify and instantiate components based on role configuration. Each component class should return a consistent, descriptive type name (e.g., "DtDriverControlLogic", "DtObserverUpdater").
Implements makVre::DtPlayerComponent.
|
virtual |
|
virtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |