This commit is contained in:
wh_zcy 2023-06-14 15:24:02 +08:00
parent b50497a9e8
commit 1bb52c4df9
2 changed files with 10 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/core" "go_dreamfactory/lego/core"
"go_dreamfactory/modules" "go_dreamfactory/modules"
"go_dreamfactory/sys/configure"
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
) )
@ -17,6 +18,7 @@ const (
type configureComp struct { type configureComp struct {
modules.MCompConfigure modules.MCompConfigure
// worldtaskGroup map[int32]*cfg.GameWorldtaskData
} }
func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
@ -27,6 +29,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
gameWorldAll: cfg.NewGameWorldAll, gameWorldAll: cfg.NewGameWorldAll,
gameburiedCond: cfg.NewGameBuriedCondi, gameburiedCond: cfg.NewGameBuriedCondi,
}) })
configure.RegisterConfigure(gameWorldTask, cfg.NewGameBuriedCondi, this.updateconfigure)
return return
} }
@ -46,6 +49,10 @@ func (this *configureComp) getWorldtaskCfg() (data *cfg.GameWorldTask, err error
return return
} }
func (this *configureComp) updateconfigure() {
}
func (this *configureComp) getWorldAllCfg() (data *cfg.GameWorldAll, err error) { func (this *configureComp) getWorldAllCfg() (data *cfg.GameWorldAll, err error) {
var ( var (
v interface{} v interface{}

View File

@ -140,7 +140,9 @@ func (this *Worldtask) TCondFinishNotify(uid string, conds []*pb.ConIProgress) {
}) })
} }
} }
taskConds[cfg.Group] = currentTasks if currentTasks != nil {
taskConds[cfg.Group] = currentTasks
}
} }
} }
} }