예제 #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()
        {
            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");
            }
        }
예제 #3
0
        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");
            }
        }
예제 #4
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();
 }