delegate

protected fun delegate(@NonNull child: BunyipsSubsystem)

Call to delegate the update of this subsystem, usually a component of another subsystem, to this subsystem. This is useful in applications where a subsystem is being used as a component of another subsystem, and the parent subsystem wishes to update the child subsystem.

Do note that the child subsystem will be updated after the main subsystem update dispatch, and do be aware that performing any operations such as disabling/enabling will be done on the child subsystem. The only operation that is not delegated is the current task, which is managed by the parent subsystem manually.

Parameters

child

the subsystem to add to the list of children of this subsystem