API - CommandContext

This is the context object which will be passed to every behavior method.

Methods

This method will create a new Role to use in DCI. These roles will only be available in the current context.

Parameters
Name Type Description
name String The name of the created role
object Object The object the methods need to be bound to.
methods Object The methods which need to be bound to the role.

This method will clear the context of all remaining Roles.

Returns a single role Object. The returned object will have all the role functions added to it.

Parameters
Name Type Description
name String

Returns Object: The role object