Skip to content

Invisible

class Invisible() : Component()
Example
on_input<DeveloperCommandInput> { player ->
if (name != "hide") return@on_input
if (player.hasComponent<Invisible>()) player.removeComponent<Invisible>() else player.addComponent(Invisible())
player.message(if (player.hasComponent<Invisible>()) "You are hidden." else "You are seen again.")
}