public override bool ParseDataFromNDT(TsDataReader dr) { foreach (TsDataReader.Row data in dr) { ExplorationTable explorationTable = new ExplorationTable(); explorationTable.SetData(data); NrTSingleton <ExplorationManager> .Instance.AddExplorationTable(explorationTable); } return(true); }
public void AddExplorationTable(ExplorationTable table) { if (!this.m_kExploration.ContainsKey(table.m_nLimitLevel)) { List <ExplorationTable> list = new List <ExplorationTable>(); list.Add(table); this.m_kExploration.Add(table.m_nLimitLevel, list); } else { this.m_kExploration[table.m_nLimitLevel].Add(table); } }
public void PlayEnd(int tableIndex, int index, long money, ITEM item) { this.m_bSkip = false; this.m_Skip.Visible = false; this.resultTextTime = Time.realtimeSinceStartup; this.request = true; NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (this.m_fActivityUpdateTime < Time.realtimeSinceStartup) { MyCharInfoDlg myCharInfoDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MYCHARINFO_DLG) as MyCharInfoDlg; if (myCharInfoDlg == null) { return; } this.m_lbActivityTime.SetText(myCharInfoDlg.StrActivityTime); this.m_fActivityUpdateTime = Time.realtimeSinceStartup + 1f; this.SetActivityPointUI(); } this.textureKey = string.Empty; ExplorationTable explorationTable = NrTSingleton <ExplorationManager> .Instance.GetExplorationTable(kMyCharInfo.GetLevel(), tableIndex); if (explorationTable != null) { this.textureKey = this.m_szPath + explorationTable.m_szTexture[index]; if (null == NrTSingleton <UIImageBundleManager> .Instance.GetTexture(this.textureKey)) { string str = string.Format("{0}", "UI/Exploration/" + this.textureKey + NrTSingleton <UIDataManager> .Instance.AddFilePath); WWWItem wWWItem = Holder.TryGetOrCreateBundle(str + Option.extAsset, NkBundleCallBack.UIBundleStackName); wWWItem.SetItemType(ItemType.USER_ASSETB); wWWItem.SetCallback(new PostProcPerItem(this.SetBundleImage), this.textureKey); TsImmortal.bundleService.RequestDownloadCoroutine(wWWItem, DownGroup.RUNTIME, true); } if (0L < money) { this.resultText = string.Empty; string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1928"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.resultText, new object[] { textFromInterface, "count", money }); } else if (0 < item.m_nItemUnique) { this.resultText = string.Empty; string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1929"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.resultText, new object[] { textFromInterface2, "itemname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(item.m_nItemUnique), "count", item.m_nItemNum }); } } base.SetShowLayer(1, false); if (NrTSingleton <ContentsLimitManager> .Instance.IsWillSpend()) { if (0L < kMyCharInfo.m_nActivityPoint) { base.SetShowLayer(2, true); this.m_bContinue = true; base.SetShowLayer(3, true); } else { base.SetShowLayer(2, true); base.SetShowLayer(3, true); } } }