package game // daemons.c — the daemon and fuse callbacks. Each callback is ported in the // phase that owns its subsystem; runDaemon is the dispatch switch that // replaces the C function pointers. // runDaemon invokes the callback named by id (the call through d_func in C). func (g *RogueGame) runDaemon(id DaemonID, arg int) { _ = arg switch id { default: // Callbacks are added to this switch as their subsystems are // ported; reaching one that isn't here is a porting bug, not a // game state. panic("daemon not yet ported") } }