public static bool RegisterGetBodyAreaOverride(doubleThermalDataDelegate dlg) { if (!CheckSpaceCenter()) { return(false); } if (getBodyAreaOverride == null) { getBodyAreaOverride = dlg; return(true); } Log.warn("GetBodyArea already has an override"); return(false); }
public static bool RegisterGetBodyAreaOverride(doubleThermalDataDelegate dlg) { if (HighLogic.LoadedScene != GameScenes.SPACECENTER) { print("You can only register on the SPACECENTER scene"); } if (getBodyAreaOverride == null) { getBodyAreaOverride = dlg; return(true); } print("GetBodyArea already has an override"); return(false); }