API - CommandContext
This is the context object which will be passed to every behavior method.
This method will create a new Role to use in DCI. These roles will only be available in the current context.Parameters
|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
Returns Object: The role object