public Simulation() { _timer = new Stopwatch(); activeEngines = new List <EngineSim>(); allEngines = new List <EngineSim>(); allFuelLines = new List <PartSim>(); allParts = new List <PartSim>(); decoupledParts = new HashSet <PartSim>(); dontStagePartsLists = new List <List <PartSim> >(); drainingParts = new HashSet <PartSim>(); drainingResources = new HashSet <int>(); partSimLookup = new Dictionary <Part, PartSim>(); partList = new List <Part>(); totalStageThrustForce = new ForceAccumulator(); vectorAverager = new WeightedVectorAverager(); }
public Simulation() { this.allParts = new List <PartSim>(); this.allFuelLines = new List <PartSim>(); this.drainingParts = new HashSet <PartSim>(); this.allEngines = new List <EngineSim>(); this.activeEngines = new List <EngineSim>(); this.drainingResources = new HashSet <int>(); this.totalStageThrustForce = new ForceAccumulator(); // A dictionary for fast lookup of Part->PartSim during the preparation phase partSimLookup = new Dictionary <Part, PartSim>(); if (SimManager.logOutput) { MonoBehaviour.print("Simulation created"); } }
public Simulation() { this.allParts = new List<PartSim>(); this.allFuelLines = new List<PartSim>(); this.drainingParts = new HashSet<PartSim>(); this.allEngines = new List<EngineSim>(); this.activeEngines = new List<EngineSim>(); this.drainingResources = new HashSet<int>(); this.totalStageThrustForce = new ForceAccumulator(); // A dictionary for fast lookup of Part->PartSim during the preparation phase partSimLookup = new Dictionary<Part, PartSim>(); if (SimManager.logOutput) { MonoBehaviour.print("Simulation created"); } }
public Simulation() { _timer = new Stopwatch(); activeEngines = new List<EngineSim>(); allEngines = new List<EngineSim>(); allFuelLines = new List<PartSim>(); allParts = new List<PartSim>(); decoupledParts = new HashSet<PartSim>(); dontStagePartsLists = new List<List<PartSim>>(); drainingParts = new HashSet<PartSim>(); drainingResources = new HashSet<int>(); partSimLookup = new Dictionary<Part, PartSim>(); partList = new List<Part>(); totalStageThrustForce = new ForceAccumulator(); vectorAverager = new WeightedVectorAverager(); }