Skip to content

Controlled

class Controlled : Component()
Example
on_player_option("Inspect") { player ->
val who = if (target.hasComponent<Controlled>()) "a player" else "a bot"
player.message("That is $who.")
}
val sync: PlayerSyncView
override fun onComponentAddedToEntity()
fun stubObserver(
actor: Actor,
username: String
): Controlled