public int Compare(object x, object y) { SHLoot lFirst = (SHLoot)x; SHLoot lSecond = (SHLoot)y; return(lFirst.id.CompareTo(lSecond.id)); }
private string LOOT_Item(SHLoot loot, SHXmlCore xmlCore) { string str = ""; for (int i = 0; i < loot.dataList.Count; i++) { if (loot.dataList[i].GetType() == typeof(SHLootSilver)) { str += ProcessLootSilver(loot.dataList[i] as SHLootSilver); } else if (loot.dataList[i].GetType() == typeof(SHLootItem)) { str += ProcessLootItem(xmlCore, loot.dataList[i] as SHLootItem); } } return(str); }
private string LOOT_SetString(SHLoot loot, SHXmlCore xmlCore) { string str = ""; loot.Compile(); loot.Build(xmlCore); str = (loot.idSpecified) ? loot.id.ToString() : String.Empty; str += ","; str += ((loot.comment != null) ? loot.comment : String.Empty); str += ","; str += LOOT_Item(loot, xmlCore); return(str); }
public void Add(SHLoot i) { dataList.Add(i); }