Esempio n. 1
0
        public void Parse(string name, out Dictionary<int, ItemData> kvDic)
        {
            LoadFile(name);

            kvDic = new Dictionary<int, ItemData>();

            while(!EndOfRow)
            {
                int col = 0;
                ItemData data = new ItemData();

                data.Kid = ReadInt(col++);
                data.Name = ReadString(col++);
                data.Description = ReadString(col++);
                data.Type = ReadEnum<ItemType>(col++);
                data.Res2D = ReadString(col++);
                data.Res3D = ReadString(col++);

                kvDic.Add(data.Kid, data);
                NextLine();
            }
        }
Esempio n. 2
0
 public ItemInfo(ItemData data, int count)
 {
     Data = data;
     Count = count;
 }