Exemple #1
0
            public int Compare(object x, object y)
            {
                SHLoot lFirst  = (SHLoot)x;
                SHLoot lSecond = (SHLoot)y;

                return(lFirst.id.CompareTo(lSecond.id));
            }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public void Add(SHLoot i)
 {
     dataList.Add(i);
 }