配置解析
This commit is contained in:
parent
aa457067b5
commit
9c2eb0b4e6
@ -71,8 +71,6 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
||||
err = this.LoadConfigure(game_smithyatlaslv, cfg.NewGameSmithyAtlasLv)
|
||||
err = this.LoadConfigure(game_smithyatlasscore, cfg.NewGameSmithyAtlasScore)
|
||||
|
||||
_d := this.GetSmithProficiencyConf(1)
|
||||
this.module.Errorf("%v", _d)
|
||||
return
|
||||
}
|
||||
|
||||
@ -252,7 +250,7 @@ func (this *configureComp) GetSmithyStoveConf(level int32) (data *cfg.GameSmithy
|
||||
|
||||
// 获取图鉴信息
|
||||
func (this *configureComp) GetSmithyAtlasConf(id string) (data *cfg.GameSmithyAtlasData) {
|
||||
if v, err := this.GetConfigure(game_smithystove); err == nil {
|
||||
if v, err := this.GetConfigure(game_smithyatlas); err == nil {
|
||||
if configure, ok := v.(*cfg.GameSmithyAtlas); ok {
|
||||
data = configure.Get(id)
|
||||
return
|
||||
@ -263,7 +261,7 @@ func (this *configureComp) GetSmithyAtlasConf(id string) (data *cfg.GameSmithyAt
|
||||
}
|
||||
|
||||
func (this *configureComp) GetSmithyAtlasLvConf(lv int32) (data *cfg.GameSmithyAtlasLvData) {
|
||||
if v, err := this.GetConfigure(game_smithystove); err == nil {
|
||||
if v, err := this.GetConfigure(game_smithyatlaslv); err == nil {
|
||||
if configure, ok := v.(*cfg.GameSmithyAtlasLv); ok {
|
||||
data = configure.Get(lv)
|
||||
return
|
||||
@ -279,7 +277,7 @@ func (this *configureComp) GetSmithyAtlasScoreConf(quality int32, lv int32) (dat
|
||||
|
||||
// 获取图鉴分数
|
||||
func (this *configureComp) LoadSmithyAtlasScoreConf() {
|
||||
if v, err := this.GetConfigure(game_smithystove); err == nil {
|
||||
if v, err := this.GetConfigure(game_smithyatlasscore); err == nil {
|
||||
if configure, ok := v.(*cfg.GameSmithyAtlasScore); ok {
|
||||
this.hlock.Lock()
|
||||
defer this.hlock.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user