Exemple #1
0
    public override void ParseRowData(TsDataReader.Row tsRow)
    {
        this.m_tsTextGroup = NrTSingleton <NrTextMgr> .Instance.GetTextGroup(this.m_eTextMgr);

        if (this.m_tsTextGroup == null)
        {
            TsLog.LogError(string.Format("Error - NrTextTable_ForTsTxtMgr! No Regist Group({0}) - {1}", this.m_strGroupKey, this.m_strFilePath), new object[0]);
        }
        TEXT tEXT = new TEXT();

        tEXT.SetData(tsRow);
        if (!this.SetText(tEXT.TEXTKEY, tEXT.DATA))
        {
            TsLog.LogError("Error! Parsing - " + this.m_strFilePath, new object[0]);
        }
        if (this.m_IsQuestDlg)
        {
            this.Set_Quest_Dialog_Info(tEXT.TEXTKEY, tEXT.DATA);
        }
    }
Exemple #2
0
    public override bool ParseDataFromNDT(TsDataReader dr)
    {
        this.m_tsTextGroup = NrTSingleton <NrTextMgr> .Instance.GetTextGroup(this.m_eTextMgr);

        if (this.m_tsTextGroup == null)
        {
            Debug.LogError(string.Format("Error - NrTextTable_ForTsTxtMgr! No Regist Group({0}) - {1}", this.m_strGroupKey, this.m_strFilePath));
        }
        int num = 0;

        foreach (TsDataReader.Row row in dr)
        {
            bool flag = this.SetText(row.GetColumn(1), row.GetColumn(2, true));
            if (flag)
            {
                num++;
                if (this.m_IsQuestDlg)
                {
                    this.Set_Quest_Dialog_Info(row.GetColumn(1), row.GetColumn(2, true));
                }
            }
        }
        return(true);
    }