示例#1
0
        public Core()
        {
            if (Core.Instance != null)
            {
                Destroy(this);
                return;
            }

            Core.Instance          = this;
            mVessels               = new Dictionary <Vessel, RadiationTracker>();
            mKerbals               = new Dictionary <string, KerbalTracker>();
            mSolar                 = new SolarFlux();
            mRandom                = new System.Random();
            mFluxWindow            = new UI.FluxWindow();
            mRosterWindow          = new UI.RosterWindow();
            EmptyVessel            = new Vessel();
            EmptyVessel.vesselName = "Unassigned";
            va       = new Dictionary <string, RadiationEnvironment>();
            so       = new Dictionary <string, RadiationEnvironment>();
            ga       = new Dictionary <string, RadiationEnvironment>();
            resAbsCe = new Dictionary <string, double>();
        }
示例#2
0
文件: Core.cs 项目: kjoenth/kpu_mod
        public Core()
        {
            if (Core.Instance != null)
            {
                Destroy(this);
                return;
            }

            Core.Instance = this;
            mVessels = new Dictionary<Vessel, RadiationTracker>();
            mKerbals = new Dictionary<string, KerbalTracker>();
            mSolar = new SolarFlux();
            mRandom = new System.Random();
            mFluxWindow = new UI.FluxWindow();
            mRosterWindow = new UI.RosterWindow();
            EmptyVessel = new Vessel();
            EmptyVessel.vesselName = "Unassigned";
            va = new Dictionary<string, RadiationEnvironment>();
            so = new Dictionary<string, RadiationEnvironment>();
            ga = new Dictionary<string, RadiationEnvironment>();
            resAbsCe = new Dictionary<string, double>();
        }