private void On_Burn_Challenge(CUIEvent uievent) { CSDT_SINGLE_GAME_OF_BURNING reportInfo = BurnExpeditionUT.Create_CSDT_SINGLE_GAME_OF_BURNING(this.model.curSelect_LevelIndex); ResLevelCfgInfo info = BurnExpeditionUT.Get_LevelConfigInfo(Singleton <BurnExpeditionController> .instance.model.curSelect_LevelIndex); DebugHelper.Assert(info != null); if (info != null) { byte iHeroNum = (byte)info.iHeroNum; uint dwBattleListID = info.dwBattleListID; Singleton <CHeroSelectBaseSystem> .instance.SetPVEDataWithBurnExpedition(dwBattleListID, reportInfo, StringHelper.UTF8BytesToString(ref info.szName)); Singleton <CHeroSelectBaseSystem> .instance.OpenForm(enSelectGameType.enBurning, iHeroNum, 0, 0, 0); } }
private void On_Burn_Challenge(CUIEvent uievent) { CSDT_SINGLE_GAME_OF_BURNING reportInfo = BurnExpeditionUT.Create_CSDT_SINGLE_GAME_OF_BURNING(this.model.curSelect_LevelIndex); ResLevelCfgInfo info = BurnExpeditionUT.Get_LevelConfigInfo(Singleton <BurnExpeditionController> .instance.model.curSelect_LevelIndex); DebugHelper.Assert(info != null); if (info != null) { byte iHeroNum = (byte)info.iHeroNum; uint dwBattleListID = info.dwBattleListID; Singleton <CHeroSelectSystem> .GetInstance().SetPVEDataWithBurnExpedition(iHeroNum, dwBattleListID, reportInfo, StringHelper.UTF8BytesToString(ref info.szName)); stUIEventParams par = new stUIEventParams { heroSelectGameType = enSelectHeroType.enBurning }; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.HeroSelect_OpenForm, par); } }