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)
175
175
outf . Write ( ElectricTrainSupplyState . ToString ( ) ) ;
176
176
outf . Write ( LowVoltagePowerSupplyState . ToString ( ) ) ;
177
177
outf . Write ( BatteryState . ToString ( ) ) ;
178
+ outf . Write ( VentilationState . ToString ( ) ) ;
179
+ outf . Write ( HeatingState . ToString ( ) ) ;
180
+ outf . Write ( AirConditioningState . ToString ( ) ) ;
181
+
182
+ outf . Write ( HeatFlowRateW ) ;
178
183
}
179
184
180
185
public virtual void Restore ( BinaryReader inf )
@@ -184,7 +189,13 @@ public virtual void Restore(BinaryReader inf)
184
189
FrontElectricTrainSupplyCableConnected = inf . ReadBoolean ( ) ;
185
190
186
191
ElectricTrainSupplyState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
192
+ LowVoltagePowerSupplyState = ( PowerSupplyState ) Enum . Parse ( typeof ( PowerSupplyState ) , inf . ReadString ( ) ) ;
187
193
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 ( ) ;
188
199
189
200
IsFirstUpdate = false ;
190
201
}
You can’t perform that action at this time.
0 commit comments