上传配置读取
This commit is contained in:
parent
2b39b7527f
commit
7fadd063e1
@ -23,6 +23,7 @@ const (
|
||||
game_battleconf = "game_stonebattle.json"
|
||||
game_stonetalent = "game_stonetalent.json"
|
||||
game_storeconf = "game_stonestore.json" // 商店配置
|
||||
game_stoneillustrated = "game_stoneillustrated.json"
|
||||
)
|
||||
|
||||
///背包配置管理组件
|
||||
@ -708,3 +709,17 @@ func (this *configureComp) getGameStoneTalentData(id int32) (conf *cfg.GameStone
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// 读取任务配置表
|
||||
func (this *configureComp) getGameStoneIllustratedData(id int32) (confs []*cfg.GameStoneIllustratedData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
)
|
||||
if v, err = this.GetConfigure(game_stoneillustrated); err != nil {
|
||||
return
|
||||
} else {
|
||||
confs = v.(*cfg.GameStoneIllustrated).GetDataList()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user