From 7fadd063e16d1bf376996aa621c07e3d51e89e85 Mon Sep 17 00:00:00 2001 From: liwei <2211068034@qq.com> Date: Thu, 10 Aug 2023 21:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=85=8D=E7=BD=AE=E8=AF=BB?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/stonehenge/configure.go | 37 +++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/modules/stonehenge/configure.go b/modules/stonehenge/configure.go index a9adc2247..7c1549ba2 100644 --- a/modules/stonehenge/configure.go +++ b/modules/stonehenge/configure.go @@ -12,17 +12,18 @@ import ( ) const ( - game_bufflottery = "game_bufflottery.json" - game_eventlottery = "game_eventlottery.json" - game_roomlottery = "game_roomlottery.json" - game_roomconf = "game_stoneroom.json" - game_stageconf = "game_stonestage.json" - game_buffconf = "game_stonebuff.json" - game_eventconf = "game_stoneevent.json" - game_bossconf = "game_stoneboss.json" - game_battleconf = "game_stonebattle.json" - game_stonetalent = "game_stonetalent.json" - game_storeconf = "game_stonestore.json" // 商店配置 + game_bufflottery = "game_bufflottery.json" + game_eventlottery = "game_eventlottery.json" + game_roomlottery = "game_roomlottery.json" + game_roomconf = "game_stoneroom.json" + game_stageconf = "game_stonestage.json" + game_buffconf = "game_stonebuff.json" + game_eventconf = "game_stoneevent.json" + game_bossconf = "game_stoneboss.json" + 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 +}