public virtual void Parse(string lowercasetoken, STFReader stf) { switch (lowercasetoken) { case "wagon(ortspowersupply": ScriptName = stf.ReadStringBlock(null); break; case "wagon(ortspowerondelay": PowerOnDelayS = stf.ReadFloatBlock(STFReader.UNITS.Time, null); break; case "wagon(ortsbattery(mode": case "wagon(ortsbattery(delay": BatterySwitch.Parse(lowercasetoken, stf); break; case "wagon(ortspowersupplycontinuouspower": ContinuousPowerW = stf.ReadFloatBlock(STFReader.UNITS.Power, 0f); break; case "wagon(ortspowersupplyheatingpower": HeatingPowerW = stf.ReadFloatBlock(STFReader.UNITS.Power, 0f); break; case "wagon(ortspowersupplyairconditioningpower": AirConditioningPowerW = stf.ReadFloatBlock(STFReader.UNITS.Power, 0f); break; case "wagon(ortspowersupplyairconditioningyield": AirConditioningYield = stf.ReadFloatBlock(STFReader.UNITS.Power, 0.9f); break; } }
public virtual void Parse(string lowercasetoken, STFReader stf) { switch (lowercasetoken) { case "engine(ortspowersupply": ScriptName = stf.ReadStringBlock(null); break; case "engine(ortspowerondelay": PowerOnDelayS = stf.ReadFloatBlock(STFReader.Units.Time, null); break; case "engine(ortsauxpowerondelay": AuxPowerOnDelayS = stf.ReadFloatBlock(STFReader.Units.Time, null); break; case "engine(ortsbattery(mode": case "engine(ortsbattery(delay": BatterySwitch.Parse(lowercasetoken, stf); break; case "engine(ortsmasterkey(mode": case "engine(ortsmasterkey(delayoff": case "engine(ortsmasterkey(headlightcontrol": MasterKey.Parse(lowercasetoken, stf); break; case "engine(ortselectrictrainsupply(mode": ElectricTrainSupplySwitch.Parse(lowercasetoken, stf); break; } }