Пример #1
0
        internal async Task <CreateBeaconCallback_t?> CreateBeacon(uint unOpenSlots, /* ref */ SteamPartyBeaconLocation_t pBeaconLocation, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchConnectString, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchMetadata)
        {
            if (Config.Os == OsType.Windows)
            {
                SteamPartyBeaconLocation_t.Pack8 pBeaconLocation_windows = pBeaconLocation;
                var retVal = _CreateBeacon_Windows(Self, unOpenSlots, ref pBeaconLocation_windows, pchConnectString, pchMetadata);
                pBeaconLocation = pBeaconLocation_windows;
                return(await CreateBeaconCallback_t.GetResultAsync(retVal));
            }

            return(await CreateBeaconCallback_t.GetResultAsync(_CreateBeacon( Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata )));
        }
Пример #2
0
        internal async Task <CreateBeaconCallback_t?> CreateBeacon(uint unOpenSlots, /* ref */ SteamPartyBeaconLocation_t pBeaconLocation, string pchConnectString, string pchMetadata)
        {
            if (Config.Os == OsType.Windows)
            {
                SteamPartyBeaconLocation_t.Pack8 pBeaconLocation_windows = pBeaconLocation;
                var retVal = _CreateBeacon_Windows(Self, unOpenSlots, ref pBeaconLocation_windows, pchConnectString, pchMetadata);
                pBeaconLocation = pBeaconLocation_windows;
                return(await CreateBeaconCallback_t.GetResultAsync(retVal));
            }

            return(await CreateBeaconCallback_t.GetResultAsync(_CreateBeacon( Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata )));
        }
        internal async Task <CreateBeaconCallback_t?> CreateBeacon(uint unOpenSlots, SteamPartyBeaconLocation_t pBeaconLocation, string pchConnectString, string pchMetadata)
        {
            CreateBeaconCallback_t?resultAsync;

            if (Config.Os != OsType.Windows)
            {
                CreateBeaconCallback_t?nullable = await CreateBeaconCallback_t.GetResultAsync(this._CreateBeacon(this.Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata));

                resultAsync = nullable;
            }
            else
            {
                SteamPartyBeaconLocation_t.Pack8 pack8 = pBeaconLocation;
                SteamAPICall_t _CreateBeaconWindows    = this._CreateBeacon_Windows(this.Self, unOpenSlots, ref pack8, pchConnectString, pchMetadata);
                pBeaconLocation = pack8;
                resultAsync     = await CreateBeaconCallback_t.GetResultAsync(_CreateBeaconWindows);
            }
            return(resultAsync);
        }
 internal async Task <CreateBeaconCallback_t?> CreateBeacon(uint unOpenSlots, /* ref */ SteamPartyBeaconLocation_t pBeaconLocation, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchConnectString, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringToNative))] string pchMetadata)
 {
     return(await CreateBeaconCallback_t.GetResultAsync(_CreateBeacon( Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata )));
 }
 internal async Task <CreateBeaconCallback_t?> CreateBeacon(uint unOpenSlots, /* ref */ SteamPartyBeaconLocation_t pBeaconLocation, string pchConnectString, string pchMetadata)
 {
     return(await CreateBeaconCallback_t.GetResultAsync(_CreateBeacon( Self, unOpenSlots, ref pBeaconLocation, pchConnectString, pchMetadata )));
 }