64 virtual void tick(
double dt)
override;
74 virtual const char*
type()
const override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
virtual void showDriverOccupantLocally()
Shows the driver occupant model in the local view.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the vehicle occupant updater component.
bool myPlayerIsImplicitDriver
Flag indicating if player is directly controlling the vehicle (not embarked)
Definition vehicleOccupantUpdater.h:116
bool myCachedOccupantState
Flag indicating if the initial occupant state has been cached.
Definition vehicleOccupantUpdater.h:119
virtual void hideDriverOccupantLocally()
Hides the driver occupant model in the local view.
virtual void restoreOccupantState()
Restores the original occupant visibility state.
makVrv::DtObserver * myObserver
Pointer to the observer being used by this component.
Definition vehicleOccupantUpdater.h:125
DtVehicleOccupantUpdater()
Constructor for DtVehicleOccupantUpdater.
virtual void showDriverOccupantExternally()
Makes the driver occupant visible to external observers.
virtual void shutdown() override
Shuts down the vehicle occupant updater component.
virtual void cacheOccupantState()
Saves the original occupant visibility state.
bool myInitialHideOccupantsState
The initial value of the HideOccupants attribute.
Definition vehicleOccupantUpdater.h:122
virtual const char * type() const override
Returns the type identifier for this component.
virtual void hideDriverOccupantExternally()
Makes the driver occupant visible to external observers.
virtual void tick(double dt) override
Called every frame to update the occupant visibility state.
virtual ~DtVehicleOccupantUpdater() override
Virtual destructor for DtVehicleOccupantUpdater.
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtVehicleOccupantUpdaterType
Type identifier for DtVehicleOccupantUpdater component.
Definition vehicleOccupantUpdater.h:25
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.