onStateOrSubstate

inline fun <I : State> onStateOrSubstate(handler: BehaviourWithFSMStateHandler<I>)

Add NON STRICT handler to list of available in future BehaviourContextWithFSM. Non strict means that for input State will be used KClass.isInstance and any inheritor of kClass will pass this requirement

See also