Files
2026-02-23 23:54:27 +00:00

11 lines
277 B
Go

package engine
// MapRegistry is a simple callback registry for action callbacks.
type MapRegistry map[ActionKind]ActionCallback
// Get resolves a callback by action kind.
func (r MapRegistry) Get(kind ActionKind) (ActionCallback, bool) {
cb, ok := r[kind]
return cb, ok
}