onEnter

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

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

Parameters

callback

the function to invoke with the entering entity