onLeave

open override fun onLeave(callback: context(Simulator) (T) -> Unit)

Registers a callback to be invoked when an entity leaves this container.

Parameters

callback

the function to invoke with the leaving entity