Exemple #1
0
            public int Compare(object x, object y)
            {
                SHDialog dlgFirst  = (SHDialog)x;
                SHDialog dlgSecond = (SHDialog)y;

                return(dlgFirst.id.CompareTo(dlgSecond.id));
            }
Exemple #2
0
        private void AddStringSay(SHDialog dialog, SHDialogSay dialogSay, ref SHStringXml DialogString)
        {
            m_nSaySelectID++;

            string szKey = "DIALOG_SAY_TEXT_" + dialog.id.ToString() + "_" + m_nSaySelectID;

            AddString(szKey, dialogSay.text, ref DialogString);

            foreach (SHDialogSelect dialogSelect in dialogSay.dataList)
            {
                AddStringSelect(dialog, dialogSelect, ref DialogString);
            }
        }
Exemple #3
0
        private void AddStringSelect(SHDialog dialog, SHDialogSelect dialogSelect, ref SHStringXml DialogString)
        {
            m_nSaySelectID++;

            string szKey = "DIALOG_SELECT_TEXT_" + dialog.id.ToString() + "_" + m_nSaySelectID;

            AddString(szKey, dialogSelect.text, ref DialogString);

            if (dialogSelect.Say != null)
            {
                AddStringSay(dialog, dialogSelect.Say, ref DialogString);
            }
        }
Exemple #4
0
 public void Add(SHDialog i)
 {
     dataList.Add(i);
 }