internal bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, StringBuilder pchDataStringOut, int cchDataStringOut) { if (Config.Os == OsType.Windows) { SteamPartyBeaconLocation_t.Pack8 BeaconLocation_windows = BeaconLocation; var retVal = _GetBeaconLocationData_Windows(Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut); BeaconLocation = BeaconLocation_windows; return(retVal); } return(_GetBeaconLocationData(Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut)); }
internal bool GetBeaconDetails(PartyBeaconID_t ulBeaconID, ref SteamId pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t pLocation, StringBuilder pchMetadata, int cchMetadata) { if (Config.Os == OsType.Windows) { SteamPartyBeaconLocation_t.Pack8 pLocation_windows = pLocation; var retVal = _GetBeaconDetails_Windows(Self, ulBeaconID, ref pSteamIDBeaconOwner, ref pLocation_windows, pchMetadata, cchMetadata); pLocation = pLocation_windows; return(retVal); } return(_GetBeaconDetails(Self, ulBeaconID, ref pSteamIDBeaconOwner, ref pLocation, pchMetadata, cchMetadata)); }
internal bool GetAvailableBeaconLocations(ref SteamPartyBeaconLocation_t pLocationList, uint uMaxNumLocations) { if (Config.Os == OsType.Windows) { SteamPartyBeaconLocation_t.Pack8 pLocationList_windows = pLocationList; var retVal = _GetAvailableBeaconLocations_Windows(Self, ref pLocationList_windows, uMaxNumLocations); pLocationList = pLocationList_windows; return(retVal); } return(_GetAvailableBeaconLocations(Self, ref pLocationList, uMaxNumLocations)); }
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 ))); }
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 bool GetAvailableBeaconLocations(ref SteamPartyBeaconLocation_t pLocationList, uint uMaxNumLocations) { bool self; if (Config.Os != OsType.Windows) { self = this._GetAvailableBeaconLocations(this.Self, ref pLocationList, uMaxNumLocations); } else { SteamPartyBeaconLocation_t.Pack8 pack8 = pLocationList; bool _GetAvailableBeaconLocationsWindows = this._GetAvailableBeaconLocations_Windows(this.Self, ref pack8, uMaxNumLocations); pLocationList = pack8; self = _GetAvailableBeaconLocationsWindows; } return(self); }
internal bool GetBeaconLocationData(SteamPartyBeaconLocation_t BeaconLocation, SteamPartyBeaconLocationData eData, StringBuilder pchDataStringOut, int cchDataStringOut) { bool self; if (Config.Os != OsType.Windows) { self = this._GetBeaconLocationData(this.Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut); } else { SteamPartyBeaconLocation_t.Pack8 beaconLocation = BeaconLocation; bool _GetBeaconLocationDataWindows = this._GetBeaconLocationData_Windows(this.Self, BeaconLocation, eData, pchDataStringOut, cchDataStringOut); BeaconLocation = beaconLocation; self = _GetBeaconLocationDataWindows; } return(self); }
internal bool GetBeaconDetails(PartyBeaconID_t ulBeaconID, ref SteamId pSteamIDBeaconOwner, ref SteamPartyBeaconLocation_t pLocation, StringBuilder pchMetadata, int cchMetadata) { bool self; if (Config.Os != OsType.Windows) { self = this._GetBeaconDetails(this.Self, ulBeaconID, ref pSteamIDBeaconOwner, ref pLocation, pchMetadata, cchMetadata); } else { SteamPartyBeaconLocation_t.Pack8 pack8 = pLocation; bool _GetBeaconDetailsWindows = this._GetBeaconDetails_Windows(this.Self, ulBeaconID, ref pSteamIDBeaconOwner, ref pack8, pchMetadata, cchMetadata); pLocation = pack8; self = _GetBeaconDetailsWindows; } return(self); }
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); }