|
VR-Engage
2.2
|
This class defines a descriptor for script reactive task controller components in VREngage. It maintains a mapping between roles and allowed reactive task script lists, controlling which scripts can be executed based on entity roles. This allows for role-specific behavior scripts to be assigned to entities during engagement scenarios.
#include <vreScriptReactiveTaskControllerDescriptor.h>
Public Member Functions | |
| DtVreScriptReactiveTaskControllerDescriptor ()=delete | |
| DtVreScriptReactiveTaskControllerDescriptor (const DtString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreScriptReactiveTaskControllerDescriptor (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreScriptReactiveTaskControllerDescriptor (const DtVreScriptReactiveTaskControllerDescriptor &orig, DtReaderWriterRegistry *parentRegistry=0) | |
| DtVreScriptReactiveTaskControllerDescriptor & | operator= (const DtVreScriptReactiveTaskControllerDescriptor &orig) |
| virtual | ~DtVreScriptReactiveTaskControllerDescriptor () override |
| virtual void | setRoleToScriptListMap (const DtRoleToScriptListMap &map) |
| virtual const DtRoleToScriptListMap & | roleToScriptListMap () const |
| virtual const char * | readerWriterType () const override |
| virtual const char * | xmlType () const override |
Static Public Member Functions | |
| static const char * | theXmlType () |
| static DtComponentDescriptor * | creator () |
Protected Attributes | |
| DtRwRoleToScriptListMap | myAllowedReactiveTasksWhileEngaged |
|
delete |
Default constructor (deleted)
Default constructor is explicitly deleted to prevent creation of instances without proper initialization.
Referenced by DtVreScriptReactiveTaskControllerDescriptor(), and operator=().
| makVre::DtVreScriptReactiveTaskControllerDescriptor::DtVreScriptReactiveTaskControllerDescriptor | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name.
| name | The name of this component |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new script reactive task controller descriptor with the specified name.
| makVre::DtVreScriptReactiveTaskControllerDescriptor::DtVreScriptReactiveTaskControllerDescriptor | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Constructor with component name as symbol string.
| name | The name of this component as a symbol string |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new script reactive task controller descriptor with the specified name.
| makVre::DtVreScriptReactiveTaskControllerDescriptor::DtVreScriptReactiveTaskControllerDescriptor | ( | const DtVreScriptReactiveTaskControllerDescriptor & | orig, |
| DtReaderWriterRegistry * | parentRegistry = 0 ) |
Copy constructor.
| orig | The source descriptor to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new script reactive task controller descriptor as a copy of the provided original.
References DtVreScriptReactiveTaskControllerDescriptor().
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the descriptor.
| DtVreScriptReactiveTaskControllerDescriptor & makVre::DtVreScriptReactiveTaskControllerDescriptor::operator= | ( | const DtVreScriptReactiveTaskControllerDescriptor & | orig | ) |
Assignment operator.
| orig | The source descriptor to copy from |
Assigns the contents of the provided descriptor to this one.
References DtVreScriptReactiveTaskControllerDescriptor().
|
virtual |
Sets the role to script list mapping.
| map | The mapping of roles to allowed script lists |
Sets the mapping between roles and lists of scripts that are allowed to be executed by entities with those roles while they are engaged in tasks.
|
virtual |
Gets the role to script list mapping.
Returns the mapping between roles and lists of scripts that are allowed to be executed by entities with those roles while they are engaged in tasks.
|
overridevirtual |
Gets the reader/writer type identifier.
Returns the type string used for reader/writer registration and lookup. Overrides the base class implementation.
|
static |
Gets the XML type string used when archiving to an XML stream.
Returns the type string used when archiving this descriptor to an XML stream.
Referenced by xmlType().
|
inlineoverridevirtual |
Gets the XML type for this instance.
Returns the type string used when archiving this descriptor to an XML stream. Overrides the base class implementation.
References theXmlType().
|
static |
Factory function to create a new instance of this descriptor.
Static factory function used by the descriptor creation system to instantiate new instances of this descriptor type.
|
protected |
Mapping of roles to allowed reactive task scripts.
Stores the mapping between roles and lists of scripts that are allowed to be executed by entities with those roles while they are engaged in tasks. This controls which reactive behavior scripts can run based on entity role assignments.