示例#1
0
 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();
 }
示例#2
0
 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();
 }