Esempio n. 1
0
 /// <summary>
 /// Generate new EquipmentList based on ShipEquipDataTable
 /// </summary>
 /// <param name="eqTable">Source EquipTable.</param>
 /// <returns>List of equipment; can be assigned to Character's EquipmentList.</returns>
 public static List <Tuple <uint, string, float> > GetEquipmentList(uiTables.ShipEquipDataTable eqTable)
 {
     return((from uiTables.ShipEquipRow row in eqTable.Rows
             where row.Equipment != ""
             select
             new Tuple <uint, string, float>(Universe.CreateID(row.Equipment), row.HPName, 1f))
            .ToList());
 }