Beispiel #1
0
 internal Engine(
     CoolingDef coolingDef,
     EngineHeatBlockDef engineHeatBlockDef,
     EngineCoreDef coreDef,
     Weights weights,
     List <MechComponentRef> externalHeatSinks)
 {
     ExternalHeatSinks = externalHeatSinks;
     HeatBlockDef      = engineHeatBlockDef;
     CoreDef           = coreDef;
     Weights           = weights;
     CoolingDef        = coolingDef; // last as it also CalculateStats()
 }
 // should be private but used during autofixer, rename EngineSearcher.Result to .Builder and apply new semantics
 internal Engine(
     CoolingDef coolingDef,
     EngineHeatBlockDef heatBlockDef,
     EngineCoreDef coreDef,
     Weights weights,
     List <MechComponentRef> heatSinksExternal,
     bool calculate = true)
 {
     HeatSinksExternal = heatSinksExternal;
     HeatBlockDef      = heatBlockDef;
     CoreDef           = coreDef;
     Weights           = weights;
     CoolingDef        = coolingDef;
     if (calculate)
     {
         CalculateStats();
     }
 }