コード例 #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
ファイル: Simulation.cs プロジェクト: teser1/KerbalEngineer
        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
ファイル: Simulation.cs プロジェクト: CliftonMarien/MechJeb2
        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
ファイル: Simulation.cs プロジェクト: CYBUTEK/KerbalEngineer
 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();
 }