Exemplo n.º 1
0
        internal static async Task SetupChannels(SimConnectWrapper.SimConnectWrapper simConnect)
        {
            await simConnect.AddToClientDataDefinition <ReadLVarRequestData>(DefineId).ConfigureAwait(false);

            await simConnect.AddToClientDataDefinition <ReadLVarResponseData>(DefineId + 100).ConfigureAwait(false);

            await simConnect.MapClientDataNameToID(DataAreaModuleInput.Name, DataAreaModuleInput.Id).ConfigureAwait(false);

            await simConnect.MapClientDataNameToID(DataAreaModuleOutput.Name, DataAreaModuleOutput.Id).ConfigureAwait(false);

            await simConnect.RequestClientData(DataAreaModuleOutput.Id, RequestId, DefineId + 100, SIMCONNECT_CLIENT_DATA_PERIOD.ON_SET).ConfigureAwait(false);
        }
Exemplo n.º 2
0
        internal static async Task SetupChannels(SimConnectWrapper.SimConnectWrapper simConnect)
        {
            await simConnect.AddToClientDataDefinition <ExecuteCalculatorCodeRequestData>(DefineId).ConfigureAwait(false);

            await simConnect.MapClientDataNameToID(DataAreaModuleInput.Name, DataAreaModuleInput.Id).ConfigureAwait(false);
        }
Exemplo n.º 3
0
 internal static async Task RegisterDataDefinition(SimConnectWrapper.SimConnectWrapper simConnect)
 {
     await simConnect.AddToClientDataDefinition <ReadLVarRequestData>(DefineId);
 }