Open Rails

FormatStrings Members

FormatStrings overview

Public Static Fields

bar
bhp
btu
c
Catalog
f
ft
ft2
ft3
galUK
galUS
h
hp
inhg
kg
kgfpcm2
kJ
klbf
km
kmph
kN
kpa
kW
l
lb
lbf
m
m2
m3
mi
min
MJ
mm
mph
n
psi
rpm
s
t
tonUK
tonUS
yd

Public Static Methods

FormatApproximateTime Converts duration in floating-point seconds to whole hours and minutes (rounded to nearest).
FormatArea
FormatDistance Formatted unlocalized distance string, used in reports and logs.
FormatDistanceDisplay Formatted localized distance string, as displayed in in-game windows
FormatEnergy
FormatEnergyDensityByMass
FormatEnergyDensityByVolume
FormatForce
FormatFuelVolume
FormatLargeMass
FormatMass format localized mass string, as displayed in in-game windows.
FormatPower
FormatPreciseTime Converts duration in floating-point seconds to whole hours, minutes and seconds and 2 decimal places of seconds.
FormatPressure Formatted localized pressure string
FormatShortDistanceDisplay
FormatSpeed Formatted unlocalized speed string, used in reports and logs.
FormatSpeedDisplay Formatted localized speed string, used to display tracking speed, with 1 decimal precision
FormatSpeedLimit Formatted localized speed string, used to display speed limits, with 0 decimal precision
FormatTemperature
FormatTime Converts duration in floating-point seconds to whole hours, minutes and seconds (rounded down).
FormatVolume

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

FormatStrings Class | ORTS.Common Namespace