public int Compare(object x, object y) { SHDialog dlgFirst = (SHDialog)x; SHDialog dlgSecond = (SHDialog)y; return(dlgFirst.id.CompareTo(dlgSecond.id)); }
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); } }
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); } }
public void Add(SHDialog i) { dataList.Add(i); }