update
This commit is contained in:
parent
b50497a9e8
commit
1bb52c4df9
@ -5,6 +5,7 @@ import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
)
|
||||
|
||||
@ -17,6 +18,7 @@ const (
|
||||
|
||||
type configureComp struct {
|
||||
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) {
|
||||
@ -27,6 +29,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
||||
gameWorldAll: cfg.NewGameWorldAll,
|
||||
gameburiedCond: cfg.NewGameBuriedCondi,
|
||||
})
|
||||
configure.RegisterConfigure(gameWorldTask, cfg.NewGameBuriedCondi, this.updateconfigure)
|
||||
return
|
||||
}
|
||||
|
||||
@ -46,6 +49,10 @@ func (this *configureComp) getWorldtaskCfg() (data *cfg.GameWorldTask, err error
|
||||
return
|
||||
}
|
||||
|
||||
func (this *configureComp) updateconfigure() {
|
||||
|
||||
}
|
||||
|
||||
func (this *configureComp) getWorldAllCfg() (data *cfg.GameWorldAll, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
|
@ -140,7 +140,9 @@ func (this *Worldtask) TCondFinishNotify(uid string, conds []*pb.ConIProgress) {
|
||||
})
|
||||
}
|
||||
}
|
||||
taskConds[cfg.Group] = currentTasks
|
||||
if currentTasks != nil {
|
||||
taskConds[cfg.Group] = currentTasks
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user