File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ public virtual void Save(BinaryWriter outf)
175175 outf . Write ( ElectricTrainSupplyState . ToString ( ) ) ;
176176 outf . Write ( LowVoltagePowerSupplyState . ToString ( ) ) ;
177177 outf . Write ( BatteryState . ToString ( ) ) ;
178+ outf . Write ( VentilationState . ToString ( ) ) ;
179+ outf . Write ( HeatingState . ToString ( ) ) ;
180+ outf . Write ( AirConditioningState . ToString ( ) ) ;
181+
182+ outf . Write ( HeatFlowRateW ) ;
178183 }
179184
180185 public virtual void Restore ( BinaryReader inf )
@@ -184,7 +189,13 @@ public virtual void Restore(BinaryReader inf)
184189 FrontElectricTrainSupplyCableConnected = inf . ReadBoolean ( ) ;
185190
186191 ElectricTrainSupplyState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
192+ LowVoltagePowerSupplyState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
187193 BatteryState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
194+ VentilationState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
195+ HeatingState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
196+ AirConditioningState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
197+
198+ HeatFlowRateW = inf . ReadSingle ( ) ;
188199
189200 IsFirstUpdate = false ;
190201 }
You can’t perform that action at this time.
0 commit comments