A struct representing a Transponder Code used in FlightSim. This can convert between strings, integers and FSUIPC's BCD format for offsets.
More...
|
ushort | ToBCD () |
| Gets the Transponder Code as a Binary-Coded Decimal (BCD). Used by FSUIPC in some offsets.
|
|
int | ToInteger () |
| Gets the Transponder Code as an integer type.
|
|
override string | ToString () |
| Gets the Transponder Code as a string.
|
|
| FsTransponderCode (ushort codeBCD) |
| Creates a new Transponder Code from the Binary-Coded Decimal (BCD) format used by FSUIPC.
|
|
| FsTransponderCode (string codeString) |
| Creates a new Transponder Code from a string.
|
|
| FsTransponderCode (int codeInteger) |
| Creates a new Transponder Code from an integer value.
|
|
A struct representing a Transponder Code used in FlightSim. This can convert between strings, integers and FSUIPC's BCD format for offsets.
◆ FsTransponderCode() [1/3]
Creates a new Transponder Code from the Binary-Coded Decimal (BCD) format used by FSUIPC.
- Parameters
-
codeBCD | The transponder code in BCD format |
◆ FsTransponderCode() [2/3]
Creates a new Transponder Code from a string.
- Parameters
-
codeString | The Transponder Code as a string |
◆ FsTransponderCode() [3/3]
Creates a new Transponder Code from an integer value.
- Parameters
-
codeInteger | The Transponder Code as an integer |
◆ ToBCD()
Gets the Transponder Code as a Binary-Coded Decimal (BCD). Used by FSUIPC in some offsets.
- Returns
- A ushort in BCD format that can written to FSUIPC offsets
◆ ToInteger()
Gets the Transponder Code as an integer type.
- Returns
- The transponder code as an intger
◆ ToString()
override string ToString |
( |
| ) |
|
|
inline |
Gets the Transponder Code as a string.
- Returns
- A string representing the Transponder Code