コード例 #1
0
 public void MaterialList(EDDiscovery2.DB.MaterialCommoditiesList mc, DB.SQLiteConnectionUser conn)
 {
     if (Materials != null)
     {
         foreach (KeyValuePair <string, int> k in Materials) // may be commodities or materials
         {
             mc.Craft(k.Key, k.Value);                       // same as this, uses up materials
         }
     }
 }
コード例 #2
0
 public void MaterialList(EDDiscovery2.DB.MaterialCommoditiesList mc, DB.SQLiteConnectionUser conn)
 {
     if (Ingredients != null)
     {
         foreach (KeyValuePair <string, int> k in Ingredients)        // may be commodities or materials
         {
             mc.Craft(k.Key, k.Value);
         }
     }
 }