|
VR-Engage
2.3
|
DtSimEventConnector::install() no longer takes DtPlayerStationApp*. Remove the application argument from overrides and base-class calls. The maintained DtCommentConnector::install() calls the new base method:
The complete example accepts makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection*, then registers its VR-Link callback and message handler. Its shutdown() removes both. Preserve those steps when adapting the connector.
DtFriendlyUnitsConnector, DtRadioConnector, DtRemoteEntityConnector, DtUpdateVisualsConnector, and DtWeaponFireConnector also use install(connection). See Connector installation changes for the complete before-and-after table.
DtSimEventConnector::myApp was removed. Use the App attribute tree for shared application state. The reflected entity list is stored at App.DtReflectedEntityList, and the display engine is stored at App.DtDe. The examples/customPdu/commentNet/commentConnector.cxx example reads player identity from App.Players after calling DtSimEventConnector::install(connection).
DtLaserDesignatorConnector::install() now takes the reflected designator list explicitly:
Here, laserDesignatorList is a makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkReflectedLaserDesignatorList*. This two-argument method no longer overrides the base installation method. Update derived laser-designator overrides to accept both arguments. Calling the one-argument method through DtSimEventConnector* only stores the connection. It does not install designator monitoring. Keep the supplied list alive until shutdown() removes its callbacks.
The lifecycle also changed from tick() to tick(double dt). Update custom overrides and callers to pass elapsed simulation time. The accessory passes the time delta from the network thread.
The new connectors take shared infrastructure explicitly instead of an application pointer. Their first argument is makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection* connection. Pass these additional arguments in the listed order:
| Connector | Arguments after connection |
|---|---|
DtVreBackendConnector | vrfRemoteController |
DtSessionStatusConnector | vrfRemoteController |
DtOwnshipControlConnector | vrfRemoteController, reflectedExtEntityList |
DtOwnshipCreationConnector | vrfRemoteController, reflectedExtEntityList |
DtOwnershipTransferConnector | vrfRemoteController, reflectedExtEntityList |
DtReflectedEntityConnector | vrfRemoteController, reflectedExtEntityList, reflectedControlObjectList |
vrfRemoteController has type makVrf::DtVrlinkVrfRemoteController*. The reflected list arguments have types DtReflectedExtEntityList* and DtReflectedControlObjectList*, respectively. For example:
DtConnectorAccessory::setupVrfInfrastructure() initializes the controller before installBaseConnectors(). Its createAndInstallConnector() helper supplies the connection and forwards any additional installation arguments. Custom accessory installation paths must provide the same dependencies. The connectors do not own these pointers. Keep the controller and lists alive until all dependent connectors have shut down.
DtExtendedStateConnector was removed. Use DtReflectedEntityConnector and the reflected entity attribute tree for entity discovery and extended state. Find the tree under DtAttribute::Root()["Entities"], or access it through DtPlayerStationApp::entityStateStore().
DtVreVrfMsgInterface and its public header were removed. Replace direct uses with the appropriate connector and its message handling API.
DtReflectedEntityConnector publishes entity and control-object discovery through VR-Engage messages. See vrePlayerStationConnector/reflectedEntityConnector.h.
DtOwnershipTransferConnector coordinates ownership requests with the backend. See vrePlayerStationConnector/ownershipTransferConnector.h.