Пример #1
0
 /// <summary>
 /// Reads the concise item information from the item file. The index is the line number of the item.
 /// </summary>
 /// <returns>The item from file.</returns>
 /// <param name="index">Index.</param>
 private static DisplayItem ReadItemFromFile(ItemType type, int index)
 {
     if (type == ItemType.Permanent)
     {
         return(PermanentItem.GetItemByID(index));
     }
     else
     {
         return(UsableItem.GetItemByID(index));
     }
 }