2019-02-25 18:50:52 +03:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2020-08-11 20:39:33 +03:00
|
|
|
#include "steamworks_sdk_149/steam_api.h"
|
|
|
|
#include "steamworks_sdk_149/steamnetworkingtypes.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2019-02-25 18:50:52 +03:00
|
|
|
#include "steamclient_private.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2020-08-11 20:39:33 +03:00
|
|
|
#define SDKVER_149
|
2019-02-25 18:50:52 +03:00
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamParties_SteamParties002.h"
|
|
|
|
uint32 cppISteamParties_SteamParties002_GetNumActiveBeacons(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamParties*)linux_side)->GetNumActiveBeacons();
|
|
|
|
}
|
|
|
|
|
|
|
|
PartyBeaconID_t cppISteamParties_SteamParties002_GetBeaconByIndex(void *linux_side, uint32 unIndex)
|
|
|
|
{
|
|
|
|
return ((ISteamParties*)linux_side)->GetBeaconByIndex((uint32)unIndex);
|
|
|
|
}
|
|
|
|
|
2020-08-11 20:39:33 +03:00
|
|
|
bool cppISteamParties_SteamParties002_GetBeaconDetails(void *linux_side, PartyBeaconID_t ulBeaconID, CSteamID * pSteamIDBeaconOwner, winSteamPartyBeaconLocation_t_149 * pLocation, char * pchMetadata, int cchMetadata)
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_pLocation;
|
2020-08-11 20:39:33 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_149(pLocation, &lin_pLocation);
|
2019-02-25 18:50:52 +03:00
|
|
|
bool retval = ((ISteamParties*)linux_side)->GetBeaconDetails((PartyBeaconID_t)ulBeaconID, (CSteamID *)pSteamIDBeaconOwner, &lin_pLocation, (char *)pchMetadata, (int)cchMetadata);
|
2020-08-11 20:39:33 +03:00
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_149(&lin_pLocation, pLocation);
|
2019-02-25 18:50:52 +03:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
SteamAPICall_t cppISteamParties_SteamParties002_JoinParty(void *linux_side, PartyBeaconID_t ulBeaconID)
|
|
|
|
{
|
|
|
|
return ((ISteamParties*)linux_side)->JoinParty((PartyBeaconID_t)ulBeaconID);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamParties_SteamParties002_GetNumAvailableBeaconLocations(void *linux_side, uint32 * puNumLocations)
|
|
|
|
{
|
|
|
|
return ((ISteamParties*)linux_side)->GetNumAvailableBeaconLocations((uint32 *)puNumLocations);
|
|
|
|
}
|
|
|
|
|
2020-08-11 20:39:33 +03:00
|
|
|
bool cppISteamParties_SteamParties002_GetAvailableBeaconLocations(void *linux_side, winSteamPartyBeaconLocation_t_149 * pLocationList, uint32 uMaxNumLocations)
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_pLocationList;
|
2020-08-11 20:39:33 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_149(pLocationList, &lin_pLocationList);
|
2019-02-25 18:50:52 +03:00
|
|
|
bool retval = ((ISteamParties*)linux_side)->GetAvailableBeaconLocations(&lin_pLocationList, (uint32)uMaxNumLocations);
|
2020-08-11 20:39:33 +03:00
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_149(&lin_pLocationList, pLocationList);
|
2019-02-25 18:50:52 +03:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
2020-08-11 20:39:33 +03:00
|
|
|
SteamAPICall_t cppISteamParties_SteamParties002_CreateBeacon(void *linux_side, uint32 unOpenSlots, winSteamPartyBeaconLocation_t_149 * pBeaconLocation, const char * pchConnectString, const char * pchMetadata)
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_pBeaconLocation;
|
2020-08-11 20:39:33 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_149(pBeaconLocation, &lin_pBeaconLocation);
|
2019-02-25 18:50:52 +03:00
|
|
|
SteamAPICall_t retval = ((ISteamParties*)linux_side)->CreateBeacon((uint32)unOpenSlots, &lin_pBeaconLocation, (const char *)pchConnectString, (const char *)pchMetadata);
|
2020-08-11 20:39:33 +03:00
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_149(&lin_pBeaconLocation, pBeaconLocation);
|
2019-02-25 18:50:52 +03:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamParties_SteamParties002_OnReservationCompleted(void *linux_side, PartyBeaconID_t ulBeacon, CSteamID steamIDUser)
|
|
|
|
{
|
|
|
|
((ISteamParties*)linux_side)->OnReservationCompleted((PartyBeaconID_t)ulBeacon, (CSteamID)steamIDUser);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamParties_SteamParties002_CancelReservation(void *linux_side, PartyBeaconID_t ulBeacon, CSteamID steamIDUser)
|
|
|
|
{
|
|
|
|
((ISteamParties*)linux_side)->CancelReservation((PartyBeaconID_t)ulBeacon, (CSteamID)steamIDUser);
|
|
|
|
}
|
|
|
|
|
|
|
|
SteamAPICall_t cppISteamParties_SteamParties002_ChangeNumOpenSlots(void *linux_side, PartyBeaconID_t ulBeacon, uint32 unOpenSlots)
|
|
|
|
{
|
|
|
|
return ((ISteamParties*)linux_side)->ChangeNumOpenSlots((PartyBeaconID_t)ulBeacon, (uint32)unOpenSlots);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamParties_SteamParties002_DestroyBeacon(void *linux_side, PartyBeaconID_t ulBeacon)
|
|
|
|
{
|
|
|
|
return ((ISteamParties*)linux_side)->DestroyBeacon((PartyBeaconID_t)ulBeacon);
|
|
|
|
}
|
|
|
|
|
2020-08-11 20:39:33 +03:00
|
|
|
bool cppISteamParties_SteamParties002_GetBeaconLocationData(void *linux_side, winSteamPartyBeaconLocation_t_149 BeaconLocation, ESteamPartyBeaconLocationData eData, char * pchDataStringOut, int cchDataStringOut)
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_BeaconLocation;
|
2020-08-11 20:39:33 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_149(&BeaconLocation, &lin_BeaconLocation);
|
2019-02-25 18:50:52 +03:00
|
|
|
bool retval = ((ISteamParties*)linux_side)->GetBeaconLocationData(lin_BeaconLocation, (ESteamPartyBeaconLocationData)eData, (char *)pchDataStringOut, (int)cchDataStringOut);
|
2020-08-11 20:39:33 +03:00
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_149(&lin_BeaconLocation, &BeaconLocation);
|
2019-02-25 18:50:52 +03:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|