BoundedContainer

Indicates a node is a bounded container with some maximum capacity defined.

Inheritors

Properties

Link copied to clipboard
abstract val capacity: Int

The maximum capacity of the container

Link copied to clipboard
open val isFull: Boolean

Whether the container is at max occupancy

Link copied to clipboard
abstract val occupants: Int

The number of occupants held by the container

Link copied to clipboard

Percentage of how much of the container's max capacity is used at the moment

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
open override fun properties(): List<DisplayProperty>
Link copied to clipboard