FSUIPC Client DLL
.NET interface for FSUIPC
|
A strongly-typed list of Airports. More...
Public Member Functions | |
FsAirportCollection () | |
Creates a new, empty collection of FsAirport objects. | |
FsAirportCollection (IEnumerable< FsAirport > Airports) | |
Creates a new collection of FsAirport objects from another collection of FsAirports. | |
void | Add (FsAirport item) |
Adds an FsAirport object to this collection. | |
void | AddRange (IEnumerable< FsAirport > collection) |
Adds a collection of FsAirport objects to this collection. | |
void | Clear () |
Clears the collection. | |
FsAirportCollection | FindAll (Predicate< FsAirport > Match) |
Gets a new list of airports that match the search criteria. | |
FsAirport | Find (Predicate< FsAirport > Match) |
Gets a new list of airports that match the search criteria. | |
FsAirportCollection | OrderBy< TKey > (Func< FsAirport, TKey > KeySelector) |
Gets a new list of airports ordered by the specified value. | |
FsAirportCollection | InRangeOfNauticalMiles (double DistanceNM) |
Gets a new list of airports that are within the specified distance. The list will be ordered by distance with the closest first. | |
FsAirportCollection | InRangeOfKilometres (double DistanceKM) |
Gets a new list of airports that are within the specified distance. The list will be ordered by distance with the closest first. | |
FsAirportCollection | WithRunway (Predicate< FsRunway > RunwayMatch) |
Gets a new list of airports that have at least one runway which matches the search criteria. | |
void | LoadComponents (AirportComponents Components) |
Loads the specified component data for the airports in this collection. (e.g. Runways, Taxiways etc). | |
void | LoadComponents (byte ClassInstance, AirportComponents Components) |
Loads the specified component data for the airports in this collection. (e.g. Runways, Taxiways etc). | |
void | SetReferenceLocation (AirportComponents Components) |
Sets the reference location (from where distance and bearing information is calculated), for all airports in the collection, to the current player position. | |
void | SetReferenceLocation (byte ClassInstance, AirportComponents Components) |
Sets the reference location (from where distance and bearing information is calculated), for all airports in the collection, to the current player position. | |
void | SetReferenceLocation (FsAirport Airport, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated, for all airports in the collection. | |
void | SetReferenceLocation (string ICAO, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated, for all airports in the collection. | |
void | SetReferenceLocation (byte ClassInstance, string ICAO, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated, for all airports in the collection. | |
void | SetReferenceLocation (FsLatitude NewLatitude, FsLongitude NewLongitude, double MagVar, AirportComponents Components) |
Sets the location from where distance and bearing information is calculated, for all airports in the collection. | |
IEnumerator< FsAirport > | GetEnumerator () |
Returns an enumerator that will enumerator through all the airports. | |
PlayerLocationInfo | GetPlayerLocation (AirportComponents Components) |
Returns an object containing information about the current player location. This includes database object like any airport or gates the player is at. | |
PlayerLocationInfo | GetPlayerLocation (byte ClassInstance, AirportComponents Components) |
Returns an object containing information about the current player location. This includes database object like any airport or gates the player is at. | |
Properties | |
FsAirport | this[string ICAO] [get] |
Gets a single airport using the IACO code. Must be in upper case. | |
FsAirport | this[int Index] [get] |
Gets a single airport using the index. | |
int | Count [get] |
Gets the number of airports in the collection. | |
A strongly-typed list of Airports.
|
inline |
Adds a collection of FsAirport objects to this collection.
collection |
Gets a new list of airports that match the search criteria.
Match | A delegate or Lambda expression that will test each runway. |
|
inline |
Gets a new list of airports that match the search criteria.
Match | A delegate or Lambda expression that will test each runway. |
|
inline |
Returns an object containing information about the current player location. This includes database object like any airport or gates the player is at.
Components | The components you want to process. e.g. if you want to know what gate the player is at you need to pass the Gate component. |
If the requested components are not loaded for the Airport the player is at, they will be automatically loaded.
|
inline |
Returns an object containing information about the current player location. This includes database object like any airport or gates the player is at.
Components | The components you want to process. e.g. if you want to know what gate the player is at you need to pass the Gate component. |
If the requested components are not loaded for the Airport the player is at, they will be automatically loaded.
ClassInstance | The class instance of WideClient to connect to. |
|
inline |
Gets a new list of airports that are within the specified distance. The list will be ordered by distance with the closest first.
DistanceKM | The max distance for an airport to be included in Kilometres |
|
inline |
Gets a new list of airports that are within the specified distance. The list will be ordered by distance with the closest first.
DistanceNM | The max distance for an airport to be included in Nautical Miles |
|
inline |
Loads the specified component data for the airports in this collection. (e.g. Runways, Taxiways etc).
If a component is already loaded it will not be loaded again
Components | The components to load. Combine flags using the bitwise or operator. ( '|' in C#, 'or' in VB.NET ) |
|
inline |
Loads the specified component data for the airports in this collection. (e.g. Runways, Taxiways etc).
If a component is already loaded it will not be loaded again
Components | The components to load. Combine flags using the bitwise or operator. ( '|' in C#, 'or' in VB.NET ) |
ClassInstance | The class instance of a WideClient.exe to connect to |
|
inline |
Gets a new list of airports ordered by the specified value.
KeySelector | A delegate or Lambda expression specify the value to sort on. |
|
inline |
Sets the reference location (from where distance and bearing information is calculated), for all airports in the collection, to the current player position.
Requires an open connection to FSUIPC
Note that no components will be loaded by this method. The components passed in only control what components are processed.
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the reference location (from where distance and bearing information is calculated), for all airports in the collection, to the current player position.
Requires an open connection to FSUIPC
Note that no components will be loaded by this method. The components passed in only control what components are processed.
ClassInstance | The ID of a specific class instance of WideClient |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated, for all airports in the collection.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
ICAO | The ICAO code of the airport to use as the reference location. |
ClassInstance | The class instance of WideClient to connect to. |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated, for all airports in the collection.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
Airport | The Airport to use as the reference location. |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated, for all airports in the collection.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
NewLatitude | The Latitude of the reference location |
NewLongitude | The Longitude of the reference location |
MagVar | The Magnetic Variation at the reference location |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Sets the location from where distance and bearing information is calculated, for all airports in the collection.
Note that no components will be loaded by this method. The components passed in only control what components are processed.
ICAO | The ICAO code of the airport to use as the reference location. |
Components | The Components you want to apply the reference location to. Pass None to only apply to the airport. |
|
inline |
Gets a new list of airports that have at least one runway which matches the search criteria.
The Runway data must have been loaded first
RunwayMatch | A delegate or Lambda expression that will test each runway. |
|
get |
Gets a single airport using the index.
Index | The index of the airport to retrieve |
|
get |
Gets a single airport using the IACO code. Must be in upper case.
ICAO | A string containing the ICAO code. |