Skip to content

IdleClock

class IdleClock() : Component()
Example
on_input<DeveloperCommandInput> { player ->
if (name != "idle") return@on_input
val clock = player.getComponent<IdleClock>()
player.message("You have been idle for ${clock.idleCycles / IdleClock.MINUTE_CYCLES} minutes.")
}
val idleCycles: Int
fun touch()
fun backdate(cycles: Int)
const val MINUTE_CYCLES: Int = 60_000 / GraphicDurations.GAME_CYCLE_MS