...
This commit is contained in:
15
pkg2/heroscript/handlerfactory/herohandler/accessors.go
Normal file
15
pkg2/heroscript/handlerfactory/herohandler/accessors.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user