heroagent/pkg2_dont_use/heroscript/handlerfactory/herohandler/accessors.go
2025-05-23 15:40:41 +04:00

16 lines
396 B
Go

package herohandler
import (
"git.ourworld.tf/herocode/heroagent/pkg/heroscript/handlerfactory/core"
)
// GetFactory returns the handler factory
func (h *HeroHandler) GetFactory() *core.HandlerFactory {
return h.factory
}
// RegisterHandler registers a handler with the factory
func (h *HeroHandler) RegisterHandler(handler core.Handler) error {
return h.factory.RegisterHandler(handler)
}