package game import ( "fmt" "thirdcollapse/internal/net" ) func (g *Game) doTickTest(sess *net.Session) { count := 0 g.Ticks.Subscribe(5, func() bool { count++ sess.WriteLine(fmt.Sprintf("[Tick #%d] 600ms heartbeat is working.", count)) if count >= 3 { sess.WriteLine("[Tick test complete.]") return false } return true }) sess.WriteLine("Tick test started — you'll see 3 messages at 5-tick intervals while commands still work.") }