new vcs.vcm.interaction.AbstractInteraction()
Subclasses
Members
-
_defaultActive{number}
-
A bitmask representing the default events to listen to
vcs.vcm.interaction.EventType, default is NONE -
_defaultModificationKey{number}
-
The default bitmask for modification keys to listen to,
vcs.vcm.interaction.ModificationKeyTypedefault is NONE -
active{number}
-
The current active bitmask for
vcs.vcm.interaction.EventType -
modificationKey{number}
-
The current active
vcs.vcm.interaction.ModificationKeyType
Methods
-
handleMapChange(map)
-
Actions to perform on map change
Name Type Description mapvcs.vcm.maps.Map -
pipe(event){Promise.<vcs.vcm.interaction.Event>}
-
Main function, called when an event is raised for this interaction
Name Type Description eventvcs.vcm.interaction.Event -
setActive(active)
-
Sets the interaction active. Use boolean (true|false) to toggle default behavior. Pass it a bitmask of
vcs.vcm.interaction.EventTypeto change the active state. Call without arguments to reset the default active, modification key and pointer Key behaviorName Type Description activeboolean | number -
setModification(mod)
-
Sets the modification key to listen to
Name Type Description modnumber -
setPointer(pointer)
-
Sets the pointer key for this interaction$
Name Type Description pointernumber
virtualcityMAP 3.6