package arena import ( "go_dreamfactory/lego/core" "go_dreamfactory/modules" cfg "go_dreamfactory/sys/configure/structs" ) const ( game_arenabuychallenge = "game_arenabuychallenge.json" //购买挑战记录 game_arenaactivereward = "game_arenaactivereward.json" //挑战奖励 game_arenaarobot = "game_arenaarobot.json" //ai配置表 game_arenarankreward = "game_arenarankreward.json" //比赛奖励配置 game_arenachallengenpc = "game_arenachallengenpc.json" //剧情表 ) ///竞技场配置管理组件 type configureComp struct { modules.MCompConfigure module *Arena } //组件初始化接口 func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { this.MCompConfigure.Init(service, module, comp, options) this.module = module.(*Arena) this.LoadConfigure(game_arenabuychallenge, cfg.NewGameArenaBuyChallenge) this.LoadConfigure(game_arenaactivereward, cfg.NewGameArenaActiveReward) this.LoadConfigure(game_arenaarobot, cfg.NewGameArenaRobot) this.LoadConfigure(game_arenarankreward, cfg.NewGameArenaRankReward) this.LoadConfigure(game_arenachallengenpc, cfg.NewGameArenaChallengeNpc) return }