Component
abstract class Componentclass Thirst(var level: Int = 0) : Component()
on_npc_option(Assets.Npc.hans.id, "Drink") { player -> val thirst = player.findComponent<Thirst>() ?: Thirst().also { player.addComponent(it) } thirst.level = 0 player.message("You quench your thirst.")}entity
Section titled “entity”lateinit var entity: EntityonComponentRemovedFromEntity
Section titled “onComponentRemovedFromEntity”open fun onComponentRemovedFromEntity()exclusivityGroup
Section titled “exclusivityGroup”open val exclusivityGroup: Any?