上传配置读取

This commit is contained in:
liwei 2023-08-10 21:02:04 +08:00
parent 2b39b7527f
commit 7fadd063e1

View File

@ -12,17 +12,18 @@ import (
) )
const ( const (
game_bufflottery = "game_bufflottery.json" game_bufflottery = "game_bufflottery.json"
game_eventlottery = "game_eventlottery.json" game_eventlottery = "game_eventlottery.json"
game_roomlottery = "game_roomlottery.json" game_roomlottery = "game_roomlottery.json"
game_roomconf = "game_stoneroom.json" game_roomconf = "game_stoneroom.json"
game_stageconf = "game_stonestage.json" game_stageconf = "game_stonestage.json"
game_buffconf = "game_stonebuff.json" game_buffconf = "game_stonebuff.json"
game_eventconf = "game_stoneevent.json" game_eventconf = "game_stoneevent.json"
game_bossconf = "game_stoneboss.json" game_bossconf = "game_stoneboss.json"
game_battleconf = "game_stonebattle.json" game_battleconf = "game_stonebattle.json"
game_stonetalent = "game_stonetalent.json" game_stonetalent = "game_stonetalent.json"
game_storeconf = "game_stonestore.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 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
}