now with watchdogs

This commit is contained in:
minjaesong
2025-03-02 20:42:03 +09:00
parent 2bb1c8400e
commit f861a2727d
8 changed files with 69 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
package net.torvald.terrarum.modulebasegame
import net.torvald.terrarum.gameworld.GameWorld
/**
* @param runIntervalByTick how often should the watchdog run. 1: every single tick, 2: every other tick, 60: every second (if tickrate is 60)
*
* Created by minjaesong on 2025-03-02
*/
abstract class TerrarumWorldWatchdog(val runIntervalByTick: Int) {
abstract operator fun invoke(world: GameWorld)
}