FSUIPC Client DLL
.NET interface for FSUIPC
FsTransponderCode Struct Reference

A struct representing a Transponder Code used in FlightSim. This can convert between strings, integers and FSUIPC's BCD format for offsets. More...

Public Member Functions

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.
 

Detailed Description

A struct representing a Transponder Code used in FlightSim. This can convert between strings, integers and FSUIPC's BCD format for offsets.

Constructor & Destructor Documentation

◆ FsTransponderCode() [1/3]

FsTransponderCode ( ushort codeBCD)
inline

Creates a new Transponder Code from the Binary-Coded Decimal (BCD) format used by FSUIPC.

Parameters
codeBCDThe transponder code in BCD format

◆ FsTransponderCode() [2/3]

FsTransponderCode ( string codeString)
inline

Creates a new Transponder Code from a string.

Parameters
codeStringThe Transponder Code as a string

◆ FsTransponderCode() [3/3]

FsTransponderCode ( int codeInteger)
inline

Creates a new Transponder Code from an integer value.

Parameters
codeIntegerThe Transponder Code as an integer

Member Function Documentation

◆ ToBCD()

ushort ToBCD ( )
inline

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()

int ToInteger ( )
inline

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