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
|
2023-05-02 11:43:23 +03:00
|
|
|
#define __cdecl
|
2023-09-18 16:58:31 +03:00
|
|
|
#include "steamworks_sdk_158/steam_api.h"
|
|
|
|
#include "steamworks_sdk_158/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
|
2023-09-18 16:58:31 +03:00
|
|
|
#define SDKVER_158
|
2019-02-25 18:50:52 +03:00
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamParties_SteamParties002.h"
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_GetNumActiveBeacons( struct cppISteamParties_SteamParties002_GetNumActiveBeacons_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->GetNumActiveBeacons( );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_GetBeaconByIndex( struct cppISteamParties_SteamParties002_GetBeaconByIndex_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->GetBeaconByIndex( (uint32)params->unIndex );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_GetBeaconDetails( struct cppISteamParties_SteamParties002_GetBeaconDetails_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_pLocation;
|
2023-09-27 15:34:23 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_158( params->pLocation, &lin_pLocation );
|
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->GetBeaconDetails( (PartyBeaconID_t)params->ulBeaconID, (CSteamID *)params->pSteamIDBeaconOwner, &lin_pLocation, (char *)params->pchMetadata, (int)params->cchMetadata );
|
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_158( &lin_pLocation, params->pLocation );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_JoinParty( struct cppISteamParties_SteamParties002_JoinParty_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->JoinParty( (PartyBeaconID_t)params->ulBeaconID );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_GetNumAvailableBeaconLocations( struct cppISteamParties_SteamParties002_GetNumAvailableBeaconLocations_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->GetNumAvailableBeaconLocations( (uint32 *)params->puNumLocations );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_GetAvailableBeaconLocations( struct cppISteamParties_SteamParties002_GetAvailableBeaconLocations_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_pLocationList;
|
2023-09-27 15:34:23 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_158( params->pLocationList, &lin_pLocationList );
|
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->GetAvailableBeaconLocations( &lin_pLocationList, (uint32)params->uMaxNumLocations );
|
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_158( &lin_pLocationList, params->pLocationList );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_CreateBeacon( struct cppISteamParties_SteamParties002_CreateBeacon_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_pBeaconLocation;
|
2023-09-27 15:34:23 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_158( params->pBeaconLocation, &lin_pBeaconLocation );
|
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->CreateBeacon( (uint32)params->unOpenSlots, &lin_pBeaconLocation, (const char *)params->pchConnectString, (const char *)params->pchMetadata );
|
|
|
|
lin_to_win_struct_SteamPartyBeaconLocation_t_158( &lin_pBeaconLocation, params->pBeaconLocation );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_OnReservationCompleted( struct cppISteamParties_SteamParties002_OnReservationCompleted_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
((ISteamParties*)params->linux_side)->OnReservationCompleted( (PartyBeaconID_t)params->ulBeacon, (CSteamID)params->steamIDUser );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_CancelReservation( struct cppISteamParties_SteamParties002_CancelReservation_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
((ISteamParties*)params->linux_side)->CancelReservation( (PartyBeaconID_t)params->ulBeacon, (CSteamID)params->steamIDUser );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_ChangeNumOpenSlots( struct cppISteamParties_SteamParties002_ChangeNumOpenSlots_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->ChangeNumOpenSlots( (PartyBeaconID_t)params->ulBeacon, (uint32)params->unOpenSlots );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_DestroyBeacon( struct cppISteamParties_SteamParties002_DestroyBeacon_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
2023-09-27 15:34:23 +03:00
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->DestroyBeacon( (PartyBeaconID_t)params->ulBeacon );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamParties_SteamParties002_GetBeaconLocationData( struct cppISteamParties_SteamParties002_GetBeaconLocationData_params *params )
|
2019-02-25 18:50:52 +03:00
|
|
|
{
|
|
|
|
SteamPartyBeaconLocation_t lin_BeaconLocation;
|
2023-09-27 15:34:23 +03:00
|
|
|
win_to_lin_struct_SteamPartyBeaconLocation_t_158( ¶ms->BeaconLocation, &lin_BeaconLocation );
|
|
|
|
params->_ret = ((ISteamParties*)params->linux_side)->GetBeaconLocationData( lin_BeaconLocation, (ESteamPartyBeaconLocationData)params->eData, (char *)params->pchDataStringOut, (int)params->cchDataStringOut );
|
2019-02-25 18:50:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|