This commit is contained in:
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
BIN
simconnect-sdk/ffi/lib/static/SimConnect.lib
Normal file
BIN
simconnect-sdk/ffi/lib/static/SimConnect.lib
Normal file
Binary file not shown.
BIN
simconnect-sdk/ffi/lib/static/SimConnect_debug.lib
Normal file
BIN
simconnect-sdk/ffi/lib/static/SimConnect_debug.lib
Normal file
Binary file not shown.
@@ -1 +1 @@
|
||||
0.20.5.0
|
||||
0.24.3.0
|
||||
|
@@ -44,8 +44,10 @@ impl FacilityType {
|
||||
/// Information on a single airport in the facilities cache.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Airport {
|
||||
/// ICAO of the facility.
|
||||
pub icao: String,
|
||||
/// Ident of the facility.
|
||||
pub ident: String,
|
||||
/// Region of the facility.
|
||||
pub region: String,
|
||||
/// Latitude of the airport in facility.
|
||||
pub lat: f64,
|
||||
/// Longitude of the airport in facility.
|
||||
@@ -57,8 +59,10 @@ pub struct Airport {
|
||||
/// Information on a single waypoint in the facilities cache.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Waypoint {
|
||||
/// ICAO of the facility.
|
||||
pub icao: String,
|
||||
/// Ident of the facility.
|
||||
pub ident: String,
|
||||
/// Region of the facility.
|
||||
pub region: String,
|
||||
/// Latitude of the airport in facility.
|
||||
pub lat: f64,
|
||||
/// Longitude of the airport in facility.
|
||||
@@ -72,8 +76,10 @@ pub struct Waypoint {
|
||||
/// Information on a single NDB station in the facilities cache.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct NDB {
|
||||
/// ICAO of the facility.
|
||||
pub icao: String,
|
||||
/// Ident of the facility.
|
||||
pub ident: String,
|
||||
/// Region of the facility.
|
||||
pub region: String,
|
||||
/// Latitude of the airport in facility.
|
||||
pub lat: f64,
|
||||
/// Longitude of the airport in facility.
|
||||
@@ -89,8 +95,10 @@ pub struct NDB {
|
||||
/// Information on a single VOR station in the facilities cache.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct VOR {
|
||||
/// ICAO of the facility.
|
||||
pub icao: String,
|
||||
/// Ident of the facility.
|
||||
pub ident: String,
|
||||
/// Region of the facility.
|
||||
pub region: String,
|
||||
/// Latitude of the airport in facility.
|
||||
pub lat: f64,
|
||||
/// Longitude of the airport in facility.
|
||||
|
@@ -242,7 +242,8 @@ impl SimConnect {
|
||||
let record = unsafe { event.rgData.get_unchecked(i) };
|
||||
|
||||
Airport {
|
||||
icao: fixed_c_str_to_string(&record.Icao),
|
||||
ident: fixed_c_str_to_string(&record.Ident),
|
||||
region: fixed_c_str_to_string(&record.Region),
|
||||
lat: record.Latitude,
|
||||
lon: record.Longitude,
|
||||
alt: record.Altitude,
|
||||
@@ -270,7 +271,8 @@ impl SimConnect {
|
||||
let record = unsafe { event.rgData.get_unchecked(i) };
|
||||
|
||||
Waypoint {
|
||||
icao: fixed_c_str_to_string(&record._base.Icao),
|
||||
ident: fixed_c_str_to_string(&record._base.Ident),
|
||||
region: fixed_c_str_to_string(&record._base.Region),
|
||||
lat: record._base.Latitude,
|
||||
lon: record._base.Longitude,
|
||||
alt: record._base.Altitude,
|
||||
@@ -299,7 +301,8 @@ impl SimConnect {
|
||||
let record = unsafe { event.rgData.get_unchecked(i) };
|
||||
|
||||
NDB {
|
||||
icao: fixed_c_str_to_string(&record._base._base.Icao),
|
||||
ident: fixed_c_str_to_string(&record._base._base.Ident),
|
||||
region: fixed_c_str_to_string(&record._base._base.Region),
|
||||
lat: record._base._base.Latitude,
|
||||
lon: record._base._base.Longitude,
|
||||
alt: record._base._base.Altitude,
|
||||
@@ -342,7 +345,8 @@ impl SimConnect {
|
||||
== bindings::SIMCONNECT_RECV_ID_VOR_LIST_HAS_DME;
|
||||
|
||||
VOR {
|
||||
icao: fixed_c_str_to_string(&record._base._base._base.Icao),
|
||||
ident: fixed_c_str_to_string(&record._base._base._base.Ident),
|
||||
region: fixed_c_str_to_string(&record._base._base._base.Region),
|
||||
lat: record._base._base._base.Latitude,
|
||||
lon: record._base._base._base.Longitude,
|
||||
alt: record._base._base._base.Altitude,
|
||||
|
Reference in New Issue
Block a user