GraphMine

graphmine-core / io.github.sof3.graphmine.entity / EntityController

EntityController

interface EntityController

Controls the actions of an entity.

Each instance of EntityController should only be applied on one entity.

Functions

onGainControl abstract fun onGainControl(): Unit
Invoked when the controller is added to the entity
onLoseControl abstract fun onLoseControl(): Unit
Invoked when the controller is removed from the entity