SSTUTools.SolarData.getCost C# (CSharp) Method

getCost() public method

public getCost ( ) : float
return float
        public float getCost()
        {
            float cost = def.cost * positions.Length;
            return cost;
        }

Usage Example

 private void updateCost()
 {
     modifiedCost = coreModule.getModuleCost();
     if (useAdapterCost)
     {
         modifiedCost += topModule.getModuleCost();
         modifiedCost += bottomModule.getModuleCost();
         modifiedCost += topDockModule.getModuleCost();
         modifiedCost += bottomDockModule.getModuleCost();
     }
     modifiedCost += solarModule.getCost();
 }