19#include <vrfobjcore/simComponent.h>
20#include <vrfobjcore/componentSystem.h>
67 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
87 virtual void tick()
override;
94 virtual const char*
type()
const override;
106 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
107 DtComponentDescriptor* desc, DtReaderWriterRegistry* parentRegistry);
void collectHandheldWeaponSystems()
Collects references to secondary weapon systems.
bool myWasPlayerControlled
Previous player control state.
Definition humanHandWeaponSwitchController.h:129
const DtVreHumanHandWeaponSwitchController & operator=(const DtVreHumanHandWeaponSwitchController &orig)
Assignment operator (not implemented)
DtVreHumanHandWeaponSwitchController(const DtVreHumanHandWeaponSwitchController &orig)
Copy constructor (not implemented)
DtVreHumanHandWeaponSwitchController(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Constructor.
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc, DtReaderWriterRegistry *parentRegistry)
Factory method to create a new instance of this component.
virtual void tick() override
Updates weapon system states each simulation frame.
virtual ~DtVreHumanHandWeaponSwitchController() override
Virtual destructor.
std::vector< DtComponentSystem * > mySystemList
List of secondary weapon systems to be managed.
Definition humanHandWeaponSwitchController.h:123
DtVreHumanHandWeaponSwitchController()
Default constructor (not implemented)
virtual void preFirstTickInit() override
Initializes weapon system references before the first tick.
virtual const char * type() const override
Gets the type identifier for this component.
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtVreHumanHandWeaponSwitchControllerType[]
Type identifier for the human handheld weapon switch controller component.
Definition humanHandWeaponSwitchController.h:25
Base template class for VR-Engage simulation components.