public static bool RegisterCalculateBackgroundRadiationTemperatureOverride(doubleDoubleDelegate dlg)
        {
            if (!CheckSpaceCenter())
            {
                return(false);
            }

            if (calculateBackgroundRadiationTemperatureOverride == null)
            {
                calculateBackgroundRadiationTemperatureOverride = dlg;
                return(true);
            }

            Log.warn("CalculateBackgroundRadiationTemperature already has an override");
            return(false);
        }
예제 #2
0
        public static bool RegisterCalculateBackgroundRadiationTemperatureOverride(doubleDoubleDelegate dlg)
        {
            if (HighLogic.LoadedScene != GameScenes.SPACECENTER)
            {
                print("You can only register on the SPACECENTER scene");
            }


            if (calculateBackgroundRadiationTemperatureOverride == null)
            {
                calculateBackgroundRadiationTemperatureOverride = dlg;
                return(true);
            }

            print("CalculateBackgroundRadiationTemperature already has an override");
            return(false);
        }