2022-01-27 13:40:04 +00:00
|
|
|
|
using Microsoft.FlightSimulator.SimConnect;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MSFSPopoutPanelManager.FsConnector
|
|
|
|
|
{
|
|
|
|
|
public class DataDefinition
|
|
|
|
|
{
|
|
|
|
|
public static List<(string PropName, string SimConnectName, string SimConnectUnit, SIMCONNECT_DATATYPE SimConnectDataType, Type ObjectType)> GetDefinition()
|
|
|
|
|
{
|
|
|
|
|
var def = new List<(string, string, string, SIMCONNECT_DATATYPE, Type)>
|
|
|
|
|
{
|
|
|
|
|
("Title", "Title", null, SIMCONNECT_DATATYPE.STRING256, typeof(string)),
|
2022-05-04 15:11:04 +00:00
|
|
|
|
("ElectricalMasterBattery", "ELECTRICAL MASTER BATTERY", "Bool", SIMCONNECT_DATATYPE.FLOAT64, typeof(bool)),
|
2022-07-01 16:13:28 +00:00
|
|
|
|
("TrackIREnable", "TRACK IR ENABLE", "Bool", SIMCONNECT_DATATYPE.FLOAT64, typeof(bool)),
|
|
|
|
|
("AtcOnParkingSpot", "ATC ON PARKING SPOT", "Bool", SIMCONNECT_DATATYPE.FLOAT64, typeof(bool))
|
2022-01-27 13:40:04 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return def;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|