Container

interface Container<out T>

Indicates a node is an unbounded container with no maximum capacity.

Inheritors

Properties

Link copied to clipboard
abstract val occupants: Int

The number of occupants held by the container

Functions

Link copied to clipboard
abstract fun onEnter(callback: context(Simulator) (T) -> Unit)

Callback to execute when an entity enters the container

Link copied to clipboard
abstract fun onLeave(callback: context(Simulator) (T) -> Unit)

Callback to execute when an entity leaves the container

Link copied to clipboard