CameraSetLimitsCommand
Extends: ESCCameraBaseCommand < ESCBaseCommand < Resource
Description
camera_set_limits camlimits_id
Limits the current camera’s movement to a limit defined in the ESCRoom
’s
definition. A limit is defined as an upper-left (x, y) coordinate, a width
and a height that the camera must stay within. Multiple limits can be
defined for a room, allowing for new areas to be seen once they have
been ‘unlocked’.
Parameters
camlimits_id: Index of the camera limit defined in the
camera limits
list of the currentESCRoom
For more details see: https://docs.escoria-framework.org/camera
@ESC
Method Descriptions
configure
func configure() -> ESCCommandArgumentDescriptor
Return the descriptor of the arguments of this command
validate
func validate(arguments: Array)
Validate whether the given arguments match the command descriptor
run
func run(command_params: Array) -> int
Run the command
interrupt
func interrupt()
Function called when the command is interrupted.