public static void UpdateEntryCost(AvailablePart ap)
        {
            string name = GetPartName(ap);

            EntryCostDatabase.ClearTracker();

            PartEntryCostHolder h;

            if (holders.TryGetValue(name, out h))
            {
                ap.SetEntryCost(h.GetCost());
            }
        }
Exemple #2
0
 public double ConfigEntryCost(string cfgName)
 {
     EntryCostDatabase.ClearTracker();
     return(EntryCostDatabase.GetCost(cfgName));
 }