go_dreamfactory/modules/capturesheep/configure.go
2023-08-31 18:19:13 +08:00

26 lines
634 B
Go

package capturesheep
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
cfg "go_dreamfactory/sys/configure/structs"
)
const (
game_arenarobot = "game_arenarobot.json" //ai配置表
)
type configureComp struct {
modules.MCompConfigure
module *CaptureSheep
}
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompConfigure.Init(service, module, comp, options)
this.module = module.(*CaptureSheep)
err = this.LoadMultiConfigure(map[string]interface{}{
game_arenarobot: cfg.NewGameArenaRobot,
})
return
}