blob: 0ce25bd25bcec097013fe9ec297658bd198c2785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Package engine provides a tick scheduler that drives all time-based
// world simulation.
//
// The Engine runs on a 600ms interval. Subscribers register callbacks with
// a tick interval (1 = every tick, N = every Nth tick). Callbacks return
// true to remain subscribed or false to auto-unsubscribe.
//
// The main game loop subscribes a single callback that advances combat,
// regeneration, wandering, woodcutting depletion, fire decay, and player
// actions all on the same tick beat.
package engine
|