Skip to content

HealthBarDefinition

interface HealthBarDefinition
Example
fun showHealth(npc: Npc, bar: HealthBarDefinition, percent: Int) {
npc.replaceComponent(HealthBar(bar, currentPercentage = percent))
Logger.info("${bar.name} is ${bar.width} wide")
}
val name: String
val id: Int
val asset: Asset
val width: Int