protected void InitializeEditorConstruct(ShipConstruct ship, bool forceReset) { dataReady = false; if (ship != null) { if (simulator == null) { simulator = new SystemHeatSimulator(); simulator.Reset(ship.Parts); } if (simulator != null && forceReset) { simulator.Reset(ship.Parts); simulator.ResetTemperatures(); } else { simulator.Refresh(ship.Parts); simulator.ResetTemperatures(); } dataReady = true; } else { if (SystemHeatSettings.DebugSimulation) { Utils.Log(String.Format("[SystemHeatEditor]: Ship is null")); } simulator = new SystemHeatSimulator(); } }
/// <summary> /// Referesh the data, given a ConfigNode event /// </summary> protected void OnVesselRollout(ShipConstruct node) { if (SystemHeatSettings.DebugSimulation) { Utils.Log(String.Format("[SystemHeatVessel]: OnVesselRollout", this.GetType().Name)); } simulator.ResetTemperatures(); }
/// <summary> /// Referesh the data, given a ConfigNode event /// </summary> protected void OnVesselRollout(ShipConstruct node) { Utils.Log(String.Format("[SystemHeatVessel]: OnVesselRollout", this.GetType().Name), LogType.Simulator); simulator.ResetTemperatures(); }