Skip to content

Viewport

class Viewport(internal var projection: EntityUUID) : Component()
Example
fun isRiding(player: Actor): Boolean = player.hasComponent<Viewport>()
on_player_option("Inspect") { player ->
if (isRiding(target)) player.message("They are aboard a ship.")
}
override fun onComponentAddedToEntity()