26 lines
634 B
Go
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
|
|
}
|