goldberg_emulator/dll/flat.cpp

6009 lines
260 KiB
C++
Raw Normal View History

2019-04-13 16:21:56 +00:00
/* Copyright (C) 2019 Mr Goldberg
This file is part of the Goldberg Emulator
The Goldberg Emulator is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
The Goldberg Emulator is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the Goldberg Emulator; if not, see
<http://www.gnu.org/licenses/>. */
2020-03-25 17:43:23 +00:00
#ifndef STEAMCLIENT_DLL
#define STEAM_API_FUNCTIONS_IMPL
2019-04-13 16:21:56 +00:00
#include "dll.h"
2020-03-25 17:43:23 +00:00
#include "../sdk_includes/steam_api_flat.h"
#include <stdint.h>
2019-04-13 16:21:56 +00:00
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamPipe SteamAPI_ISteamClient_CreateSteamPipe( ISteamClient* self )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->CreateSteamPipe();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamClient_BReleaseSteamPipe( ISteamClient* self, HSteamPipe hSteamPipe )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->BReleaseSteamPipe(hSteamPipe);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamUser SteamAPI_ISteamClient_ConnectToGlobalUser( ISteamClient* self, HSteamPipe hSteamPipe )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->ConnectToGlobalUser(hSteamPipe);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamUser SteamAPI_ISteamClient_CreateLocalUser( ISteamClient* self, HSteamPipe * phSteamPipe, EAccountType eAccountType )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->CreateLocalUser(phSteamPipe, eAccountType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamClient_ReleaseUser( ISteamClient* self, HSteamPipe hSteamPipe, HSteamUser hUser )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->ReleaseUser(hSteamPipe, hUser);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUser * SteamAPI_ISteamClient_GetISteamUser( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUser(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameServer * SteamAPI_ISteamClient_GetISteamGameServer( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGameServer(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamClient_SetLocalIPBinding( ISteamClient* self, const SteamIPAddress_t & unIP, uint16 usPort )
2019-04-13 16:21:56 +00:00
{
2019-12-09 17:49:55 +00:00
//Note: this function was updated but currently doesn't do anything so I'm just leaving it like this for now.
//void SteamAPI_ISteamClient_SetLocalIPBinding(intptr_t instancePtr, const struct SteamIPAddress_t & unIP, uint16 usPort)
2019-04-13 16:21:56 +00:00
return get_steam_client()->SetLocalIPBinding(unIP, usPort);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamFriends * SteamAPI_ISteamClient_GetISteamFriends( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamFriends(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUtils * SteamAPI_ISteamClient_GetISteamUtils( ISteamClient* self, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUtils(hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmaking * SteamAPI_ISteamClient_GetISteamMatchmaking( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMatchmaking(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmakingServers * SteamAPI_ISteamClient_GetISteamMatchmakingServers( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMatchmakingServers(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void * SteamAPI_ISteamClient_GetISteamGenericInterface( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGenericInterface(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUserStats * SteamAPI_ISteamClient_GetISteamUserStats( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUserStats(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameServerStats * SteamAPI_ISteamClient_GetISteamGameServerStats( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGameServerStats(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamApps * SteamAPI_ISteamClient_GetISteamApps( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamApps(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworking * SteamAPI_ISteamClient_GetISteamNetworking( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamNetworking(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamRemoteStorage * SteamAPI_ISteamClient_GetISteamRemoteStorage( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamRemoteStorage(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamScreenshots * SteamAPI_ISteamClient_GetISteamScreenshots( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamScreenshots(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameSearch * SteamAPI_ISteamClient_GetISteamGameSearch( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamGameSearch(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamClient_GetIPCCallCount( ISteamClient* self )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetIPCCallCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamClient_SetWarningMessageHook( ISteamClient* self, SteamAPIWarningMessageHook_t pFunction )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->SetWarningMessageHook(pFunction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamClient_BShutdownIfAllPipesClosed( ISteamClient* self )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->BShutdownIfAllPipesClosed();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTTP * SteamAPI_ISteamClient_GetISteamHTTP( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTTP(hSteamuser, hSteamPipe, pchVersion);
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API void *SteamAPI_ISteamClient_GetISteamUnifiedMessages(intptr_t instancePtr, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion)
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->DEPRECATED_GetISteamUnifiedMessages(hSteamuser,hSteamPipe,pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamController * SteamAPI_ISteamClient_GetISteamController( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamController(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUGC * SteamAPI_ISteamClient_GetISteamUGC( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamUGC(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamAppList * SteamAPI_ISteamClient_GetISteamAppList( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamAppList(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusic * SteamAPI_ISteamClient_GetISteamMusic( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMusic(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusicRemote * SteamAPI_ISteamClient_GetISteamMusicRemote( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamMusicRemote(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTMLSurface * SteamAPI_ISteamClient_GetISteamHTMLSurface( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamHTMLSurface(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamInventory * SteamAPI_ISteamClient_GetISteamInventory( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamInventory(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamVideo * SteamAPI_ISteamClient_GetISteamVideo( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamVideo(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParentalSettings * SteamAPI_ISteamClient_GetISteamParentalSettings( ISteamClient* self, HSteamUser hSteamuser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamParentalSettings(hSteamuser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamInput * SteamAPI_ISteamClient_GetISteamInput( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamInput(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParties * SteamAPI_ISteamClient_GetISteamParties( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-04-13 16:21:56 +00:00
{
return get_steam_client()->GetISteamParties(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamRemotePlay * SteamAPI_ISteamClient_GetISteamRemotePlay( ISteamClient* self, HSteamUser hSteamUser, HSteamPipe hSteamPipe, const char * pchVersion )
2019-07-28 13:02:09 +00:00
{
return get_steam_client()->GetISteamRemotePlay(hSteamUser, hSteamPipe, pchVersion);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUser *SteamAPI_SteamUser_v020()
{
return get_steam_client()->GetISteamUser(flat_hsteamuser(), flat_hsteampipe(), "SteamUser020");
}
STEAMAPI_API HSteamUser SteamAPI_ISteamUser_GetHSteamUser( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetHSteamUser();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_BLoggedOn( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BLoggedOn();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamUser_GetSteamID( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetSteamID().ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_InitiateGameConnection( ISteamUser* self, void * pAuthBlob, int cbMaxAuthBlob, uint64_steamid steamIDGameServer, uint32 unIPServer, uint16 usPortServer, bool bSecure )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->InitiateGameConnection(pAuthBlob, cbMaxAuthBlob, steamIDGameServer, unIPServer, usPortServer, bSecure);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_TerminateGameConnection( ISteamUser* self, uint32 unIPServer, uint16 usPortServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->TerminateGameConnection(unIPServer, usPortServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_TrackAppUsageEvent( ISteamUser* self, uint64_gameid gameID, int eAppUsageEvent, const char * pchExtraInfo )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (get_steam_client()->steam_user)->TrackAppUsageEvent(CGameID(gameID), eAppUsageEvent, pchExtraInfo);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_GetUserDataFolder( ISteamUser* self, char * pchBuffer, int cubBuffer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetUserDataFolder(pchBuffer, cubBuffer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_StartVoiceRecording( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->StartVoiceRecording();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_StopVoiceRecording( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->StopVoiceRecording();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_GetAvailableVoice( ISteamUser* self, uint32 * pcbCompressed, uint32 * pcbUncompressed_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetAvailableVoice(pcbCompressed, pcbUncompressed_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_GetVoice( ISteamUser* self, bool bWantCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, bool bWantUncompressed_Deprecated, void * pUncompressedDestBuffer_Deprecated, uint32 cbUncompressedDestBufferSize_Deprecated, uint32 * nUncompressBytesWritten_Deprecated, uint32 nUncompressedVoiceDesiredSampleRate_Deprecated )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetVoice(bWantCompressed, pDestBuffer, cbDestBufferSize, nBytesWritten, bWantUncompressed_Deprecated, pUncompressedDestBuffer_Deprecated, cbUncompressedDestBufferSize_Deprecated, nUncompressBytesWritten_Deprecated, nUncompressedVoiceDesiredSampleRate_Deprecated);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EVoiceResult SteamAPI_ISteamUser_DecompressVoice( ISteamUser* self, const void * pCompressed, uint32 cbCompressed, void * pDestBuffer, uint32 cbDestBufferSize, uint32 * nBytesWritten, uint32 nDesiredSampleRate )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->DecompressVoice(pCompressed, cbCompressed, pDestBuffer, cbDestBufferSize, nBytesWritten, nDesiredSampleRate);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUser_GetVoiceOptimalSampleRate( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetVoiceOptimalSampleRate();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HAuthTicket SteamAPI_ISteamUser_GetAuthSessionTicket( ISteamUser* self, void * pTicket, int cbMaxTicket, uint32 * pcbTicket )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetAuthSessionTicket(pTicket, cbMaxTicket, pcbTicket);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EBeginAuthSessionResult SteamAPI_ISteamUser_BeginAuthSession( ISteamUser* self, const void * pAuthTicket, int cbAuthTicket, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BeginAuthSession(pAuthTicket, cbAuthTicket, steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_EndAuthSession( ISteamUser* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->EndAuthSession(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_CancelAuthTicket( ISteamUser* self, HAuthTicket hAuthTicket )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->CancelAuthTicket(hAuthTicket);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EUserHasLicenseForAppResult SteamAPI_ISteamUser_UserHasLicenseForApp( ISteamUser* self, uint64_steamid steamID, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->UserHasLicenseForApp(steamID, appID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_BIsBehindNAT( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsBehindNAT();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUser_AdvertiseGame( ISteamUser* self, uint64_steamid steamIDGameServer, uint32 unIPServer, uint16 usPortServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->AdvertiseGame(steamIDGameServer, unIPServer, usPortServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_RequestEncryptedAppTicket( ISteamUser* self, void * pDataToInclude, int cbDataToInclude )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->RequestEncryptedAppTicket(pDataToInclude, cbDataToInclude);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_GetEncryptedAppTicket( ISteamUser* self, void * pTicket, int cbMaxTicket, uint32 * pcbTicket )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetEncryptedAppTicket(pTicket, cbMaxTicket, pcbTicket);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_GetGameBadgeLevel( ISteamUser* self, int nSeries, bool bFoil )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetGameBadgeLevel(nSeries, bFoil);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUser_GetPlayerSteamLevel( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetPlayerSteamLevel();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_RequestStoreAuthURL( ISteamUser* self, const char * pchRedirectURL )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->RequestStoreAuthURL(pchRedirectURL);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_BIsPhoneVerified( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsPhoneVerified();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_BIsTwoFactorEnabled( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsTwoFactorEnabled();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_BIsPhoneIdentifying( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsPhoneIdentifying();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUser_BIsPhoneRequiringVerification( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->BIsPhoneRequiringVerification();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_GetMarketEligibility( ISteamUser* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user)->GetMarketEligibility();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUser_GetDurationControl( ISteamUser* self )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_user)->GetDurationControl();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamFriends *SteamAPI_SteamFriends_v017()
{
return get_steam_client()->GetISteamFriends(flat_hsteamuser(), flat_hsteampipe(), "SteamFriends017");
}
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetPersonaName( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetPersonaName();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_SetPersonaName( ISteamFriends* self, const char * pchPersonaName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetPersonaName(pchPersonaName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EPersonaState SteamAPI_ISteamFriends_GetPersonaState( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetPersonaState();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCount( ISteamFriends* self, int iFriendFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCount(iFriendFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetFriendByIndex( ISteamFriends* self, int iFriend, int iFriendFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendByIndex(iFriend, iFriendFlags).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EFriendRelationship SteamAPI_ISteamFriends_GetFriendRelationship( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRelationship(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EPersonaState SteamAPI_ISteamFriends_GetFriendPersonaState( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendPersonaState(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendPersonaName( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendPersonaName(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_GetFriendGamePlayed( ISteamFriends* self, uint64_steamid steamIDFriend, FriendGameInfo_t * pFriendGameInfo )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendGamePlayed(steamIDFriend, pFriendGameInfo);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendPersonaNameHistory( ISteamFriends* self, uint64_steamid steamIDFriend, int iPersonaName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendPersonaNameHistory(steamIDFriend, iPersonaName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendSteamLevel( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendSteamLevel(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetPlayerNickname( ISteamFriends* self, uint64_steamid steamIDPlayer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetPlayerNickname(steamIDPlayer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendsGroupCount( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API FriendsGroupID_t SteamAPI_ISteamFriends_GetFriendsGroupIDByIndex( ISteamFriends* self, int iFG )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupIDByIndex(iFG);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendsGroupName( ISteamFriends* self, FriendsGroupID_t friendsGroupID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupName(friendsGroupID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendsGroupMembersCount( ISteamFriends* self, FriendsGroupID_t friendsGroupID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupMembersCount(friendsGroupID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_GetFriendsGroupMembersList( ISteamFriends* self, FriendsGroupID_t friendsGroupID, CSteamID * pOutSteamIDMembers, int nMembersCount )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendsGroupMembersList(friendsGroupID, pOutSteamIDMembers, nMembersCount);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_HasFriend( ISteamFriends* self, uint64_steamid steamIDFriend, int iFriendFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->HasFriend(steamIDFriend, iFriendFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanCount( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetClanByIndex( ISteamFriends* self, int iClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanByIndex(iClan).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetClanName( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanName(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetClanTag( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanTag(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_GetClanActivityCounts( ISteamFriends* self, uint64_steamid steamIDClan, int * pnOnline, int * pnInGame, int * pnChatting )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanActivityCounts(steamIDClan, pnOnline, pnInGame, pnChatting);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_DownloadClanActivityCounts( ISteamFriends* self, CSteamID * psteamIDClans, int cClansToRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->DownloadClanActivityCounts(psteamIDClans, cClansToRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCountFromSource( ISteamFriends* self, uint64_steamid steamIDSource )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCountFromSource(steamIDSource);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetFriendFromSourceByIndex( ISteamFriends* self, uint64_steamid steamIDSource, int iFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendFromSourceByIndex(steamIDSource, iFriend).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_IsUserInSource( ISteamFriends* self, uint64_steamid steamIDUser, uint64_steamid steamIDSource )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsUserInSource(steamIDUser, steamIDSource);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_SetInGameVoiceSpeaking( ISteamFriends* self, uint64_steamid steamIDUser, bool bSpeaking )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetInGameVoiceSpeaking(steamIDUser, bSpeaking);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlay( ISteamFriends* self, const char * pchDialog )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlay(pchDialog);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToUser( ISteamFriends* self, const char * pchDialog, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayToUser(pchDialog, steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage( ISteamFriends* self, const char * pchURL, EActivateGameOverlayToWebPageMode eMode )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayToWebPage(pchURL, eMode);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayToStore( ISteamFriends* self, AppId_t nAppID, EOverlayToStoreFlag eFlag )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayToStore(nAppID, eFlag);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_SetPlayedWith( ISteamFriends* self, uint64_steamid steamIDUserPlayedWith )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetPlayedWith(steamIDUserPlayedWith);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayInviteDialog( ISteamFriends* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayInviteDialog(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetSmallFriendAvatar( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetSmallFriendAvatar(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetMediumFriendAvatar( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetMediumFriendAvatar(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetLargeFriendAvatar( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetLargeFriendAvatar(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_RequestUserInformation( ISteamFriends* self, uint64_steamid steamIDUser, bool bRequireNameOnly )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->RequestUserInformation(steamIDUser, bRequireNameOnly);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_RequestClanOfficerList( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->RequestClanOfficerList(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetClanOwner( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanOwner(steamIDClan).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanOfficerCount( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanOfficerCount(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetClanOfficerByIndex( ISteamFriends* self, uint64_steamid steamIDClan, int iOfficer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanOfficerByIndex(steamIDClan, iOfficer).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamFriends_GetUserRestrictions( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetUserRestrictions();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_SetRichPresence( ISteamFriends* self, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetRichPresence(pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ClearRichPresence( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ClearRichPresence();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendRichPresence( ISteamFriends* self, uint64_steamid steamIDFriend, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRichPresence(steamIDFriend, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendRichPresenceKeyCount( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRichPresenceKeyCount(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamFriends_GetFriendRichPresenceKeyByIndex( ISteamFriends* self, uint64_steamid steamIDFriend, int iKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendRichPresenceKeyByIndex(steamIDFriend, iKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_RequestFriendRichPresence( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->RequestFriendRichPresence(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_InviteUserToGame( ISteamFriends* self, uint64_steamid steamIDFriend, const char * pchConnectString )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->InviteUserToGame(steamIDFriend, pchConnectString);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetCoplayFriendCount( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetCoplayFriendCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetCoplayFriend( ISteamFriends* self, int iCoplayFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetCoplayFriend(iCoplayFriend).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendCoplayTime( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCoplayTime(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API AppId_t SteamAPI_ISteamFriends_GetFriendCoplayGame( ISteamFriends* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendCoplayGame(steamIDFriend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_JoinClanChatRoom( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->JoinClanChatRoom(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_LeaveClanChatRoom( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->LeaveClanChatRoom(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanChatMemberCount( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanChatMemberCount(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamFriends_GetChatMemberByIndex( ISteamFriends* self, uint64_steamid steamIDClan, int iUser )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetChatMemberByIndex(steamIDClan, iUser).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_SendClanChatMessage( ISteamFriends* self, uint64_steamid steamIDClanChat, const char * pchText )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SendClanChatMessage(steamIDClanChat, pchText);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetClanChatMessage( ISteamFriends* self, uint64_steamid steamIDClanChat, int iMessage, void * prgchText, int cchTextMax, EChatEntryType * peChatEntryType, CSteamID * psteamidChatter )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetClanChatMessage(steamIDClanChat, iMessage, prgchText, cchTextMax, peChatEntryType, psteamidChatter);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanChatAdmin( ISteamFriends* self, uint64_steamid steamIDClanChat, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanChatAdmin(steamIDClanChat, steamIDUser);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanChatWindowOpenInSteam( ISteamFriends* self, uint64_steamid steamIDClanChat )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanChatWindowOpenInSteam(steamIDClanChat);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_OpenClanChatWindowInSteam( ISteamFriends* self, uint64_steamid steamIDClanChat )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->OpenClanChatWindowInSteam(steamIDClanChat);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_CloseClanChatWindowInSteam( ISteamFriends* self, uint64_steamid steamIDClanChat )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->CloseClanChatWindowInSteam(steamIDClanChat);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_SetListenForFriendsMessages( ISteamFriends* self, bool bInterceptEnabled )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->SetListenForFriendsMessages(bInterceptEnabled);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_ReplyToFriendMessage( ISteamFriends* self, uint64_steamid steamIDFriend, const char * pchMsgToSend )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->ReplyToFriendMessage(steamIDFriend, pchMsgToSend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetFriendMessage( ISteamFriends* self, uint64_steamid steamIDFriend, int iMessageID, void * pvData, int cubData, EChatEntryType * peChatEntryType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFriendMessage(steamIDFriend, iMessageID, pvData, cubData, peChatEntryType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_GetFollowerCount( ISteamFriends* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetFollowerCount(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_IsFollowing( ISteamFriends* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsFollowing(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamFriends_EnumerateFollowingList( ISteamFriends* self, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->EnumerateFollowingList(unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanPublic( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanPublic(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamFriends_IsClanOfficialGameGroup( ISteamFriends* self, uint64_steamid steamIDClan )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->IsClanOfficialGameGroup(steamIDClan);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamFriends_GetNumChatsWithUnreadPriorityMessages( ISteamFriends* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_friends)->GetNumChatsWithUnreadPriorityMessages();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamFriends_ActivateGameOverlayRemotePlayTogetherInviteDialog( ISteamFriends* self, uint64_steamid steamIDLobby )
{
return (get_steam_client()->steam_friends)->ActivateGameOverlayRemotePlayTogetherInviteDialog(steamIDLobby);
}
STEAMAPI_API ISteamUtils *SteamAPI_SteamUtils_v009()
{
return get_steam_client()->GetISteamUtils(flat_hsteampipe(), "SteamUtils009");
}
STEAMAPI_API ISteamUtils *SteamAPI_SteamGameServerUtils_v009()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamUtils(flat_gs_hsteampipe(), "SteamUtils009");
}
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceAppActive( ISteamUtils* self )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetSecondsSinceAppActive();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetSecondsSinceComputerActive( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetSecondsSinceComputerActive();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EUniverse SteamAPI_ISteamUtils_GetConnectedUniverse( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetConnectedUniverse();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetServerRealTime( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetServerRealTime();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUtils_GetIPCountry( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetIPCountry();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_GetImageSize( ISteamUtils* self, int iImage, uint32 * pnWidth, uint32 * pnHeight )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetImageSize(iImage, pnWidth, pnHeight);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_GetImageRGBA( ISteamUtils* self, int iImage, uint8 * pubDest, int nDestBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetImageRGBA(iImage, pubDest, nDestBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_GetCSERIPPort( ISteamUtils* self, uint32 * unIP, uint16 * usPort )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetCSERIPPort(unIP, usPort);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint8 SteamAPI_ISteamUtils_GetCurrentBatteryPower( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetCurrentBatteryPower();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetAppID( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetAppID();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetOverlayNotificationPosition( ISteamUtils* self, ENotificationPosition eNotificationPosition )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetOverlayNotificationPosition(eNotificationPosition);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_IsAPICallCompleted( ISteamUtils* self, SteamAPICall_t hSteamAPICall, bool * pbFailed )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsAPICallCompleted(hSteamAPICall, pbFailed);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamAPICallFailure SteamAPI_ISteamUtils_GetAPICallFailureReason( ISteamUtils* self, SteamAPICall_t hSteamAPICall )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetAPICallFailureReason(hSteamAPICall);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_GetAPICallResult( ISteamUtils* self, SteamAPICall_t hSteamAPICall, void * pCallback, int cubCallback, int iCallbackExpected, bool * pbFailed )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetAPICallResult(hSteamAPICall, pCallback, cubCallback, iCallbackExpected, pbFailed);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetIPCCallCount( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetIPCCallCount();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetWarningMessageHook( ISteamUtils* self, SteamAPIWarningMessageHook_t pFunction )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetWarningMessageHook(pFunction);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_IsOverlayEnabled( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsOverlayEnabled();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_BOverlayNeedsPresent( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->BOverlayNeedsPresent();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUtils_CheckFileSignature( ISteamUtils* self, const char * szFileName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->CheckFileSignature(szFileName);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_ShowGamepadTextInput( ISteamUtils* self, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char * pchDescription, uint32 unCharMax, const char * pchExistingText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->ShowGamepadTextInput(eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUtils_GetEnteredGamepadTextLength( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetEnteredGamepadTextLength();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_GetEnteredGamepadTextInput( ISteamUtils* self, char * pchText, uint32 cchText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetEnteredGamepadTextInput(pchText, cchText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUtils_GetSteamUILanguage( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetSteamUILanguage();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_IsSteamRunningInVR( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamRunningInVR();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetOverlayNotificationInset( ISteamUtils* self, int nHorizontalInset, int nVerticalInset )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetOverlayNotificationInset(nHorizontalInset, nVerticalInset);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_IsSteamInBigPictureMode( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamInBigPictureMode();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_StartVRDashboard( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->StartVRDashboard();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_IsVRHeadsetStreamingEnabled( ISteamUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsVRHeadsetStreamingEnabled();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUtils_SetVRHeadsetStreamingEnabled( ISteamUtils* self, bool bEnabled )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->SetVRHeadsetStreamingEnabled(bEnabled);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_IsSteamChinaLauncher( ISteamUtils* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->IsSteamChinaLauncher();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUtils_InitFilterText( ISteamUtils* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->InitFilterText();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUtils_FilterText( ISteamUtils* self, char * pchOutFilteredText, uint32 nByteSizeOutFilteredText, const char * pchInputMessage, bool bLegalOnly )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->FilterText(pchOutFilteredText, nByteSizeOutFilteredText, pchInputMessage, bLegalOnly);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamIPv6ConnectivityState SteamAPI_ISteamUtils_GetIPv6ConnectivityState( ISteamUtils* self, ESteamIPv6ConnectivityProtocol eProtocol )
2019-12-09 17:49:55 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_utils);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_utils);
2019-12-09 17:49:55 +00:00
auto ptr = get_steam_client()->steam_gameserver_utils;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_utils;
}
return (ptr)->GetIPv6ConnectivityState(eProtocol);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmaking *SteamAPI_SteamMatchmaking_v009()
{
return get_steam_client()->GetISteamMatchmaking(flat_hsteamuser(), flat_hsteampipe(), "SteamMatchMaking009");
}
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetFavoriteGameCount( ISteamMatchmaking* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetFavoriteGameCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_GetFavoriteGame( ISteamMatchmaking* self, int iGame, AppId_t * pnAppID, uint32 * pnIP, uint16 * pnConnPort, uint16 * pnQueryPort, uint32 * punFlags, uint32 * pRTime32LastPlayedOnServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetFavoriteGame(iGame, pnAppID, pnIP, pnConnPort, pnQueryPort, punFlags, pRTime32LastPlayedOnServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_AddFavoriteGame( ISteamMatchmaking* self, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags, uint32 rTime32LastPlayedOnServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags, rTime32LastPlayedOnServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_RemoveFavoriteGame( ISteamMatchmaking* self, AppId_t nAppID, uint32 nIP, uint16 nConnPort, uint16 nQueryPort, uint32 unFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->RemoveFavoriteGame(nAppID, nIP, nConnPort, nQueryPort, unFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_RequestLobbyList( ISteamMatchmaking* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->RequestLobbyList();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListStringFilter( ISteamMatchmaking* self, const char * pchKeyToMatch, const char * pchValueToMatch, ELobbyComparison eComparisonType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListStringFilter(pchKeyToMatch, pchValueToMatch, eComparisonType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNumericalFilter( ISteamMatchmaking* self, const char * pchKeyToMatch, int nValueToMatch, ELobbyComparison eComparisonType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListNumericalFilter(pchKeyToMatch, nValueToMatch, eComparisonType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListNearValueFilter( ISteamMatchmaking* self, const char * pchKeyToMatch, int nValueToBeCloseTo )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListNearValueFilter(pchKeyToMatch, nValueToBeCloseTo);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListFilterSlotsAvailable( ISteamMatchmaking* self, int nSlotsAvailable )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListFilterSlotsAvailable(nSlotsAvailable);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListDistanceFilter( ISteamMatchmaking* self, ELobbyDistanceFilter eLobbyDistanceFilter )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListDistanceFilter(eLobbyDistanceFilter);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListResultCountFilter( ISteamMatchmaking* self, int cMaxResults )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListResultCountFilter(cMaxResults);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_AddRequestLobbyListCompatibleMembersFilter( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->AddRequestLobbyListCompatibleMembersFilter(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamMatchmaking_GetLobbyByIndex( ISteamMatchmaking* self, int iLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyByIndex(iLobby).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_CreateLobby( ISteamMatchmaking* self, ELobbyType eLobbyType, int cMaxMembers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->CreateLobby(eLobbyType, cMaxMembers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamMatchmaking_JoinLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->JoinLobby(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_LeaveLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->LeaveLobby(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_InviteUserToLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDInvitee )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->InviteUserToLobby(steamIDLobby, steamIDInvitee);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetNumLobbyMembers( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetNumLobbyMembers(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamMatchmaking_GetLobbyMemberByIndex( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int iMember )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberByIndex(steamIDLobby, iMember).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamMatchmaking_GetLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyData(steamIDLobby, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyData(steamIDLobby, pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyDataCount( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyDataCount(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_GetLobbyDataByIndex( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int iLobbyData, char * pchKey, int cchKeyBufferSize, char * pchValue, int cchValueBufferSize )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyDataByIndex(steamIDLobby, iLobbyData, pchKey, cchKeyBufferSize, pchValue, cchValueBufferSize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_DeleteLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->DeleteLobbyData(steamIDLobby, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamMatchmaking_GetLobbyMemberData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDUser, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberData(steamIDLobby, steamIDUser, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_SetLobbyMemberData( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyMemberData(steamIDLobby, pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SendLobbyChatMsg( ISteamMatchmaking* self, uint64_steamid steamIDLobby, const void * pvMsgBody, int cubMsgBody )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SendLobbyChatMsg(steamIDLobby, pvMsgBody, cubMsgBody);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyChatEntry( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int iChatID, CSteamID * pSteamIDUser, void * pvData, int cubData, EChatEntryType * peChatEntryType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyChatEntry(steamIDLobby, iChatID, pSteamIDUser, pvData, cubData, peChatEntryType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_RequestLobbyData( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->RequestLobbyData(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmaking_SetLobbyGameServer( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint32 unGameServerIP, uint16 unGameServerPort, uint64_steamid steamIDGameServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyGameServer(steamIDLobby, unGameServerIP, unGameServerPort, steamIDGameServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_GetLobbyGameServer( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint32 * punGameServerIP, uint16 * punGameServerPort, CSteamID * psteamIDGameServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyGameServer(steamIDLobby, punGameServerIP, punGameServerPort, psteamIDGameServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyMemberLimit( ISteamMatchmaking* self, uint64_steamid steamIDLobby, int cMaxMembers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyMemberLimit(steamIDLobby, cMaxMembers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmaking_GetLobbyMemberLimit( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyMemberLimit(steamIDLobby);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyType( ISteamMatchmaking* self, uint64_steamid steamIDLobby, ELobbyType eLobbyType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyType(steamIDLobby, eLobbyType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyJoinable( ISteamMatchmaking* self, uint64_steamid steamIDLobby, bool bLobbyJoinable )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyJoinable(steamIDLobby, bLobbyJoinable);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamMatchmaking_GetLobbyOwner( ISteamMatchmaking* self, uint64_steamid steamIDLobby )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->GetLobbyOwner(steamIDLobby).ConvertToUint64();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLobbyOwner( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDNewOwner )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLobbyOwner(steamIDLobby, steamIDNewOwner);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmaking_SetLinkedLobby( ISteamMatchmaking* self, uint64_steamid steamIDLobby, uint64_steamid steamIDLobbyDependent )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking)->SetLinkedLobby(steamIDLobby, steamIDLobbyDependent);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_ServerResponded( ISteamMatchmakingServerListResponse* self, HServerListRequest hRequest, int iServer )
{
return self->ServerResponded(hRequest, iServer);
}
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_ServerFailedToRespond( ISteamMatchmakingServerListResponse* self, HServerListRequest hRequest, int iServer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ServerFailedToRespond(hRequest, iServer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServerListResponse_RefreshComplete( ISteamMatchmakingServerListResponse* self, HServerListRequest hRequest, EMatchMakingServerResponse response )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RefreshComplete(hRequest, response);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPingResponse_ServerResponded( ISteamMatchmakingPingResponse* self, gameserveritem_t & server )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ServerResponded(server);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPingResponse_ServerFailedToRespond( ISteamMatchmakingPingResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ServerFailedToRespond();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_AddPlayerToList( ISteamMatchmakingPlayersResponse* self, const char * pchName, int nScore, float flTimePlayed )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddPlayerToList(pchName, nScore, flTimePlayed);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersFailedToRespond( ISteamMatchmakingPlayersResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayersFailedToRespond();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingPlayersResponse_PlayersRefreshComplete( ISteamMatchmakingPlayersResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayersRefreshComplete();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesResponded( ISteamMatchmakingRulesResponse* self, const char * pchRule, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RulesResponded(pchRule, pchValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesFailedToRespond( ISteamMatchmakingRulesResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RulesFailedToRespond();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingRulesResponse_RulesRefreshComplete( ISteamMatchmakingRulesResponse* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RulesRefreshComplete();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMatchmakingServers *SteamAPI_SteamMatchmakingServers_v002()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamMatchmakingServers(flat_hsteamuser(), flat_hsteampipe(), "SteamMatchMakingServers002");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestInternetServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestInternetServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestLANServerList( ISteamMatchmakingServers* self, AppId_t iApp, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestLANServerList(iApp, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestFriendsServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestFriendsServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestFavoritesServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestFavoritesServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestHistoryServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestHistoryServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerListRequest SteamAPI_ISteamMatchmakingServers_RequestSpectatorServerList( ISteamMatchmakingServers* self, AppId_t iApp, MatchMakingKeyValuePair_t ** ppchFilters, uint32 nFilters, ISteamMatchmakingServerListResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RequestSpectatorServerList(iApp, ppchFilters, nFilters, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_ReleaseRequest( ISteamMatchmakingServers* self, HServerListRequest hServerListRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->ReleaseRequest(hServerListRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API gameserveritem_t * SteamAPI_ISteamMatchmakingServers_GetServerDetails( ISteamMatchmakingServers* self, HServerListRequest hRequest, int iServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->GetServerDetails(hRequest, iServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_CancelQuery( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->CancelQuery(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_RefreshQuery( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RefreshQuery(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMatchmakingServers_IsRefreshing( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->IsRefreshing(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamMatchmakingServers_GetServerCount( ISteamMatchmakingServers* self, HServerListRequest hRequest )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->GetServerCount(hRequest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_RefreshServer( ISteamMatchmakingServers* self, HServerListRequest hRequest, int iServer )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->RefreshServer(hRequest, iServer);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_PingServer( ISteamMatchmakingServers* self, uint32 unIP, uint16 usPort, ISteamMatchmakingPingResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->PingServer(unIP, usPort, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_PlayerDetails( ISteamMatchmakingServers* self, uint32 unIP, uint16 usPort, ISteamMatchmakingPlayersResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->PlayerDetails(unIP, usPort, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HServerQuery SteamAPI_ISteamMatchmakingServers_ServerRules( ISteamMatchmakingServers* self, uint32 unIP, uint16 usPort, ISteamMatchmakingRulesResponse * pRequestServersResponse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->ServerRules(unIP, usPort, pRequestServersResponse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMatchmakingServers_CancelServerQuery( ISteamMatchmakingServers* self, HServerQuery hServerQuery )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_matchmaking_servers)->CancelServerQuery(hServerQuery);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamGameSearch *SteamAPI_SteamGameSearch_v001()
{
return get_steam_client()->GetISteamGameSearch(flat_hsteamuser(), flat_hsteampipe(), "SteamMatchGameSearch001");
}
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_AddGameSearchParams( ISteamGameSearch* self, const char * pchKeyToFind, const char * pchValuesToFind )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddGameSearchParams(pchKeyToFind, pchValuesToFind);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SearchForGameWithLobby( ISteamGameSearch* self, uint64_steamid steamIDLobby, int nPlayerMin, int nPlayerMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SearchForGameWithLobby(steamIDLobby, nPlayerMin, nPlayerMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SearchForGameSolo( ISteamGameSearch* self, int nPlayerMin, int nPlayerMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SearchForGameSolo(nPlayerMin, nPlayerMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_AcceptGame( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AcceptGame();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_DeclineGame( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DeclineGame();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_RetrieveConnectionDetails( ISteamGameSearch* self, uint64_steamid steamIDHost, char * pchConnectionDetails, int cubConnectionDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RetrieveConnectionDetails(steamIDHost, pchConnectionDetails, cubConnectionDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_EndGameSearch( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EndGameSearch();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SetGameHostParams( ISteamGameSearch* self, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetGameHostParams(pchKey, pchValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SetConnectionDetails( ISteamGameSearch* self, const char * pchConnectionDetails, int cubConnectionDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetConnectionDetails(pchConnectionDetails, cubConnectionDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_RequestPlayersForGame( ISteamGameSearch* self, int nPlayerMin, int nPlayerMax, int nMaxTeamSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RequestPlayersForGame(nPlayerMin, nPlayerMax, nMaxTeamSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_HostConfirmGameStart( ISteamGameSearch* self, uint64 ullUniqueGameID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->HostConfirmGameStart(ullUniqueGameID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_CancelRequestPlayersForGame( ISteamGameSearch* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CancelRequestPlayersForGame();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_SubmitPlayerResult( ISteamGameSearch* self, uint64 ullUniqueGameID, uint64_steamid steamIDPlayer, EPlayerResult_t EPlayerResult )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SubmitPlayerResult(ullUniqueGameID, steamIDPlayer, EPlayerResult);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EGameSearchErrorCode_t SteamAPI_ISteamGameSearch_EndGame( ISteamGameSearch* self, uint64 ullUniqueGameID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EndGame(ullUniqueGameID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParties *SteamAPI_SteamParties_v002()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamParties(flat_hsteamuser(), flat_hsteampipe(), "SteamParties002");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamParties_GetNumActiveBeacons( ISteamParties* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetNumActiveBeacons();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API PartyBeaconID_t SteamAPI_ISteamParties_GetBeaconByIndex( ISteamParties* self, uint32 unIndex )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetBeaconByIndex(unIndex);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParties_GetBeaconDetails( ISteamParties* self, PartyBeaconID_t ulBeaconID, CSteamID * pSteamIDBeaconOwner, SteamPartyBeaconLocation_t * pLocation, char * pchMetadata, int cchMetadata )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetBeaconDetails(ulBeaconID, pSteamIDBeaconOwner, pLocation, pchMetadata, cchMetadata);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_JoinParty( ISteamParties* self, PartyBeaconID_t ulBeaconID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->JoinParty(ulBeaconID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParties_GetNumAvailableBeaconLocations( ISteamParties* self, uint32 * puNumLocations )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetNumAvailableBeaconLocations(puNumLocations);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParties_GetAvailableBeaconLocations( ISteamParties* self, SteamPartyBeaconLocation_t * pLocationList, uint32 uMaxNumLocations )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAvailableBeaconLocations(pLocationList, uMaxNumLocations);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_CreateBeacon( ISteamParties* self, uint32 unOpenSlots, SteamPartyBeaconLocation_t * pBeaconLocation, const char * pchConnectString, const char * pchMetadata )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateBeacon(unOpenSlots, pBeaconLocation, pchConnectString, pchMetadata);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamParties_OnReservationCompleted( ISteamParties* self, PartyBeaconID_t ulBeacon, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->OnReservationCompleted(ulBeacon, steamIDUser);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamParties_CancelReservation( ISteamParties* self, PartyBeaconID_t ulBeacon, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CancelReservation(ulBeacon, steamIDUser);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamParties_ChangeNumOpenSlots( ISteamParties* self, PartyBeaconID_t ulBeacon, uint32 unOpenSlots )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ChangeNumOpenSlots(ulBeacon, unOpenSlots);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParties_DestroyBeacon( ISteamParties* self, PartyBeaconID_t ulBeacon )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroyBeacon(ulBeacon);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParties_GetBeaconLocationData( ISteamParties* self, SteamPartyBeaconLocation_t BeaconLocation, ESteamPartyBeaconLocationData eData, char * pchDataStringOut, int cchDataStringOut )
{
return self->GetBeaconLocationData(BeaconLocation, eData, pchDataStringOut, cchDataStringOut);
}
STEAMAPI_API ISteamRemoteStorage *SteamAPI_SteamRemoteStorage_v014()
{
return get_steam_client()->GetISteamRemoteStorage(flat_hsteamuser(), flat_hsteampipe(), "STEAMREMOTESTORAGE_INTERFACE_VERSION014");
}
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWrite( ISteamRemoteStorage* self, const char * pchFile, const void * pvData, int32 cubData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWrite(pchFile, pvData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_FileRead( ISteamRemoteStorage* self, const char * pchFile, void * pvData, int32 cubDataToRead )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileRead(pchFile, pvData, cubDataToRead);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileWriteAsync( ISteamRemoteStorage* self, const char * pchFile, const void * pvData, uint32 cubData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteAsync(pchFile, pvData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileReadAsync( ISteamRemoteStorage* self, const char * pchFile, uint32 nOffset, uint32 cubToRead )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileReadAsync(pchFile, nOffset, cubToRead);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileReadAsyncComplete( ISteamRemoteStorage* self, SteamAPICall_t hReadCall, void * pvBuffer, uint32 cubToRead )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileReadAsyncComplete(hReadCall, pvBuffer, cubToRead);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileForget( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileForget(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileDelete( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileDelete(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_FileShare( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileShare(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_SetSyncPlatforms( ISteamRemoteStorage* self, const char * pchFile, ERemoteStoragePlatform eRemoteStoragePlatform )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SetSyncPlatforms(pchFile, eRemoteStoragePlatform);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCFileWriteStreamHandle_t SteamAPI_ISteamRemoteStorage_FileWriteStreamOpen( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamOpen(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWriteStreamWriteChunk( ISteamRemoteStorage* self, UGCFileWriteStreamHandle_t writeHandle, const void * pvData, int32 cubData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamWriteChunk(writeHandle, pvData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWriteStreamClose( ISteamRemoteStorage* self, UGCFileWriteStreamHandle_t writeHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamClose(writeHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileWriteStreamCancel( ISteamRemoteStorage* self, UGCFileWriteStreamHandle_t writeHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileWriteStreamCancel(writeHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FileExists( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FileExists(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_FilePersisted( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->FilePersisted(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetFileSize( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileSize(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int64 SteamAPI_ISteamRemoteStorage_GetFileTimestamp( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileTimestamp(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ERemoteStoragePlatform SteamAPI_ISteamRemoteStorage_GetSyncPlatforms( ISteamRemoteStorage* self, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetSyncPlatforms(pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetFileCount( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamRemoteStorage_GetFileNameAndSize( ISteamRemoteStorage* self, int iFile, int32 * pnFileSizeInBytes )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetFileNameAndSize(iFile, pnFileSizeInBytes);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_GetQuota( ISteamRemoteStorage* self, uint64 * pnTotalBytes, uint64 * puAvailableBytes )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetQuota(pnTotalBytes, puAvailableBytes);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForAccount( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->IsCloudEnabledForAccount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_IsCloudEnabledForApp( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->IsCloudEnabledForApp();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamRemoteStorage_SetCloudEnabledForApp( ISteamRemoteStorage* self, bool bEnabled )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SetCloudEnabledForApp(bEnabled);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UGCDownload( ISteamRemoteStorage* self, UGCHandle_t hContent, uint32 unPriority )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UGCDownload(hContent, unPriority);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_GetUGCDownloadProgress( ISteamRemoteStorage* self, UGCHandle_t hContent, int32 * pnBytesDownloaded, int32 * pnBytesExpected )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetUGCDownloadProgress(hContent, pnBytesDownloaded, pnBytesExpected);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_GetUGCDetails( ISteamRemoteStorage* self, UGCHandle_t hContent, AppId_t * pnAppID, char ** ppchName, int32 * pnFileSizeInBytes, CSteamID * pSteamIDOwner )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetUGCDetails(hContent, pnAppID, ppchName, pnFileSizeInBytes, pSteamIDOwner);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_UGCRead( ISteamRemoteStorage* self, UGCHandle_t hContent, void * pvData, int32 cubDataToRead, uint32 cOffset, EUGCReadAction eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UGCRead(hContent, pvData, cubDataToRead, cOffset, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamRemoteStorage_GetCachedUGCCount( ISteamRemoteStorage* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetCachedUGCCount();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCHandle_t SteamAPI_ISteamRemoteStorage_GetCachedUGCHandle( ISteamRemoteStorage* self, int32 iCachedContent )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetCachedUGCHandle(iCachedContent);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_PublishWorkshopFile( ISteamRemoteStorage* self, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->PublishWorkshopFile(pchFile, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API PublishedFileUpdateHandle_t SteamAPI_ISteamRemoteStorage_CreatePublishedFileUpdateRequest( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->CreatePublishedFileUpdateRequest(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileFile( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileFile(updateHandle, pchFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFilePreviewFile( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFilePreviewFile(updateHandle, pchPreviewFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTitle( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchTitle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileTitle(updateHandle, pchTitle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileDescription( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchDescription )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileDescription(updateHandle, pchDescription);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileVisibility( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, ERemoteStoragePublishedFileVisibility eVisibility )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileVisibility(updateHandle, eVisibility);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileTags( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, SteamParamStringArray_t * pTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileTags(updateHandle, pTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->CommitPublishedFileUpdate(updateHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId, uint32 unMaxSecondsOld )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetPublishedFileDetails(unPublishedFileId, unMaxSecondsOld);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_DeletePublishedFile( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->DeletePublishedFile(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles( ISteamRemoteStorage* self, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumerateUserPublishedFiles(unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_SubscribePublishedFile( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SubscribePublishedFile(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles( ISteamRemoteStorage* self, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumerateUserSubscribedFiles(unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UnsubscribePublishedFile(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemoteStorage_UpdatePublishedFileSetChangeDescription( ISteamRemoteStorage* self, PublishedFileUpdateHandle_t updateHandle, const char * pchChangeDescription )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdatePublishedFileSetChangeDescription(updateHandle, pchChangeDescription);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetPublishedItemVoteDetails(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId, bool bVoteUp )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UpdateUserPublishedItemVote(unPublishedFileId, bVoteUp);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->GetUserPublishedItemVoteDetails(unPublishedFileId);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumerateUserSharedWorkshopFiles( ISteamRemoteStorage* self, uint64_steamid steamId, uint32 unStartIndex, SteamParamStringArray_t * pRequiredTags, SteamParamStringArray_t * pExcludedTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumerateUserSharedWorkshopFiles(steamId, unStartIndex, pRequiredTags, pExcludedTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_PublishVideo( ISteamRemoteStorage* self, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->PublishVideo(eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction( ISteamRemoteStorage* self, PublishedFileId_t unPublishedFileId, EWorkshopFileAction eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->SetUserPublishedFileAction(unPublishedFileId, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction( ISteamRemoteStorage* self, EWorkshopFileAction eAction, uint32 unStartIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumeratePublishedFilesByUserAction(eAction, unStartIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_EnumeratePublishedWorkshopFiles( ISteamRemoteStorage* self, EWorkshopEnumerationType eEnumerationType, uint32 unStartIndex, uint32 unCount, uint32 unDays, SteamParamStringArray_t * pTags, SteamParamStringArray_t * pUserTags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->EnumeratePublishedWorkshopFiles(eEnumerationType, unStartIndex, unCount, unDays, pTags, pUserTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation( ISteamRemoteStorage* self, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_remote_storage)->UGCDownloadToLocation(hContent, pchLocation, unPriority);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUserStats *SteamAPI_SteamUserStats_v011()
{
return get_steam_client()->GetISteamUserStats(flat_hsteamuser(), flat_hsteampipe(), "STEAMUSERSTATS_INTERFACE_VERSION011");
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_RequestCurrentStats( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestCurrentStats();
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetStat(intptr_t instancePtr, const char * pchName, int32 * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetStat0(intptr_t instancePtr, const char * pchName, float * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetStatInt32( ISteamUserStats* self, const char * pchName, int32 * pData )
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetStatFloat( ISteamUserStats* self, const char * pchName, float * pData )
{
return (get_steam_client()->steam_user_stats)->GetStat(pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetStat(intptr_t instancePtr, const char * pchName, int32 nData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, nData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetStat0(intptr_t instancePtr, const char * pchName, float fData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, fData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetStatInt32( ISteamUserStats* self, const char * pchName, int32 nData )
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, nData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetStatFloat( ISteamUserStats* self, const char * pchName, float fData )
{
return (get_steam_client()->steam_user_stats)->SetStat(pchName, fData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_UpdateAvgRateStat( ISteamUserStats* self, const char * pchName, float flCountThisSession, double dSessionLength )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->UpdateAvgRateStat(pchName, flCountThisSession, dSessionLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetAchievement( ISteamUserStats* self, const char * pchName, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievement(pchName, pbAchieved);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_SetAchievement( ISteamUserStats* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->SetAchievement(pchName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_ClearAchievement( ISteamUserStats* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->ClearAchievement(pchName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetAchievementAndUnlockTime( ISteamUserStats* self, const char * pchName, bool * pbAchieved, uint32 * punUnlockTime )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementAndUnlockTime(pchName, pbAchieved, punUnlockTime);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_StoreStats( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->StoreStats();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetAchievementIcon( ISteamUserStats* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementIcon(pchName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute( ISteamUserStats* self, const char * pchName, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementDisplayAttribute(pchName, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_IndicateAchievementProgress( ISteamUserStats* self, const char * pchName, uint32 nCurProgress, uint32 nMaxProgress )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->IndicateAchievementProgress(pchName, nCurProgress, nMaxProgress);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUserStats_GetNumAchievements( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetNumAchievements();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetAchievementName( ISteamUserStats* self, uint32 iAchievement )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementName(iAchievement);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestUserStats( ISteamUserStats* self, uint64_steamid steamIDUser )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestUserStats(steamIDUser);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserStatInt32( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, int32 * pData )
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserStatFloat( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, float * pData )
{
return (get_steam_client()->steam_user_stats)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserAchievement( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserAchievement(steamIDUser, pchName, pbAchieved);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetUserAchievementAndUnlockTime( ISteamUserStats* self, uint64_steamid steamIDUser, const char * pchName, bool * pbAchieved, uint32 * punUnlockTime )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetUserAchievementAndUnlockTime(steamIDUser, pchName, pbAchieved, punUnlockTime);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_ResetAllStats( ISteamUserStats* self, bool bAchievementsToo )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->ResetAllStats(bAchievementsToo);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_FindOrCreateLeaderboard( ISteamUserStats* self, const char * pchLeaderboardName, ELeaderboardSortMethod eLeaderboardSortMethod, ELeaderboardDisplayType eLeaderboardDisplayType )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->FindOrCreateLeaderboard(pchLeaderboardName, eLeaderboardSortMethod, eLeaderboardDisplayType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_FindLeaderboard( ISteamUserStats* self, const char * pchLeaderboardName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->FindLeaderboard(pchLeaderboardName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamUserStats_GetLeaderboardName( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardName(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetLeaderboardEntryCount( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardEntryCount(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ELeaderboardSortMethod SteamAPI_ISteamUserStats_GetLeaderboardSortMethod( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardSortMethod(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ELeaderboardDisplayType SteamAPI_ISteamUserStats_GetLeaderboardDisplayType( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetLeaderboardDisplayType(hSteamLeaderboard);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_DownloadLeaderboardEntries( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->DownloadLeaderboardEntries(hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, CSteamID * prgUsers, int cUsers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->DownloadLeaderboardEntriesForUsers(hSteamLeaderboard, prgUsers, cUsers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetDownloadedLeaderboardEntry( ISteamUserStats* self, SteamLeaderboardEntries_t hSteamLeaderboardEntries, int index, LeaderboardEntry_t * pLeaderboardEntry, int32 * pDetails, int cDetailsMax )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetDownloadedLeaderboardEntry(hSteamLeaderboardEntries, index, pLeaderboardEntry, pDetails, cDetailsMax);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_UploadLeaderboardScore( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int32 nScore, const int32 * pScoreDetails, int cScoreDetailsCount )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->UploadLeaderboardScore(hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_AttachLeaderboardUGC( ISteamUserStats* self, SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->AttachLeaderboardUGC(hSteamLeaderboard, hUGC);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetNumberOfCurrentPlayers();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages( ISteamUserStats* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestGlobalAchievementPercentages();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetMostAchievedAchievementInfo( ISteamUserStats* self, char * pchName, uint32 unNameBufLen, float * pflPercent, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetMostAchievedAchievementInfo(pchName, unNameBufLen, pflPercent, pbAchieved);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamUserStats_GetNextMostAchievedAchievementInfo( ISteamUserStats* self, int iIteratorPrevious, char * pchName, uint32 unNameBufLen, float * pflPercent, bool * pbAchieved )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetNextMostAchievedAchievementInfo(iIteratorPrevious, pchName, unNameBufLen, pflPercent, pbAchieved);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetAchievementAchievedPercent( ISteamUserStats* self, const char * pchName, float * pflPercent )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetAchievementAchievedPercent(pchName, pflPercent);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUserStats_RequestGlobalStats( ISteamUserStats* self, int nHistoryDays )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->RequestGlobalStats(nHistoryDays);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetGlobalStat(intptr_t instancePtr, const char * pchStatName, int64 * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetGlobalStat0(intptr_t instancePtr, const char * pchStatName, double * pData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetGlobalStatInt64( ISteamUserStats* self, const char * pchStatName, int64 * pData )
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamUserStats_GetGlobalStatDouble( ISteamUserStats* self, const char * pchStatName, double * pData )
{
return (get_steam_client()->steam_user_stats)->GetGlobalStat(pchStatName, pData);
}
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistory(intptr_t instancePtr, const char * pchStatName, int64 * pData, uint32 cubData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistory0(intptr_t instancePtr, const char * pchStatName, double * pData, uint32 cubData)
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistoryInt64( ISteamUserStats* self, const char * pchStatName, int64 * pData, uint32 cubData )
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
STEAMAPI_API int32 SteamAPI_ISteamUserStats_GetGlobalStatHistoryDouble( ISteamUserStats* self, const char * pchStatName, double * pData, uint32 cubData )
{
return (get_steam_client()->steam_user_stats)->GetGlobalStatHistory(pchStatName, pData, cubData);
}
STEAMAPI_API ISteamApps *SteamAPI_SteamApps_v008()
{
return get_steam_client()->GetISteamApps(flat_hsteamuser(), flat_hsteampipe(), "STEAMAPPS_INTERFACE_VERSION008");
}
STEAMAPI_API ISteamApps *SteamAPI_SteamGameServerApps_v008()
{
return get_steam_client()->GetISteamApps(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMAPPS_INTERFACE_VERSION008");
}
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribed( ISteamApps* self )
{
return self->BIsSubscribed();
}
STEAMAPI_API bool SteamAPI_ISteamApps_BIsLowViolence( ISteamApps* self )
{
return self->BIsLowViolence();
}
STEAMAPI_API bool SteamAPI_ISteamApps_BIsCybercafe( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsCybercafe();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BIsVACBanned( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsVACBanned();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamApps_GetCurrentGameLanguage( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetCurrentGameLanguage();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamApps_GetAvailableGameLanguages( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAvailableGameLanguages();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribedApp( ISteamApps* self, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsSubscribedApp(appID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BIsDlcInstalled( ISteamApps* self, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsDlcInstalled(appID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetEarliestPurchaseUnixTime( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetEarliestPurchaseUnixTime(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribedFromFreeWeekend( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsSubscribedFromFreeWeekend();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamApps_GetDLCCount( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetDLCCount();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BGetDLCDataByIndex( ISteamApps* self, int iDLC, AppId_t * pAppID, bool * pbAvailable, char * pchName, int cchNameBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BGetDLCDataByIndex(iDLC, pAppID, pbAvailable, pchName, cchNameBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_InstallDLC( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->InstallDLC(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_UninstallDLC( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UninstallDLC(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_RequestAppProofOfPurchaseKey( ISteamApps* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RequestAppProofOfPurchaseKey(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_GetCurrentBetaName( ISteamApps* self, char * pchName, int cchNameBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetCurrentBetaName(pchName, cchNameBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_MarkContentCorrupt( ISteamApps* self, bool bMissingFilesOnly )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->MarkContentCorrupt(bMissingFilesOnly);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetInstalledDepots( ISteamApps* self, AppId_t appID, DepotId_t * pvecDepots, uint32 cMaxDepots )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetInstalledDepots(appID, pvecDepots, cMaxDepots);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamApps_GetAppInstallDir( ISteamApps* self, AppId_t appID, char * pchFolder, uint32 cchFolderBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppInstallDir(appID, pchFolder, cchFolderBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BIsAppInstalled( ISteamApps* self, AppId_t appID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsAppInstalled(appID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamApps_GetAppOwner( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppOwner().ConvertToUint64();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamApps_GetLaunchQueryParam( ISteamApps* self, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetLaunchQueryParam(pchKey);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_GetDlcDownloadProgress( ISteamApps* self, AppId_t nAppID, uint64 * punBytesDownloaded, uint64 * punBytesTotal )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetDlcDownloadProgress(nAppID, punBytesDownloaded, punBytesTotal);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamApps_GetAppBuildId( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppBuildId();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamApps_RequestAllProofOfPurchaseKeys( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RequestAllProofOfPurchaseKeys();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamApps_GetFileDetails( ISteamApps* self, const char * pszFileName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetFileDetails(pszFileName);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamApps_GetLaunchCommandLine( ISteamApps* self, char * pszCommandLine, int cubCommandLine )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetLaunchCommandLine(pszCommandLine, cubCommandLine);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamApps_BIsSubscribedFromFamilySharing( ISteamApps* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsSubscribedFromFamilySharing();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworking *SteamAPI_SteamNetworking_v006()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamNetworking(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworking006");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworking *SteamAPI_SteamGameServerNetworking_v006()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamNetworking(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworking006");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_SendP2PPacket( ISteamNetworking* self, uint64_steamid steamIDRemote, const void * pubData, uint32 cubData, EP2PSend eP2PSendType, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendP2PPacket(steamIDRemote, pubData, cubData, eP2PSendType, nChannel);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_IsP2PPacketAvailable( ISteamNetworking* self, uint32 * pcubMsgSize, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsP2PPacketAvailable(pcubMsgSize, nChannel);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_ReadP2PPacket( ISteamNetworking* self, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, CSteamID * psteamIDRemote, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReadP2PPacket(pubDest, cubDest, pcubMsgSize, psteamIDRemote, nChannel);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_AcceptP2PSessionWithUser( ISteamNetworking* self, uint64_steamid steamIDRemote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AcceptP2PSessionWithUser(steamIDRemote);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_CloseP2PSessionWithUser( ISteamNetworking* self, uint64_steamid steamIDRemote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CloseP2PSessionWithUser(steamIDRemote);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_CloseP2PChannelWithUser( ISteamNetworking* self, uint64_steamid steamIDRemote, int nChannel )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CloseP2PChannelWithUser(steamIDRemote, nChannel);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_GetP2PSessionState( ISteamNetworking* self, uint64_steamid steamIDRemote, P2PSessionState_t * pConnectionState )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetP2PSessionState(steamIDRemote, pConnectionState);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_AllowP2PPacketRelay( ISteamNetworking* self, bool bAllow )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AllowP2PPacketRelay(bAllow);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SNetListenSocket_t SteamAPI_ISteamNetworking_CreateListenSocket( ISteamNetworking* self, int nVirtualP2PPort, SteamIPAddress_t nIP, uint16 nPort, bool bAllowUseOfPacketRelay )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateListenSocket(nVirtualP2PPort, nIP, nPort, bAllowUseOfPacketRelay);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SNetSocket_t SteamAPI_ISteamNetworking_CreateP2PConnectionSocket( ISteamNetworking* self, uint64_steamid steamIDTarget, int nVirtualPort, int nTimeoutSec, bool bAllowUseOfPacketRelay )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateP2PConnectionSocket(steamIDTarget, nVirtualPort, nTimeoutSec, bAllowUseOfPacketRelay);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SNetSocket_t SteamAPI_ISteamNetworking_CreateConnectionSocket( ISteamNetworking* self, SteamIPAddress_t nIP, uint16 nPort, int nTimeoutSec )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateConnectionSocket(nIP, nPort, nTimeoutSec);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_DestroySocket( ISteamNetworking* self, SNetSocket_t hSocket, bool bNotifyRemoteEnd )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroySocket(hSocket, bNotifyRemoteEnd);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_DestroyListenSocket( ISteamNetworking* self, SNetListenSocket_t hSocket, bool bNotifyRemoteEnd )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroyListenSocket(hSocket, bNotifyRemoteEnd);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_SendDataOnSocket( ISteamNetworking* self, SNetSocket_t hSocket, void * pubData, uint32 cubData, bool bReliable )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendDataOnSocket(hSocket, pubData, cubData, bReliable);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_IsDataAvailableOnSocket( ISteamNetworking* self, SNetSocket_t hSocket, uint32 * pcubMsgSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsDataAvailableOnSocket(hSocket, pcubMsgSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_RetrieveDataFromSocket( ISteamNetworking* self, SNetSocket_t hSocket, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RetrieveDataFromSocket(hSocket, pubDest, cubDest, pcubMsgSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_IsDataAvailable( ISteamNetworking* self, SNetListenSocket_t hListenSocket, uint32 * pcubMsgSize, SNetSocket_t * phSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsDataAvailable(hListenSocket, pcubMsgSize, phSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_RetrieveData( ISteamNetworking* self, SNetListenSocket_t hListenSocket, void * pubDest, uint32 cubDest, uint32 * pcubMsgSize, SNetSocket_t * phSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RetrieveData(hListenSocket, pubDest, cubDest, pcubMsgSize, phSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_GetSocketInfo( ISteamNetworking* self, SNetSocket_t hSocket, CSteamID * pSteamIDRemote, int * peSocketStatus, SteamIPAddress_t * punIPRemote, uint16 * punPortRemote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSocketInfo(hSocket, pSteamIDRemote, peSocketStatus, punIPRemote, punPortRemote);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworking_GetListenSocketInfo( ISteamNetworking* self, SNetListenSocket_t hListenSocket, SteamIPAddress_t * pnIP, uint16 * pnPort )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetListenSocketInfo(hListenSocket, pnIP, pnPort);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESNetSocketConnectionType SteamAPI_ISteamNetworking_GetSocketConnectionType( ISteamNetworking* self, SNetSocket_t hSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSocketConnectionType(hSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworking_GetMaxPacketSize( ISteamNetworking* self, SNetSocket_t hSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetMaxPacketSize(hSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamScreenshots *SteamAPI_SteamScreenshots_v003()
{
return get_steam_client()->GetISteamScreenshots(flat_hsteamuser(), flat_hsteampipe(), "STEAMSCREENSHOTS_INTERFACE_VERSION003");
}
2019-12-09 17:49:55 +00:00
2020-03-25 17:43:23 +00:00
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_WriteScreenshot( ISteamScreenshots* self, void * pubRGB, uint32 cubRGB, int nWidth, int nHeight )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->WriteScreenshot(pubRGB, cubRGB, nWidth, nHeight);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddScreenshotToLibrary( ISteamScreenshots* self, const char * pchFilename, const char * pchThumbnailFilename, int nWidth, int nHeight )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->AddScreenshotToLibrary(pchFilename, pchThumbnailFilename, nWidth, nHeight);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamScreenshots_TriggerScreenshot( ISteamScreenshots* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->TriggerScreenshot();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamScreenshots_HookScreenshots( ISteamScreenshots* self, bool bHook )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->HookScreenshots(bHook);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamScreenshots_SetLocation( ISteamScreenshots* self, ScreenshotHandle hScreenshot, const char * pchLocation )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->SetLocation(hScreenshot, pchLocation);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamScreenshots_TagUser( ISteamScreenshots* self, ScreenshotHandle hScreenshot, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->TagUser(hScreenshot, steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamScreenshots_TagPublishedFile( ISteamScreenshots* self, ScreenshotHandle hScreenshot, PublishedFileId_t unPublishedFileID )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->TagPublishedFile(hScreenshot, unPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamScreenshots_IsScreenshotsHooked( ISteamScreenshots* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->IsScreenshotsHooked();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ScreenshotHandle SteamAPI_ISteamScreenshots_AddVRScreenshotToLibrary( ISteamScreenshots* self, EVRScreenshotType eType, const char * pchFilename, const char * pchVRFilename )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_screenshots)->AddVRScreenshotToLibrary(eType, pchFilename, pchVRFilename);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusic *SteamAPI_SteamMusic_v001()
{
return get_steam_client()->GetISteamMusic(flat_hsteamuser(), flat_hsteampipe(), "STEAMMUSIC_INTERFACE_VERSION001");
}
STEAMAPI_API bool SteamAPI_ISteamMusic_BIsEnabled( ISteamMusic* self )
{
return self->BIsEnabled();
}
STEAMAPI_API bool SteamAPI_ISteamMusic_BIsPlaying( ISteamMusic* self )
{
return self->BIsPlaying();
}
STEAMAPI_API AudioPlayback_Status SteamAPI_ISteamMusic_GetPlaybackStatus( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetPlaybackStatus();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_Play( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->Play();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_Pause( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->Pause();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_PlayPrevious( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayPrevious();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_PlayNext( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlayNext();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamMusic_SetVolume( ISteamMusic* self, float flVolume )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetVolume(flVolume);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API float SteamAPI_ISteamMusic_GetVolume( ISteamMusic* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetVolume();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamMusicRemote *SteamAPI_SteamMusicRemote_v001()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamMusicRemote(flat_hsteamuser(), flat_hsteampipe(), "STEAMMUSICREMOTE_INTERFACE_VERSION001");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_RegisterSteamMusicRemote( ISteamMusicRemote* self, const char * pchName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RegisterSteamMusicRemote(pchName);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_DeregisterSteamMusicRemote( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DeregisterSteamMusicRemote();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_BIsCurrentMusicRemote( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsCurrentMusicRemote();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_BActivationSuccess( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BActivationSuccess(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetDisplayName( ISteamMusicRemote* self, const char * pchDisplayName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetDisplayName(pchDisplayName);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetPNGIcon_64x64( ISteamMusicRemote* self, void * pvBuffer, uint32 cbBufferLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetPNGIcon_64x64(pvBuffer, cbBufferLength);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnablePlayPrevious( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnablePlayPrevious(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnablePlayNext( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnablePlayNext(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnableShuffled( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnableShuffled(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnableLooped( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnableLooped(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnableQueue( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnableQueue(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_EnablePlaylists( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EnablePlaylists(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdatePlaybackStatus( ISteamMusicRemote* self, AudioPlayback_Status nStatus )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdatePlaybackStatus(nStatus);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateShuffled( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateShuffled(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateLooped( ISteamMusicRemote* self, bool bValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateLooped(bValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateVolume( ISteamMusicRemote* self, float flValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateVolume(flValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_CurrentEntryWillChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CurrentEntryWillChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_CurrentEntryIsAvailable( ISteamMusicRemote* self, bool bAvailable )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CurrentEntryIsAvailable(bAvailable);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryText( ISteamMusicRemote* self, const char * pchText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateCurrentEntryText(pchText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryElapsedSeconds( ISteamMusicRemote* self, int nValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateCurrentEntryElapsedSeconds(nValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_UpdateCurrentEntryCoverArt( ISteamMusicRemote* self, void * pvBuffer, uint32 cbBufferLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->UpdateCurrentEntryCoverArt(pvBuffer, cbBufferLength);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_CurrentEntryDidChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CurrentEntryDidChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_QueueWillChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->QueueWillChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_ResetQueueEntries( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ResetQueueEntries();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetQueueEntry( ISteamMusicRemote* self, int nID, int nPosition, const char * pchEntryText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetQueueEntry(nID, nPosition, pchEntryText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetCurrentQueueEntry( ISteamMusicRemote* self, int nID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetCurrentQueueEntry(nID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_QueueDidChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->QueueDidChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_PlaylistWillChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlaylistWillChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_ResetPlaylistEntries( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ResetPlaylistEntries();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetPlaylistEntry( ISteamMusicRemote* self, int nID, int nPosition, const char * pchEntryText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetPlaylistEntry(nID, nPosition, pchEntryText);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_SetCurrentPlaylistEntry( ISteamMusicRemote* self, int nID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetCurrentPlaylistEntry(nID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamMusicRemote_PlaylistDidChange( ISteamMusicRemote* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PlaylistDidChange();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTTP *SteamAPI_SteamHTTP_v003()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTTP(flat_hsteamuser(), flat_hsteampipe(), "STEAMHTTP_INTERFACE_VERSION003");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTTP *SteamAPI_SteamGameServerHTTP_v003()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTTP(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMHTTP_INTERFACE_VERSION003");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HTTPRequestHandle SteamAPI_ISteamHTTP_CreateHTTPRequest( ISteamHTTP* self, EHTTPMethod eHTTPRequestMethod, const char * pchAbsoluteURL )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateHTTPRequest(eHTTPRequestMethod, pchAbsoluteURL);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestContextValue( ISteamHTTP* self, HTTPRequestHandle hRequest, uint64 ulContextValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestContextValue(hRequest, ulContextValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestNetworkActivityTimeout( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 unTimeoutSeconds )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestNetworkActivityTimeout(hRequest, unTimeoutSeconds);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestHeaderValue( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchHeaderName, const char * pchHeaderValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestHeaderValue(hRequest, pchHeaderName, pchHeaderValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestGetOrPostParameter( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchParamName, const char * pchParamValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestGetOrPostParameter(hRequest, pchParamName, pchParamValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SendHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest, SteamAPICall_t * pCallHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendHTTPRequest(hRequest, pCallHandle);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SendHTTPRequestAndStreamResponse( ISteamHTTP* self, HTTPRequestHandle hRequest, SteamAPICall_t * pCallHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendHTTPRequestAndStreamResponse(hRequest, pCallHandle);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_DeferHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DeferHTTPRequest(hRequest);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_PrioritizeHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->PrioritizeHTTPRequest(hRequest);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderSize( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchHeaderName, uint32 * unResponseHeaderSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseHeaderSize(hRequest, pchHeaderName, unResponseHeaderSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseHeaderValue( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchHeaderName, uint8 * pHeaderValueBuffer, uint32 unBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseHeaderValue(hRequest, pchHeaderName, pHeaderValueBuffer, unBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseBodySize( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 * unBodySize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseBodySize(hRequest, unBodySize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPResponseBodyData( ISteamHTTP* self, HTTPRequestHandle hRequest, uint8 * pBodyDataBuffer, uint32 unBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPResponseBodyData(hRequest, pBodyDataBuffer, unBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPStreamingResponseBodyData( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 cOffset, uint8 * pBodyDataBuffer, uint32 unBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPStreamingResponseBodyData(hRequest, cOffset, pBodyDataBuffer, unBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_ReleaseHTTPRequest( ISteamHTTP* self, HTTPRequestHandle hRequest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReleaseHTTPRequest(hRequest);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPDownloadProgressPct( ISteamHTTP* self, HTTPRequestHandle hRequest, float * pflPercentOut )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHTTPDownloadProgressPct(hRequest, pflPercentOut);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestRawPostBody( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchContentType, uint8 * pubBody, uint32 unBodyLen )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestRawPostBody(hRequest, pchContentType, pubBody, unBodyLen);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HTTPCookieContainerHandle SteamAPI_ISteamHTTP_CreateCookieContainer( ISteamHTTP* self, bool bAllowResponsesToModify )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateCookieContainer(bAllowResponsesToModify);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_ReleaseCookieContainer( ISteamHTTP* self, HTTPCookieContainerHandle hCookieContainer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReleaseCookieContainer(hCookieContainer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetCookie( ISteamHTTP* self, HTTPCookieContainerHandle hCookieContainer, const char * pchHost, const char * pchUrl, const char * pchCookie )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetCookie(hCookieContainer, pchHost, pchUrl, pchCookie);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestCookieContainer( ISteamHTTP* self, HTTPRequestHandle hRequest, HTTPCookieContainerHandle hCookieContainer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestCookieContainer(hRequest, hCookieContainer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestUserAgentInfo( ISteamHTTP* self, HTTPRequestHandle hRequest, const char * pchUserAgentInfo )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestUserAgentInfo(hRequest, pchUserAgentInfo);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestRequiresVerifiedCertificate( ISteamHTTP* self, HTTPRequestHandle hRequest, bool bRequireVerifiedCertificate )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestRequiresVerifiedCertificate(hRequest, bRequireVerifiedCertificate);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_SetHTTPRequestAbsoluteTimeoutMS( ISteamHTTP* self, HTTPRequestHandle hRequest, uint32 unMilliseconds )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetHTTPRequestAbsoluteTimeoutMS(hRequest, unMilliseconds);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTTP_GetHTTPRequestWasTimedOut( ISteamHTTP* self, HTTPRequestHandle hRequest, bool * pbWasTimedOut )
{
return self->GetHTTPRequestWasTimedOut(hRequest, pbWasTimedOut);
}
STEAMAPI_API ISteamInput *SteamAPI_SteamInput_v001()
{
return get_steam_client()->GetISteamInput(flat_hsteamuser(), flat_hsteampipe(), "SteamInput001");
}
STEAMAPI_API bool SteamAPI_ISteamInput_Init( ISteamInput* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Init();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInput_Shutdown( ISteamInput* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Shutdown();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_RunFrame( ISteamInput* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->RunFrame();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetConnectedControllers( ISteamInput* self, InputHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetConnectedControllers(handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputActionSetHandle_t SteamAPI_ISteamInput_GetActionSetHandle( ISteamInput* self, const char * pszActionSetName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionSetHandle(pszActionSetName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_ActivateActionSet( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSet(inputHandle, actionSetHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputActionSetHandle_t SteamAPI_ISteamInput_GetCurrentActionSet( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetCurrentActionSet(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_ActivateActionSetLayer( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSetLayer(inputHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_DeactivateActionSetLayer( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateActionSetLayer(inputHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_DeactivateAllActionSetLayers( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateAllActionSetLayers(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetActiveActionSetLayers( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActiveActionSetLayers(inputHandle, handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputDigitalActionHandle_t SteamAPI_ISteamInput_GetDigitalActionHandle( ISteamInput* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputDigitalActionData_t SteamAPI_ISteamInput_GetDigitalActionData( ISteamInput* self, InputHandle_t inputHandle, InputDigitalActionHandle_t digitalActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionData(inputHandle, digitalActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetDigitalActionOrigins( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputDigitalActionHandle_t digitalActionHandle, EInputActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionOrigins(inputHandle, actionSetHandle, digitalActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputAnalogActionHandle_t SteamAPI_ISteamInput_GetAnalogActionHandle( ISteamInput* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputAnalogActionData_t SteamAPI_ISteamInput_GetAnalogActionData( ISteamInput* self, InputHandle_t inputHandle, InputAnalogActionHandle_t analogActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionData(inputHandle, analogActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetAnalogActionOrigins( ISteamInput* self, InputHandle_t inputHandle, InputActionSetHandle_t actionSetHandle, InputAnalogActionHandle_t analogActionHandle, EInputActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionOrigins(inputHandle, actionSetHandle, analogActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForActionOrigin( ISteamInput* self, EInputActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForActionOrigin( ISteamInput* self, EInputActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForActionOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_StopAnalogActionMomentum( ISteamInput* self, InputHandle_t inputHandle, InputAnalogActionHandle_t eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->StopAnalogActionMomentum(inputHandle, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputMotionData_t SteamAPI_ISteamInput_GetMotionData( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetMotionData(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerVibration( ISteamInput* self, InputHandle_t inputHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerVibration(inputHandle, usLeftSpeed, usRightSpeed);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_SetLEDColor( ISteamInput* self, InputHandle_t inputHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->SetLEDColor(inputHandle, nColorR, nColorG, nColorB, nFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerHapticPulse( ISteamInput* self, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerHapticPulse(inputHandle, eTargetPad, usDurationMicroSec);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInput_TriggerRepeatedHapticPulse( ISteamInput* self, InputHandle_t inputHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerRepeatedHapticPulse(inputHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInput_ShowBindingPanel( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ShowBindingPanel(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamInputType SteamAPI_ISteamInput_GetInputTypeForHandle( ISteamInput* self, InputHandle_t inputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetInputTypeForHandle(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputHandle_t SteamAPI_ISteamInput_GetControllerForGamepadIndex( ISteamInput* self, int nIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetControllerForGamepadIndex(nIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamInput_GetGamepadIndexForController( ISteamInput* self, InputHandle_t ulinputHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGamepadIndexForController(ulinputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetStringForXboxOrigin( ISteamInput* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamInput_GetGlyphForXboxOrigin( ISteamInput* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EInputActionOrigin SteamAPI_ISteamInput_GetActionOriginFromXboxOrigin( ISteamInput* self, InputHandle_t inputHandle, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionOriginFromXboxOrigin(inputHandle, eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EInputActionOrigin SteamAPI_ISteamInput_TranslateActionOrigin( ISteamInput* self, ESteamInputType eDestinationInputType, EInputActionOrigin eSourceOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TranslateActionOrigin(eDestinationInputType, eSourceOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInput_GetDeviceBindingRevision( ISteamInput* self, InputHandle_t inputHandle, int * pMajor, int * pMinor )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_controller)->GetDeviceBindingRevision(inputHandle, pMajor, pMinor);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamInput_GetRemotePlaySessionID( ISteamInput* self, InputHandle_t inputHandle )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_controller)->GetRemotePlaySessionID(inputHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamController *SteamAPI_SteamController_v007()
{
return get_steam_client()->GetISteamController(flat_hsteamuser(), flat_hsteampipe(), "SteamController007");
}
STEAMAPI_API bool SteamAPI_ISteamController_Init( ISteamController* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Init();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamController_Shutdown( ISteamController* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->Shutdown();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_RunFrame( ISteamController* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->RunFrame();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetConnectedControllers( ISteamController* self, ControllerHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetConnectedControllers(handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetActionSetHandle( ISteamController* self, const char * pszActionSetName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionSetHandle(pszActionSetName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_ActivateActionSet( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSet(controllerHandle, actionSetHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerActionSetHandle_t SteamAPI_ISteamController_GetCurrentActionSet( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetCurrentActionSet(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_ActivateActionSetLayer( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ActivateActionSetLayer(controllerHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_DeactivateActionSetLayer( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetLayerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateActionSetLayer(controllerHandle, actionSetLayerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_DeactivateAllActionSetLayers( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->DeactivateAllActionSetLayers(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetActiveActionSetLayers( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t * handlesOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActiveActionSetLayers(controllerHandle, handlesOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerDigitalActionHandle_t SteamAPI_ISteamController_GetDigitalActionHandle( ISteamController* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputDigitalActionData_t SteamAPI_ISteamController_GetDigitalActionData( ISteamController* self, ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionData(controllerHandle, digitalActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetDigitalActionOrigins( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerDigitalActionHandle_t digitalActionHandle, EControllerActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetDigitalActionOrigins(controllerHandle, actionSetHandle, digitalActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerAnalogActionHandle_t SteamAPI_ISteamController_GetAnalogActionHandle( ISteamController* self, const char * pszActionName )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionHandle(pszActionName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputAnalogActionData_t SteamAPI_ISteamController_GetAnalogActionData( ISteamController* self, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionData(controllerHandle, analogActionHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetAnalogActionOrigins( ISteamController* self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin * originsOut )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetAnalogActionOrigins(controllerHandle, actionSetHandle, analogActionHandle, originsOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetGlyphForActionOrigin( ISteamController* self, EControllerActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForActionOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetStringForActionOrigin( ISteamController* self, EControllerActionOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForActionOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_StopAnalogActionMomentum( ISteamController* self, ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->StopAnalogActionMomentum(controllerHandle, eAction);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API InputMotionData_t SteamAPI_ISteamController_GetMotionData( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetMotionData(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_TriggerHapticPulse( ISteamController* self, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_TriggerRepeatedHapticPulse( ISteamController* self, ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, unsigned short usDurationMicroSec, unsigned short usOffMicroSec, unsigned short unRepeat, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerRepeatedHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_TriggerVibration( ISteamController* self, ControllerHandle_t controllerHandle, unsigned short usLeftSpeed, unsigned short usRightSpeed )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TriggerVibration(controllerHandle, usLeftSpeed, usRightSpeed);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamController_SetLEDColor( ISteamController* self, ControllerHandle_t controllerHandle, uint8 nColorR, uint8 nColorG, uint8 nColorB, unsigned int nFlags )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->SetLEDColor(controllerHandle, nColorR, nColorG, nColorB, nFlags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamController_ShowBindingPanel( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->ShowBindingPanel(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamInputType SteamAPI_ISteamController_GetInputTypeForHandle( ISteamController* self, ControllerHandle_t controllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetInputTypeForHandle(controllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ControllerHandle_t SteamAPI_ISteamController_GetControllerForGamepadIndex( ISteamController* self, int nIndex )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetControllerForGamepadIndex(nIndex);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamController_GetGamepadIndexForController( ISteamController* self, ControllerHandle_t ulControllerHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGamepadIndexForController(ulControllerHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetStringForXboxOrigin( ISteamController* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetStringForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamController_GetGlyphForXboxOrigin( ISteamController* self, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetGlyphForXboxOrigin(eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EControllerActionOrigin SteamAPI_ISteamController_GetActionOriginFromXboxOrigin( ISteamController* self, ControllerHandle_t controllerHandle, EXboxOrigin eOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->GetActionOriginFromXboxOrigin_(controllerHandle, eOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EControllerActionOrigin SteamAPI_ISteamController_TranslateActionOrigin( ISteamController* self, ESteamInputType eDestinationInputType, EControllerActionOrigin eSourceOrigin )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_controller)->TranslateActionOrigin(eDestinationInputType, eSourceOrigin);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamController_GetControllerBindingRevision( ISteamController* self, ControllerHandle_t controllerHandle, int * pMajor, int * pMinor )
2019-07-28 13:02:09 +00:00
{
return (get_steam_client()->steam_controller)->GetControllerBindingRevision(controllerHandle, pMajor, pMinor);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamUGC *SteamAPI_SteamUGC_v014()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamUGC(flat_hsteamuser(), flat_hsteampipe(), "STEAMUGC_INTERFACE_VERSION014");
}
STEAMAPI_API ISteamUGC *SteamAPI_SteamGameServerUGC_v014()
{
return get_steam_client()->GetISteamUGC(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMUGC_INTERFACE_VERSION014");
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUserUGCRequest( ISteamUGC* self, AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryUserUGCRequest(unAccountID, eListType, eMatchingUGCType, eSortOrder, nCreatorAppID, nConsumerAppID, unPage);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequest(intptr_t instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage)
2019-04-13 16:21:56 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequest0(intptr_t instancePtr, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, const char * pchCursor)
2019-04-13 16:21:56 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequestPage( ISteamUGC* self, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint32 unPage )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, unPage);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryAllUGCRequestCursor( ISteamUGC* self, EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, const char * pchCursor )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryAllUGCRequest(eQueryType, eMatchingeMatchingUGCTypeFileType, nCreatorAppID, nConsumerAppID, pchCursor);
}
STEAMAPI_API UGCQueryHandle_t SteamAPI_ISteamUGC_CreateQueryUGCDetailsRequest( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateQueryUGCDetailsRequest(pvecPublishedFileID, unNumPublishedFileIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SendQueryUGCRequest( ISteamUGC* self, UGCQueryHandle_t handle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SendQueryUGCRequest(handle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCResult( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, SteamUGCDetails_t * pDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCResult(handle, index, pDetails);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCPreviewURL( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, char * pchURL, uint32 cchURLSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCPreviewURL(handle, index, pchURL, cchURLSize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCMetadata( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, char * pchMetadata, uint32 cchMetadatasize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCMetadata(handle, index, pchMetadata, cchMetadatasize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCChildren( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCChildren(handle, index, pvecPublishedFileID, cMaxEntries);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCStatistic( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, EItemStatistic eStatType, uint64 * pStatValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCStatistic(handle, index, eStatType, pStatValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumAdditionalPreviews( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCNumAdditionalPreviews(handle, index);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCAdditionalPreview( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCAdditionalPreview(handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetQueryUGCNumKeyValueTags( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCNumKeyValueTags(handle, index);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, uint32 keyValueTagIndex, char * pchKey, uint32 cchKeySize, char * pchValue, uint32 cchValueSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCKeyValueTag(handle, index, keyValueTagIndex, pchKey, cchKeySize, pchValue, cchValueSize);
}
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryUGCKeyValueTag0(intptr_t instancePtr, UGCQueryHandle_t handle, uint32 index, const char * pchKey, char * pchValue, uint32 cchValueSize)
2019-07-28 13:02:09 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCKeyValueTag(handle, index, pchKey, pchValue, cchValueSize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetQueryFirstUGCKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, uint32 index, const char * pchKey, char * pchValue, uint32 cchValueSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetQueryUGCKeyValueTag(handle, index, pchKey, pchValue, cchValueSize);
}
STEAMAPI_API bool SteamAPI_ISteamUGC_ReleaseQueryUGCRequest( ISteamUGC* self, UGCQueryHandle_t handle )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->ReleaseQueryUGCRequest(handle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddRequiredTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pTagName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddRequiredTag(handle, pTagName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddRequiredTagGroup( ISteamUGC* self, UGCQueryHandle_t handle, const SteamParamStringArray_t * pTagGroups )
2019-12-09 17:49:55 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-12-09 17:49:55 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddRequiredTagGroup(handle, pTagGroups);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddExcludedTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pTagName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddExcludedTag(handle, pTagName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnOnlyIDs( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnOnlyIDs )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnOnlyIDs(handle, bReturnOnlyIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnKeyValueTags( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnKeyValueTags )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnKeyValueTags(handle, bReturnKeyValueTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnLongDescription( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnLongDescription )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnLongDescription(handle, bReturnLongDescription);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnMetadata( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnMetadata )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnMetadata(handle, bReturnMetadata);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnChildren( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnChildren )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnChildren(handle, bReturnChildren);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnAdditionalPreviews( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnAdditionalPreviews )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnTotalOnly( ISteamUGC* self, UGCQueryHandle_t handle, bool bReturnTotalOnly )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnTotalOnly(handle, bReturnTotalOnly);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetReturnPlaytimeStats( ISteamUGC* self, UGCQueryHandle_t handle, uint32 unDays )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetReturnPlaytimeStats(handle, unDays);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetLanguage( ISteamUGC* self, UGCQueryHandle_t handle, const char * pchLanguage )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetLanguage(handle, pchLanguage);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetAllowCachedResponse( ISteamUGC* self, UGCQueryHandle_t handle, uint32 unMaxAgeSeconds )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetAllowCachedResponse(handle, unMaxAgeSeconds);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetCloudFileNameFilter( ISteamUGC* self, UGCQueryHandle_t handle, const char * pMatchCloudFileName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetCloudFileNameFilter(handle, pMatchCloudFileName);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetMatchAnyTag( ISteamUGC* self, UGCQueryHandle_t handle, bool bMatchAnyTag )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetMatchAnyTag(handle, bMatchAnyTag);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetSearchText( ISteamUGC* self, UGCQueryHandle_t handle, const char * pSearchText )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetSearchText(handle, pSearchText);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetRankedByTrendDays( ISteamUGC* self, UGCQueryHandle_t handle, uint32 unDays )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetRankedByTrendDays(handle, unDays);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddRequiredKeyValueTag( ISteamUGC* self, UGCQueryHandle_t handle, const char * pKey, const char * pValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddRequiredKeyValueTag(handle, pKey, pValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RequestUGCDetails( ISteamUGC* self, PublishedFileId_t nPublishedFileID, uint32 unMaxAgeSeconds )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RequestUGCDetails(nPublishedFileID, unMaxAgeSeconds);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_CreateItem( ISteamUGC* self, AppId_t nConsumerAppId, EWorkshopFileType eFileType )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->CreateItem(nConsumerAppId, eFileType);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API UGCUpdateHandle_t SteamAPI_ISteamUGC_StartItemUpdate( ISteamUGC* self, AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StartItemUpdate(nConsumerAppId, nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemTitle( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchTitle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemTitle(handle, pchTitle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemDescription( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchDescription )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemDescription(handle, pchDescription);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemUpdateLanguage( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchLanguage )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemUpdateLanguage(handle, pchLanguage);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemMetadata( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchMetaData )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemMetadata(handle, pchMetaData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemVisibility( ISteamUGC* self, UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemVisibility(handle, eVisibility);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemTags( ISteamUGC* self, UGCUpdateHandle_t updateHandle, const SteamParamStringArray_t * pTags )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemTags(updateHandle, pTags);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemContent( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszContentFolder )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemContent(handle, pszContentFolder);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetItemPreview( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszPreviewFile )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetItemPreview(handle, pszPreviewFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_SetAllowLegacyUpload( ISteamUGC* self, UGCUpdateHandle_t handle, bool bAllowLegacyUpload )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetAllowLegacyUpload(handle, bAllowLegacyUpload);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_RemoveAllItemKeyValueTags( ISteamUGC* self, UGCUpdateHandle_t handle )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-07-28 13:02:09 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveAllItemKeyValueTags(handle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_RemoveItemKeyValueTags( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveItemKeyValueTags(handle, pchKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddItemKeyValueTag( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemKeyValueTag(handle, pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddItemPreviewFile( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemPreviewFile(handle, pszPreviewFile, type);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_AddItemPreviewVideo( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pszVideoID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemPreviewVideo(handle, pszVideoID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_UpdateItemPreviewFile( ISteamUGC* self, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->UpdateItemPreviewFile(handle, index, pszPreviewFile);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_UpdateItemPreviewVideo( ISteamUGC* self, UGCUpdateHandle_t handle, uint32 index, const char * pszVideoID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->UpdateItemPreviewVideo(handle, index, pszVideoID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_RemoveItemPreview( ISteamUGC* self, UGCUpdateHandle_t handle, uint32 index )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveItemPreview(handle, index);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SubmitItemUpdate( ISteamUGC* self, UGCUpdateHandle_t handle, const char * pchChangeNote )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SubmitItemUpdate(handle, pchChangeNote);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EItemUpdateStatus SteamAPI_ISteamUGC_GetItemUpdateProgress( ISteamUGC* self, UGCUpdateHandle_t handle, uint64 * punBytesProcessed, uint64 * punBytesTotal )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemUpdateProgress(handle, punBytesProcessed, punBytesTotal);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SetUserItemVote( ISteamUGC* self, PublishedFileId_t nPublishedFileID, bool bVoteUp )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SetUserItemVote(nPublishedFileID, bVoteUp);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetUserItemVote( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetUserItemVote(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddItemToFavorites( ISteamUGC* self, AppId_t nAppId, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddItemToFavorites(nAppId, nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveItemFromFavorites( ISteamUGC* self, AppId_t nAppId, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveItemFromFavorites(nAppId, nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_SubscribeItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SubscribeItem(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_UnsubscribeItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->UnsubscribeItem(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetNumSubscribedItems( ISteamUGC* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetNumSubscribedItems();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetSubscribedItems( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 cMaxEntries )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetSubscribedItems(pvecPublishedFileID, cMaxEntries);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamUGC_GetItemState( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemState(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetItemInstallInfo( ISteamUGC* self, PublishedFileId_t nPublishedFileID, uint64 * punSizeOnDisk, char * pchFolder, uint32 cchFolderSize, uint32 * punTimeStamp )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemInstallInfo(nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_GetItemDownloadInfo( ISteamUGC* self, PublishedFileId_t nPublishedFileID, uint64 * punBytesDownloaded, uint64 * punBytesTotal )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetItemDownloadInfo(nPublishedFileID, punBytesDownloaded, punBytesTotal);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_DownloadItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID, bool bHighPriority )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->DownloadItem(nPublishedFileID, bHighPriority);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamUGC_BInitWorkshopForGameServer( ISteamUGC* self, DepotId_t unWorkshopDepotID, const char * pszFolder )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->BInitWorkshopForGameServer(unWorkshopDepotID, pszFolder);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamUGC_SuspendDownloads( ISteamUGC* self, bool bSuspend )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->SuspendDownloads(bSuspend);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StartPlaytimeTracking( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StartPlaytimeTracking(pvecPublishedFileID, unNumPublishedFileIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTracking( ISteamUGC* self, PublishedFileId_t * pvecPublishedFileID, uint32 unNumPublishedFileIDs )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StopPlaytimeTracking(pvecPublishedFileID, unNumPublishedFileIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems( ISteamUGC* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->StopPlaytimeTrackingForAllItems();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddDependency( ISteamUGC* self, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddDependency(nParentPublishedFileID, nChildPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveDependency( ISteamUGC* self, PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveDependency(nParentPublishedFileID, nChildPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_AddAppDependency( ISteamUGC* self, PublishedFileId_t nPublishedFileID, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->AddAppDependency(nPublishedFileID, nAppID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_RemoveAppDependency( ISteamUGC* self, PublishedFileId_t nPublishedFileID, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->RemoveAppDependency(nPublishedFileID, nAppID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_GetAppDependencies( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->GetAppDependencies(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamUGC_DeleteItem( ISteamUGC* self, PublishedFileId_t nPublishedFileID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_ugc);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_ugc);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_ugc;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_ugc;
}
return (ptr)->DeleteItem(nPublishedFileID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamAppList *SteamAPI_SteamAppList_v001()
{
return get_steam_client()->GetISteamAppList(flat_hsteamuser(), flat_hsteampipe(), "STEAMAPPLIST_INTERFACE_VERSION001");
}
STEAMAPI_API uint32 SteamAPI_ISteamAppList_GetNumInstalledApps( ISteamAppList* self )
{
return self->GetNumInstalledApps();
}
STEAMAPI_API uint32 SteamAPI_ISteamAppList_GetInstalledApps( ISteamAppList* self, AppId_t * pvecAppID, uint32 unMaxAppIDs )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetInstalledApps(pvecAppID, unMaxAppIDs);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppName( ISteamAppList* self, AppId_t nAppID, char * pchName, int cchNameMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppName(nAppID, pchName, cchNameMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppInstallDir( ISteamAppList* self, AppId_t nAppID, char * pchDirectory, int cchNameMax )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppInstallDir(nAppID, pchDirectory, cchNameMax);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamAppList_GetAppBuildId( ISteamAppList* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAppBuildId(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamHTMLSurface *SteamAPI_SteamHTMLSurface_v005()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamHTMLSurface(flat_hsteamuser(), flat_hsteampipe(), "STEAMHTMLSURFACE_INTERFACE_VERSION_005");
2019-04-13 16:21:56 +00:00
}
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_DestructISteamHTMLSurface(intptr_t instancePtr)
2019-04-13 16:21:56 +00:00
{
//return (get_steam_client()->steam_HTMLsurface)->DestructISteamHTMLSurface();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTMLSurface_Init( ISteamHTMLSurface* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Init();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamHTMLSurface_Shutdown( ISteamHTMLSurface* self )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Shutdown();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamHTMLSurface_CreateBrowser( ISteamHTMLSurface* self, const char * pchUserAgent, const char * pchUserCSS )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->CreateBrowser(pchUserAgent, pchUserCSS);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_RemoveBrowser( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->RemoveBrowser(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_LoadURL( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->LoadURL(unBrowserHandle, pchURL, pchPostData);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetSize( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetSize(unBrowserHandle, unWidth, unHeight);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_StopLoad( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->StopLoad(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_Reload( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Reload(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GoBack( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->GoBack(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GoForward( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->GoForward(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_AddHeader( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->AddHeader(unBrowserHandle, pchKey, pchValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_ExecuteJavascript( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchScript )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->ExecuteJavascript(unBrowserHandle, pchScript);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseUp( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseUp(unBrowserHandle, eMouseButton);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseDown( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseDown(unBrowserHandle, eMouseButton);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseDoubleClick( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, EHTMLMouseButton eMouseButton )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseDoubleClick(unBrowserHandle, eMouseButton);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseMove( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, int x, int y )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseMove(unBrowserHandle, x, y);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_MouseWheel( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, int32 nDelta )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->MouseWheel(unBrowserHandle, nDelta);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyDown( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers, bool bIsSystemKey )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->KeyDown(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers, bIsSystemKey);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyUp( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nNativeKeyCode, EHTMLKeyModifiers eHTMLKeyModifiers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->KeyUp(unBrowserHandle, nNativeKeyCode, eHTMLKeyModifiers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_KeyChar( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 cUnicodeChar, EHTMLKeyModifiers eHTMLKeyModifiers )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->KeyChar(unBrowserHandle, cUnicodeChar, eHTMLKeyModifiers);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetHorizontalScroll( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetHorizontalScroll(unBrowserHandle, nAbsolutePixelScroll);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetVerticalScroll( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, uint32 nAbsolutePixelScroll )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetVerticalScroll(unBrowserHandle, nAbsolutePixelScroll);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetKeyFocus( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bHasKeyFocus )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetKeyFocus(unBrowserHandle, bHasKeyFocus);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_ViewSource( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->ViewSource(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_CopyToClipboard( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->CopyToClipboard(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_PasteFromClipboard( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->PasteFromClipboard(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_Find( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char * pchSearchStr, bool bCurrentlyInFind, bool bReverse )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->Find(unBrowserHandle, pchSearchStr, bCurrentlyInFind, bReverse);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_StopFind( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->StopFind(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_GetLinkAtPosition( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, int x, int y )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->GetLinkAtPosition(unBrowserHandle, x, y);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetCookie( ISteamHTMLSurface* self, const char * pchHostname, const char * pchKey, const char * pchValue, const char * pchPath, RTime32 nExpires, bool bSecure, bool bHTTPOnly )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetCookie(pchHostname, pchKey, pchValue, pchPath, nExpires, bSecure, bHTTPOnly);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetPageScaleFactor( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, float flZoom, int nPointX, int nPointY )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetPageScaleFactor(unBrowserHandle, flZoom, nPointX, nPointY);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetBackgroundMode( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bBackgroundMode )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetBackgroundMode(unBrowserHandle, bBackgroundMode);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_SetDPIScalingFactor( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, float flDPIScaling )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->SetDPIScalingFactor(unBrowserHandle, flDPIScaling);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_OpenDeveloperTools( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->OpenDeveloperTools(unBrowserHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_AllowStartRequest( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bAllowed )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->AllowStartRequest(unBrowserHandle, bAllowed);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_JSDialogResponse( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, bool bResult )
2019-04-13 16:21:56 +00:00
{
return (get_steam_client()->steam_HTMLsurface)->JSDialogResponse(unBrowserHandle, bResult);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamHTMLSurface_FileLoadDialogResponse( ISteamHTMLSurface* self, HHTMLBrowser unBrowserHandle, const char ** pchSelectedFiles )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (get_steam_client()->steam_HTMLsurface)->FileLoadDialogResponse(unBrowserHandle, pchSelectedFiles);
}
STEAMAPI_API ISteamInventory *SteamAPI_SteamInventory_v003()
{
return get_steam_client()->GetISteamInventory(flat_hsteamuser(), flat_hsteampipe(), "STEAMINVENTORY_INTERFACE_V003");
}
STEAMAPI_API ISteamInventory *SteamAPI_SteamGameServerInventory_v003()
{
return get_steam_client()->GetISteamInventory(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "STEAMINVENTORY_INTERFACE_V003");
}
STEAMAPI_API EResult SteamAPI_ISteamInventory_GetResultStatus( ISteamInventory* self, SteamInventoryResult_t resultHandle )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultStatus(resultHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetResultItems( ISteamInventory* self, SteamInventoryResult_t resultHandle, SteamItemDetails_t * pOutItemsArray, uint32 * punOutItemsArraySize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultItems(resultHandle, pOutItemsArray, punOutItemsArraySize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetResultItemProperty( ISteamInventory* self, SteamInventoryResult_t resultHandle, uint32 unItemIndex, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultItemProperty(resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, punValueBufferSizeOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamInventory_GetResultTimestamp( ISteamInventory* self, SteamInventoryResult_t resultHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetResultTimestamp(resultHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_CheckResultSteamID( ISteamInventory* self, SteamInventoryResult_t resultHandle, uint64_steamid steamIDExpected )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->CheckResultSteamID(resultHandle, steamIDExpected);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInventory_DestroyResult( ISteamInventory* self, SteamInventoryResult_t resultHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->DestroyResult(resultHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetAllItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetAllItems(pResultHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemsByID( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemInstanceID_t * pInstanceIDs, uint32 unCountInstanceIDs )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemsByID(pResultHandle, pInstanceIDs, unCountInstanceIDs);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_SerializeResult( ISteamInventory* self, SteamInventoryResult_t resultHandle, void * pOutBuffer, uint32 * punOutBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SerializeResult(resultHandle, pOutBuffer, punOutBufferSize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_DeserializeResult( ISteamInventory* self, SteamInventoryResult_t * pOutResultHandle, const void * pBuffer, uint32 unBufferSize, bool bRESERVED_MUST_BE_FALSE )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->DeserializeResult(pOutResultHandle, pBuffer, unBufferSize, bRESERVED_MUST_BE_FALSE);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GenerateItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GenerateItems(pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GrantPromoItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GrantPromoItems(pResultHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_AddPromoItem( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemDef_t itemDef )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->AddPromoItem(pResultHandle, itemDef);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_AddPromoItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayItemDefs, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->AddPromoItems(pResultHandle, pArrayItemDefs, unArrayLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_ConsumeItem( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemInstanceID_t itemConsume, uint32 unQuantity )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->ConsumeItem(pResultHandle, itemConsume, unQuantity);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_ExchangeItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, const SteamItemDef_t * pArrayGenerate, const uint32 * punArrayGenerateQuantity, uint32 unArrayGenerateLength, const SteamItemInstanceID_t * pArrayDestroy, const uint32 * punArrayDestroyQuantity, uint32 unArrayDestroyLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->ExchangeItems(pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_TransferItemQuantity( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemInstanceID_t itemIdSource, uint32 unQuantity, SteamItemInstanceID_t itemIdDest )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->TransferItemQuantity(pResultHandle, itemIdSource, unQuantity, itemIdDest);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamInventory_SendItemDropHeartbeat( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SendItemDropHeartbeat();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_TriggerItemDrop( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, SteamItemDef_t dropListDefinition )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->TriggerItemDrop(pResultHandle, dropListDefinition);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_TradeItems( ISteamInventory* self, SteamInventoryResult_t * pResultHandle, uint64_steamid steamIDTradePartner, const SteamItemInstanceID_t * pArrayGive, const uint32 * pArrayGiveQuantity, uint32 nArrayGiveLength, const SteamItemInstanceID_t * pArrayGet, const uint32 * pArrayGetQuantity, uint32 nArrayGetLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->TradeItems(pResultHandle, steamIDTradePartner, pArrayGive, pArrayGiveQuantity, nArrayGiveLength, pArrayGet, pArrayGetQuantity, nArrayGetLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_LoadItemDefinitions( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->LoadItemDefinitions();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemDefinitionIDs( ISteamInventory* self, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemDefinitionIDs(pItemDefIDs, punItemDefIDsArraySize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemDefinitionProperty( ISteamInventory* self, SteamItemDef_t iDefinition, const char * pchPropertyName, char * pchValueBuffer, uint32 * punValueBufferSizeOut )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemDefinitionProperty(iDefinition, pchPropertyName, pchValueBuffer, punValueBufferSizeOut);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs( ISteamInventory* self, uint64_steamid steamID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->RequestEligiblePromoItemDefinitionsIDs(steamID);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetEligiblePromoItemDefinitionIDs( ISteamInventory* self, uint64_steamid steamID, SteamItemDef_t * pItemDefIDs, uint32 * punItemDefIDsArraySize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetEligiblePromoItemDefinitionIDs(steamID, pItemDefIDs, punItemDefIDsArraySize);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_StartPurchase( ISteamInventory* self, const SteamItemDef_t * pArrayItemDefs, const uint32 * punArrayQuantity, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->StartPurchase(pArrayItemDefs, punArrayQuantity, unArrayLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamInventory_RequestPrices( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->RequestPrices();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamInventory_GetNumItemsWithPrices( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetNumItemsWithPrices();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemsWithPrices( ISteamInventory* self, SteamItemDef_t * pArrayItemDefs, uint64 * pCurrentPrices, uint64 * pBasePrices, uint32 unArrayLength )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemsWithPrices(pArrayItemDefs, pCurrentPrices, pBasePrices, unArrayLength);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_GetItemPrice( ISteamInventory* self, SteamItemDef_t iDefinition, uint64 * pCurrentPrice, uint64 * pBasePrice )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->GetItemPrice(iDefinition, pCurrentPrice, pBasePrice);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamInventoryUpdateHandle_t SteamAPI_ISteamInventory_StartUpdateProperties( ISteamInventory* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->StartUpdateProperties();
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_RemoveProperty( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->RemoveProperty(handle, nItemID, pchPropertyName);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, const char * pchPropertyValue)
2019-04-13 16:21:56 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, pchPropertyValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty0(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, bool bValue)
2019-04-13 16:21:56 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, bValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty1(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, int64 nValue)
2019-04-13 16:21:56 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, nValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetProperty2(intptr_t instancePtr, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, float flValue)
2019-04-13 16:21:56 +00:00
{
int test1 = ((char *)instancePtr - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)instancePtr - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, flValue);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamInventory_SetPropertyString( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, const char * pchPropertyValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, pchPropertyValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetPropertyBool( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, bool bValue )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, bValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetPropertyInt64( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, int64 nValue )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, nValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SetPropertyFloat( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamItemInstanceID_t nItemID, const char * pchPropertyName, float flValue )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SetProperty(handle, nItemID, pchPropertyName, flValue);
}
STEAMAPI_API bool SteamAPI_ISteamInventory_SubmitUpdateProperties( ISteamInventory* self, SteamInventoryUpdateHandle_t handle, SteamInventoryResult_t * pResultHandle )
{
int test1 = ((char *)self - (char*)get_steam_client()->steam_inventory);
int test2 = ((char *)self - (char*)get_steam_client()->steam_gameserver_inventory);
2019-04-13 16:21:56 +00:00
auto ptr = get_steam_client()->steam_gameserver_inventory;
if (test1 >= 0 && (test2 < 0 || test1 < test2)) {
ptr = get_steam_client()->steam_inventory;
}
return (ptr)->SubmitUpdateProperties(handle, pResultHandle);
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamVideo *SteamAPI_SteamVideo_v002()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamVideo(flat_hsteamuser(), flat_hsteampipe(), "STEAMVIDEO_INTERFACE_V002");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamVideo_GetVideoURL( ISteamVideo* self, AppId_t unVideoAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetVideoURL(unVideoAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamVideo_IsBroadcasting( ISteamVideo* self, int * pnNumViewers )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsBroadcasting(pnNumViewers);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamVideo_GetOPFSettings( ISteamVideo* self, AppId_t unVideoAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetOPFSettings(unVideoAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamVideo_GetOPFStringForApp( ISteamVideo* self, AppId_t unVideoAppID, char * pchBuffer, int32 * pnBufferSize )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetOPFStringForApp(unVideoAppID, pchBuffer, pnBufferSize);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
ISteamTV *SteamAPI_SteamTV_v001()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (ISteamTV *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "STEAMTV_INTERFACE_V001");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamTV_IsBroadcasting( ISteamTV* self, int * pnNumViewers )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->IsBroadcasting(pnNumViewers);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_AddBroadcastGameData( ISteamTV* self, const char * pchKey, const char * pchValue )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddBroadcastGameData(pchKey, pchValue);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_RemoveBroadcastGameData( ISteamTV* self, const char * pchKey )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RemoveBroadcastGameData(pchKey);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_AddTimelineMarker( ISteamTV* self, const char * pchTemplateName, bool bPersistent, uint8 nColorR, uint8 nColorG, uint8 nColorB )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddTimelineMarker(pchTemplateName, bPersistent, nColorR, nColorG, nColorB);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_RemoveTimelineMarker( ISteamTV* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RemoveTimelineMarker();
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamTV_AddRegion( ISteamTV* self, const char * pchElementName, const char * pchTimelineDataSection, const SteamTVRegion_t * pSteamTVRegion, ESteamTVRegionBehavior eSteamTVRegionBehavior )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AddRegion(pchElementName, pchTimelineDataSection, pSteamTVRegion, eSteamTVRegionBehavior);
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamTV_RemoveRegion( ISteamTV* self, uint32 unRegionHandle )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->RemoveRegion(unRegionHandle);
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamParentalSettings *SteamAPI_SteamParentalSettings_v001()
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamParentalSettings(flat_hsteamuser(), flat_hsteampipe(), "STEAMPARENTALSETTINGS_INTERFACE_VERSION001");
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsParentalLockEnabled( ISteamParentalSettings* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsParentalLockEnabled();
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsParentalLockLocked( ISteamParentalSettings* self )
2019-07-28 13:02:09 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsParentalLockLocked();
2019-07-28 13:02:09 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsAppBlocked( ISteamParentalSettings* self, AppId_t nAppID )
2019-12-09 17:49:55 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsAppBlocked(nAppID);
2019-12-09 17:49:55 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsAppInBlockList( ISteamParentalSettings* self, AppId_t nAppID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsAppInBlockList(nAppID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsFeatureBlocked( ISteamParentalSettings* self, EParentalFeature eFeature )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsFeatureBlocked(eFeature);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamParentalSettings_BIsFeatureInBlockList( ISteamParentalSettings* self, EParentalFeature eFeature )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BIsFeatureInBlockList(eFeature);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamRemotePlay *SteamAPI_SteamRemotePlay_v001()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return get_steam_client()->GetISteamRemotePlay(flat_hsteamuser(), flat_hsteampipe(), "STEAMREMOTEPLAY_INTERFACE_VERSION001");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint32 SteamAPI_ISteamRemotePlay_GetSessionCount( ISteamRemotePlay* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionCount();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API RemotePlaySessionID_t SteamAPI_ISteamRemotePlay_GetSessionID( ISteamRemotePlay* self, int iSessionIndex )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionID(iSessionIndex);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint64_steamid SteamAPI_ISteamRemotePlay_GetSessionSteamID( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionSteamID(unSessionID).ConvertToUint64();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API const char * SteamAPI_ISteamRemotePlay_GetSessionClientName( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionClientName(unSessionID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamDeviceFormFactor SteamAPI_ISteamRemotePlay_GetSessionClientFormFactor( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetSessionClientFormFactor(unSessionID);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemotePlay_BGetSessionClientResolution( ISteamRemotePlay* self, RemotePlaySessionID_t unSessionID, int * pnResolutionX, int * pnResolutionY )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BGetSessionClientResolution(unSessionID, pnResolutionX, pnResolutionY);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamRemotePlay_BSendRemotePlayTogetherInvite( ISteamRemotePlay* self, uint64_steamid steamIDFriend )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->BSendRemotePlayTogetherInvite(steamIDFriend);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamNetworkingSockets_v008()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingSockets008");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ISteamNetworkingSockets *SteamAPI_SteamGameServerNetworkingSockets_v008()
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return (ISteamNetworkingSockets *)get_steam_client()->GetISteamGenericInterface(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamNetworkingSockets008");
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateListenSocketIP( ISteamNetworkingSockets* self, const SteamNetworkingIPAddr & localAddress, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateListenSocketIP(localAddress, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectByIPAddress( ISteamNetworkingSockets* self, const SteamNetworkingIPAddr & address, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ConnectByIPAddress(address, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateListenSocketP2P( ISteamNetworkingSockets* self, int nVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateListenSocketP2P(nVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectP2P( ISteamNetworkingSockets* self, const SteamNetworkingIdentity & identityRemote, int nVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ConnectP2P(identityRemote, nVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_AcceptConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->AcceptConnection(hConn);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_CloseConnection( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, int nReason, const char * pszDebug, bool bEnableLinger )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CloseConnection(hPeer, nReason, pszDebug, bEnableLinger);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_CloseListenSocket( ISteamNetworkingSockets* self, HSteamListenSocket hSocket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CloseListenSocket(hSocket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_SetConnectionUserData( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, int64 nUserData )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetConnectionUserData(hPeer, nUserData);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int64 SteamAPI_ISteamNetworkingSockets_GetConnectionUserData( ISteamNetworkingSockets* self, HSteamNetConnection hPeer )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetConnectionUserData(hPeer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_SetConnectionName( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, const char * pszName )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetConnectionName(hPeer, pszName);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_GetConnectionName( ISteamNetworkingSockets* self, HSteamNetConnection hPeer, char * pszName, int nMaxLen )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetConnectionName(hPeer, pszName, nMaxLen);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_SendMessageToConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn, const void * pData, uint32 cbData, int nSendFlags, int64 * pOutMessageNumber )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendMessageToConnection(hConn, pData, cbData, nSendFlags, pOutMessageNumber);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingSockets_SendMessages( ISteamNetworkingSockets* self, int nMessages, SteamNetworkingMessage_t *const * pMessages, int64 * pOutMessageNumberOrResult )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SendMessages(nMessages, pMessages, pOutMessageNumberOrResult);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_FlushMessagesOnConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->FlushMessagesOnConnection(hConn);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnConnection( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetworkingMessage_t ** ppOutMessages, int nMaxMessages )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReceiveMessagesOnConnection(hConn, ppOutMessages, nMaxMessages);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_GetConnectionInfo( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetConnectionInfo_t * pInfo )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetConnectionInfo(hConn, pInfo);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_GetQuickConnectionStatus( ISteamNetworkingSockets* self, HSteamNetConnection hConn, SteamNetworkingQuickConnectionStatus * pStats )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetQuickConnectionStatus(hConn, pStats);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_GetDetailedConnectionStatus( ISteamNetworkingSockets* self, HSteamNetConnection hConn, char * pszBuf, int cbBuf )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetDetailedConnectionStatus(hConn, pszBuf, cbBuf);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_GetListenSocketAddress( ISteamNetworkingSockets* self, HSteamListenSocket hSocket, SteamNetworkingIPAddr * address )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetListenSocketAddress(hSocket, address);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_CreateSocketPair( ISteamNetworkingSockets* self, HSteamNetConnection * pOutConnection1, HSteamNetConnection * pOutConnection2, bool bUseNetworkLoopback, const SteamNetworkingIdentity * pIdentity1, const SteamNetworkingIdentity * pIdentity2 )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateSocketPair(pOutConnection1, pOutConnection2, bUseNetworkLoopback, pIdentity1, pIdentity2);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_GetIdentity( ISteamNetworkingSockets* self, SteamNetworkingIdentity * pIdentity )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetIdentity(pIdentity);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamNetworkingAvailability SteamAPI_ISteamNetworkingSockets_InitAuthentication( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->InitAuthentication();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamNetworkingAvailability SteamAPI_ISteamNetworkingSockets_GetAuthenticationStatus( ISteamNetworkingSockets* self, SteamNetAuthenticationStatus_t * pDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetAuthenticationStatus(pDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetPollGroup SteamAPI_ISteamNetworkingSockets_CreatePollGroup( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreatePollGroup();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_DestroyPollGroup( ISteamNetworkingSockets* self, HSteamNetPollGroup hPollGroup )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->DestroyPollGroup(hPollGroup);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_SetConnectionPollGroup( ISteamNetworkingSockets* self, HSteamNetConnection hConn, HSteamNetPollGroup hPollGroup )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->SetConnectionPollGroup(hConn, hPollGroup);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_ReceiveMessagesOnPollGroup( ISteamNetworkingSockets* self, HSteamNetPollGroup hPollGroup, SteamNetworkingMessage_t ** ppOutMessages, int nMaxMessages )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReceiveMessagesOnPollGroup(hPollGroup, ppOutMessages, nMaxMessages);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_ReceivedRelayAuthTicket( ISteamNetworkingSockets* self, const void * pvTicket, int cbTicket, SteamDatagramRelayAuthTicket * pOutParsedTicket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReceivedRelayAuthTicket(pvTicket, cbTicket, pOutParsedTicket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingSockets_FindRelayAuthTicketForServer( ISteamNetworkingSockets* self, const SteamNetworkingIdentity & identityGameServer, int nVirtualPort, SteamDatagramRelayAuthTicket * pOutParsedTicket )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->FindRelayAuthTicketForServer(identityGameServer, nVirtualPort, pOutParsedTicket);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectToHostedDedicatedServer( ISteamNetworkingSockets* self, const SteamNetworkingIdentity & identityTarget, int nVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ConnectToHostedDedicatedServer(identityTarget, nVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API uint16 SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPort( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHostedDedicatedServerPort();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API SteamNetworkingPOPID SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerPOPID( ISteamNetworkingSockets* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHostedDedicatedServerPOPID();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_GetHostedDedicatedServerAddress( ISteamNetworkingSockets* self, SteamDatagramHostedAddress * pRouting )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetHostedDedicatedServerAddress(pRouting);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamListenSocket SteamAPI_ISteamNetworkingSockets_CreateHostedDedicatedServerListenSocket( ISteamNetworkingSockets* self, int nVirtualPort, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->CreateHostedDedicatedServerListenSocket(nVirtualPort, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API EResult SteamAPI_ISteamNetworkingSockets_GetGameCoordinatorServerLogin( ISteamNetworkingSockets* self, SteamDatagramGameCoordinatorServerLogin * pLoginInfo, int * pcbSignedBlob, void * pBlob )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetGameCoordinatorServerLogin(pLoginInfo, pcbSignedBlob, pBlob);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API HSteamNetConnection SteamAPI_ISteamNetworkingSockets_ConnectP2PCustomSignaling( ISteamNetworkingSockets* self, ISteamNetworkingConnectionCustomSignaling * pSignaling, const SteamNetworkingIdentity * pPeerIdentity, int nOptions, const SteamNetworkingConfigValue_t * pOptions )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ConnectP2PCustomSignaling(pSignaling, pPeerIdentity, nOptions, pOptions);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_ReceivedP2PCustomSignal( ISteamNetworkingSockets* self, const void * pMsg, int cbMsg, ISteamNetworkingCustomSignalingRecvContext * pContext )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->ReceivedP2PCustomSignal(pMsg, cbMsg, pContext);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_GetCertificateRequest( ISteamNetworkingSockets* self, int * pcbBlob, void * pBlob, SteamNetworkingErrMsg & errMsg )
{
return self->GetCertificateRequest(pcbBlob, pBlob, errMsg);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingSockets_SetCertificate( ISteamNetworkingSockets* self, const void * pCertificate, int cbCertificate, SteamNetworkingErrMsg & errMsg )
{
return self->SetCertificate(pCertificate, cbCertificate, errMsg);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingConnectionCustomSignaling_SendSignal( ISteamNetworkingConnectionCustomSignaling* self, HSteamNetConnection hConn, const SteamNetConnectionInfo_t & info, const void * pMsg, int cbMsg )
{
return self->SendSignal(hConn, info, pMsg, cbMsg);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingConnectionCustomSignaling_Release( ISteamNetworkingConnectionCustomSignaling* self )
{
return self->Release();
}
STEAMAPI_API ISteamNetworkingConnectionCustomSignaling * SteamAPI_ISteamNetworkingCustomSignalingRecvContext_OnConnectRequest( ISteamNetworkingCustomSignalingRecvContext* self, HSteamNetConnection hConn, const SteamNetworkingIdentity & identityPeer )
{
return self->OnConnectRequest(hConn, identityPeer);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingCustomSignalingRecvContext_SendRejectionSignal( ISteamNetworkingCustomSignalingRecvContext* self, const SteamNetworkingIdentity & identityPeer, const void * pMsg, int cbMsg )
{
return self->SendRejectionSignal(identityPeer, pMsg, cbMsg);
}
STEAMAPI_API ISteamNetworkingUtils *SteamAPI_SteamNetworkingUtils_v003()
{
return (ISteamNetworkingUtils *)get_steam_client()->GetISteamGenericInterface(flat_hsteamuser(), flat_hsteampipe(), "SteamNetworkingUtils003");
}
STEAMAPI_API SteamNetworkingMessage_t * SteamAPI_ISteamNetworkingUtils_AllocateMessage( ISteamNetworkingUtils* self, int cbAllocateBuffer )
{
return self->AllocateMessage(cbAllocateBuffer);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_InitRelayNetworkAccess( ISteamNetworkingUtils* self )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->InitRelayNetworkAccess();
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API ESteamNetworkingAvailability SteamAPI_ISteamNetworkingUtils_GetRelayNetworkStatus( ISteamNetworkingUtils* self, SteamRelayNetworkStatus_t * pDetails )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetRelayNetworkStatus(pDetails);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API float SteamAPI_ISteamNetworkingUtils_GetLocalPingLocation( ISteamNetworkingUtils* self, SteamNetworkPingLocation_t & result )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->GetLocalPingLocation(result);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_EstimatePingTimeBetweenTwoLocations( ISteamNetworkingUtils* self, const SteamNetworkPingLocation_t & location1, const SteamNetworkPingLocation_t & location2 )
2019-04-13 16:21:56 +00:00
{
2020-03-25 17:43:23 +00:00
return self->EstimatePingTimeBetweenTwoLocations(location1, location2);
2019-04-13 16:21:56 +00:00
}
2020-03-25 17:43:23 +00:00
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_EstimatePingTimeFromLocalHost( ISteamNetworkingUtils* self, const SteamNetworkPingLocation_t & remoteLocation )
{
return self->EstimatePingTimeFromLocalHost(remoteLocation);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_ConvertPingLocationToString( ISteamNetworkingUtils* self, const SteamNetworkPingLocation_t & location, char * pszBuf, int cchBufSize )
{
return self->ConvertPingLocationToString(location, pszBuf, cchBufSize);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_ParsePingLocationString( ISteamNetworkingUtils* self, const char * pszString, SteamNetworkPingLocation_t & result )
{
return self->ParsePingLocationString(pszString, result);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_CheckPingDataUpToDate( ISteamNetworkingUtils* self, float flMaxAgeSeconds )
{
return self->CheckPingDataUpToDate(flMaxAgeSeconds);
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetPingToDataCenter( ISteamNetworkingUtils* self, SteamNetworkingPOPID popID, SteamNetworkingPOPID * pViaRelayPoP )
{
return self->GetPingToDataCenter(popID, pViaRelayPoP);
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetDirectPingToPOP( ISteamNetworkingUtils* self, SteamNetworkingPOPID popID )
{
return self->GetDirectPingToPOP(popID);
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetPOPCount( ISteamNetworkingUtils* self )
{
return self->GetPOPCount();
}
STEAMAPI_API int SteamAPI_ISteamNetworkingUtils_GetPOPList( ISteamNetworkingUtils* self, SteamNetworkingPOPID * list, int nListSz )
{
return self->GetPOPList(list, nListSz);
}
STEAMAPI_API SteamNetworkingMicroseconds SteamAPI_ISteamNetworkingUtils_GetLocalTimestamp( ISteamNetworkingUtils* self )
{
return self->GetLocalTimestamp();
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_SetDebugOutputFunction( ISteamNetworkingUtils* self, ESteamNetworkingSocketsDebugOutputType eDetailLevel, FSteamNetworkingSocketsDebugOutput pfnFunc )
{
return self->SetDebugOutputFunction(eDetailLevel, pfnFunc);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueInt32( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, int32 val )
{
return self->SetGlobalConfigValueInt32(eValue, val);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueFloat( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, float val )
{
return self->SetGlobalConfigValueFloat(eValue, val);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetGlobalConfigValueString( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, const char * val )
{
return self->SetGlobalConfigValueString(eValue, val);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueInt32( ISteamNetworkingUtils* self, HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, int32 val )
{
return self->SetConnectionConfigValueInt32(hConn, eValue, val);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueFloat( ISteamNetworkingUtils* self, HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, float val )
{
return self->SetConnectionConfigValueFloat(hConn, eValue, val);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetConnectionConfigValueString( ISteamNetworkingUtils* self, HSteamNetConnection hConn, ESteamNetworkingConfigValue eValue, const char * val )
{
return self->SetConnectionConfigValueString(hConn, eValue, val);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetConfigValue( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, intptr_t scopeObj, ESteamNetworkingConfigDataType eDataType, const void * pArg )
{
return self->SetConfigValue(eValue, eScopeType, scopeObj, eDataType, pArg);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SetConfigValueStruct( ISteamNetworkingUtils* self, const SteamNetworkingConfigValue_t & opt, ESteamNetworkingConfigScope eScopeType, intptr_t scopeObj )
{
return self->SetConfigValueStruct(opt, eScopeType, scopeObj);
}
STEAMAPI_API ESteamNetworkingGetConfigValueResult SteamAPI_ISteamNetworkingUtils_GetConfigValue( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, ESteamNetworkingConfigScope eScopeType, intptr_t scopeObj, ESteamNetworkingConfigDataType * pOutDataType, void * pResult, size_t * cbResult )
{
return self->GetConfigValue(eValue, eScopeType, scopeObj, pOutDataType, pResult, cbResult);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_GetConfigValueInfo( ISteamNetworkingUtils* self, ESteamNetworkingConfigValue eValue, const char ** pOutName, ESteamNetworkingConfigDataType * pOutDataType, ESteamNetworkingConfigScope * pOutScope, ESteamNetworkingConfigValue * pOutNextValue )
{
return self->GetConfigValueInfo(eValue, pOutName, pOutDataType, pOutScope, pOutNextValue);
}
STEAMAPI_API ESteamNetworkingConfigValue SteamAPI_ISteamNetworkingUtils_GetFirstConfigValue( ISteamNetworkingUtils* self )
{
return self->GetFirstConfigValue();
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ToString( ISteamNetworkingUtils* self, const SteamNetworkingIPAddr & addr, char * buf, uint32 cbBuf, bool bWithPort )
{
return self->SteamNetworkingIPAddr_ToString(addr, buf, cbBuf, bWithPort);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SteamNetworkingIPAddr_ParseString( ISteamNetworkingUtils* self, SteamNetworkingIPAddr * pAddr, const char * pszStr )
{
return self->SteamNetworkingIPAddr_ParseString(pAddr, pszStr);
}
STEAMAPI_API void SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ToString( ISteamNetworkingUtils* self, const SteamNetworkingIdentity & identity, char * buf, uint32 cbBuf )
{
return self->SteamNetworkingIdentity_ToString(identity, buf, cbBuf);
}
STEAMAPI_API bool SteamAPI_ISteamNetworkingUtils_SteamNetworkingIdentity_ParseString( ISteamNetworkingUtils* self, SteamNetworkingIdentity * pIdentity, const char * pszStr )
{
return self->SteamNetworkingIdentity_ParseString(pIdentity, pszStr);
}
STEAMAPI_API ISteamGameServer *SteamAPI_SteamGameServer_v013()
{
return get_steam_client()->GetISteamGameServer(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamGameServer013");
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_InitGameServer(intptr_t instancePtr, uint32 unIP, uint16 usGamePort, uint16 usQueryPort, uint32 unFlags, AppId_t nGameAppId, const char * pchVersionString)
{
return ((ISteamGameServer *)instancePtr)->InitGameServer(unIP, usGamePort, usQueryPort, unFlags, nGameAppId, pchVersionString);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetProduct( ISteamGameServer* self, const char * pszProduct )
{
return self->SetProduct(pszProduct);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameDescription( ISteamGameServer* self, const char * pszGameDescription )
{
return self->SetGameDescription(pszGameDescription);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetModDir( ISteamGameServer* self, const char * pszModDir )
{
return self->SetModDir(pszModDir);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetDedicatedServer( ISteamGameServer* self, bool bDedicated )
{
return self->SetDedicatedServer(bDedicated);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOn( ISteamGameServer* self, const char * pszToken )
{
return self->LogOn(pszToken);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOnAnonymous( ISteamGameServer* self )
{
return self->LogOnAnonymous();
}
STEAMAPI_API void SteamAPI_ISteamGameServer_LogOff( ISteamGameServer* self )
{
return self->LogOff();
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_BLoggedOn( ISteamGameServer* self )
{
return self->BLoggedOn();
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_BSecure( ISteamGameServer* self )
{
return self->BSecure();
}
STEAMAPI_API uint64_steamid SteamAPI_ISteamGameServer_GetSteamID( ISteamGameServer* self )
{
return self->GetSteamID().ConvertToUint64();
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_WasRestartRequested( ISteamGameServer* self )
{
return self->WasRestartRequested();
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetMaxPlayerCount( ISteamGameServer* self, int cPlayersMax )
{
return self->SetMaxPlayerCount(cPlayersMax);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetBotPlayerCount( ISteamGameServer* self, int cBotplayers )
{
return self->SetBotPlayerCount(cBotplayers);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetServerName( ISteamGameServer* self, const char * pszServerName )
{
return self->SetServerName(pszServerName);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetMapName( ISteamGameServer* self, const char * pszMapName )
{
return self->SetMapName(pszMapName);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetPasswordProtected( ISteamGameServer* self, bool bPasswordProtected )
{
return self->SetPasswordProtected(bPasswordProtected);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetSpectatorPort( ISteamGameServer* self, uint16 unSpectatorPort )
{
return self->SetSpectatorPort(unSpectatorPort);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetSpectatorServerName( ISteamGameServer* self, const char * pszSpectatorServerName )
{
return self->SetSpectatorServerName(pszSpectatorServerName);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_ClearAllKeyValues( ISteamGameServer* self )
{
return self->ClearAllKeyValues();
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetKeyValue( ISteamGameServer* self, const char * pKey, const char * pValue )
{
return self->SetKeyValue(pKey, pValue);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameTags( ISteamGameServer* self, const char * pchGameTags )
{
return self->SetGameTags(pchGameTags);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetGameData( ISteamGameServer* self, const char * pchGameData )
{
return self->SetGameData(pchGameData);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetRegion( ISteamGameServer* self, const char * pszRegion )
{
return self->SetRegion(pszRegion);
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_SendUserConnectAndAuthenticate( ISteamGameServer* self, uint32 unIPClient, const void * pvAuthBlob, uint32 cubAuthBlobSize, CSteamID * pSteamIDUser )
{
return self->SendUserConnectAndAuthenticate(unIPClient, pvAuthBlob, cubAuthBlobSize, pSteamIDUser);
}
STEAMAPI_API uint64_steamid SteamAPI_ISteamGameServer_CreateUnauthenticatedUserConnection( ISteamGameServer* self )
{
return self->CreateUnauthenticatedUserConnection().ConvertToUint64();
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SendUserDisconnect( ISteamGameServer* self, uint64_steamid steamIDUser )
{
return self->SendUserDisconnect(steamIDUser);
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_BUpdateUserData( ISteamGameServer* self, uint64_steamid steamIDUser, const char * pchPlayerName, uint32 uScore )
{
return self->BUpdateUserData(steamIDUser, pchPlayerName, uScore);
}
STEAMAPI_API HAuthTicket SteamAPI_ISteamGameServer_GetAuthSessionTicket( ISteamGameServer* self, void * pTicket, int cbMaxTicket, uint32 * pcbTicket )
{
return self->GetAuthSessionTicket(pTicket, cbMaxTicket, pcbTicket);
}
STEAMAPI_API EBeginAuthSessionResult SteamAPI_ISteamGameServer_BeginAuthSession( ISteamGameServer* self, const void * pAuthTicket, int cbAuthTicket, uint64_steamid steamID )
{
return self->BeginAuthSession(pAuthTicket, cbAuthTicket, steamID);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_EndAuthSession( ISteamGameServer* self, uint64_steamid steamID )
{
return self->EndAuthSession(steamID);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_CancelAuthTicket( ISteamGameServer* self, HAuthTicket hAuthTicket )
{
return self->CancelAuthTicket(hAuthTicket);
}
STEAMAPI_API EUserHasLicenseForAppResult SteamAPI_ISteamGameServer_UserHasLicenseForApp( ISteamGameServer* self, uint64_steamid steamID, AppId_t appID )
{
return self->UserHasLicenseForApp(steamID, appID);
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_RequestUserGroupStatus( ISteamGameServer* self, uint64_steamid steamIDUser, uint64_steamid steamIDGroup )
{
return self->RequestUserGroupStatus(steamIDUser, steamIDGroup);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_GetGameplayStats( ISteamGameServer* self )
{
return self->GetGameplayStats();
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_GetServerReputation( ISteamGameServer* self )
{
return self->GetServerReputation();
}
STEAMAPI_API uint32 SteamAPI_ISteamGameServer_GetPublicIP( intptr_t instancePtr, void *instancePtr_possible )
{
//TODO: check if this actually works (ret value changed from uint32 to struct)
if (steamclient_has_ipv6_functions()) {
return ((ISteamGameServer012 *)instancePtr_possible)->GetPublicIP_old();
} else {
return ((ISteamGameServer012 *)instancePtr)->GetPublicIP_old();
}
}
STEAMAPI_API bool SteamAPI_ISteamGameServer_HandleIncomingPacket( ISteamGameServer* self, const void * pData, int cbData, uint32 srcIP, uint16 srcPort )
{
return self->HandleIncomingPacket(pData, cbData, srcIP, srcPort);
}
STEAMAPI_API int SteamAPI_ISteamGameServer_GetNextOutgoingPacket( ISteamGameServer* self, void * pOut, int cbMaxOut, uint32 * pNetAdr, uint16 * pPort )
{
return self->GetNextOutgoingPacket(pOut, cbMaxOut, pNetAdr, pPort);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_EnableHeartbeats( ISteamGameServer* self, bool bActive )
{
return self->EnableHeartbeats(bActive);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_SetHeartbeatInterval( ISteamGameServer* self, int iHeartbeatInterval )
{
return self->SetHeartbeatInterval(iHeartbeatInterval);
}
STEAMAPI_API void SteamAPI_ISteamGameServer_ForceHeartbeat( ISteamGameServer* self )
{
return self->ForceHeartbeat();
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_AssociateWithClan( ISteamGameServer* self, uint64_steamid steamIDClan )
{
return self->AssociateWithClan(steamIDClan);
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility( ISteamGameServer* self, uint64_steamid steamIDNewPlayer )
{
return self->ComputeNewPlayerCompatibility(steamIDNewPlayer);
}
STEAMAPI_API ISteamGameServerStats *SteamAPI_SteamGameServerStats_v001()
{
return get_steam_client()->GetISteamGameServerStats(flat_gs_hsteamuser(), flat_gs_hsteampipe(), "SteamGameServerStats001");
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServerStats_RequestUserStats( ISteamGameServerStats* self, uint64_steamid steamIDUser )
{
return self->RequestUserStats(steamIDUser);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 * pData)
{
return ((ISteamGameServerStats *)instancePtr)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float * pData)
{
return ((ISteamGameServerStats *)instancePtr)->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserStatInt32( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, int32 * pData )
{
return self->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserStatFloat( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, float * pData )
{
return self->GetUserStat(steamIDUser, pchName, pData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_GetUserAchievement( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, bool * pbAchieved )
{
return self->GetUserAchievement(steamIDUser, pchName, pbAchieved);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserStat(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, int32 nData)
{
return ((ISteamGameServerStats *)instancePtr)->SetUserStat(steamIDUser, pchName, nData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserStat0(intptr_t instancePtr, class CSteamID steamIDUser, const char * pchName, float fData)
{
return ((ISteamGameServerStats *)instancePtr)->SetUserStat(steamIDUser, pchName, fData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserStatInt32( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, int32 nData )
{
return self->SetUserStat(steamIDUser, pchName, nData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserStatFloat( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, float fData )
{
return self->SetUserStat(steamIDUser, pchName, fData);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_UpdateUserAvgRateStat( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName, float flCountThisSession, double dSessionLength )
{
return self->UpdateUserAvgRateStat(steamIDUser, pchName, flCountThisSession, dSessionLength);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_SetUserAchievement( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName )
{
return self->SetUserAchievement(steamIDUser, pchName);
}
STEAMAPI_API bool SteamAPI_ISteamGameServerStats_ClearUserAchievement( ISteamGameServerStats* self, uint64_steamid steamIDUser, const char * pchName )
{
return self->ClearUserAchievement(steamIDUser, pchName);
}
STEAMAPI_API SteamAPICall_t SteamAPI_ISteamGameServerStats_StoreUserStats( ISteamGameServerStats* self, uint64_steamid steamIDUser )
{
return self->StoreUserStats(steamIDUser);
}
STEAMAPI_API bool SteamAPI_SteamIPAddress_t_IsSet( SteamIPAddress_t* self )
{
return self->IsSet();
}
STEAMAPI_API void SteamAPI_MatchMakingKeyValuePair_t_Construct( MatchMakingKeyValuePair_t* self )
{
new(self) MatchMakingKeyValuePair_t();
}
STEAMAPI_API void SteamAPI_servernetadr_t_Construct( servernetadr_t* self )
{
new(self) servernetadr_t();
}
STEAMAPI_API void SteamAPI_servernetadr_t_Init( servernetadr_t* self, unsigned int ip, uint16 usQueryPort, uint16 usConnectionPort )
{
return self->Init(ip, usQueryPort, usConnectionPort);
}
STEAMAPI_API uint16 SteamAPI_servernetadr_t_GetQueryPort( servernetadr_t* self )
{
return self->GetQueryPort();
}
STEAMAPI_API void SteamAPI_servernetadr_t_SetQueryPort( servernetadr_t* self, uint16 usPort )
{
return self->SetQueryPort(usPort);
}
STEAMAPI_API uint16 SteamAPI_servernetadr_t_GetConnectionPort( servernetadr_t* self )
{
return self->GetConnectionPort();
}
STEAMAPI_API void SteamAPI_servernetadr_t_SetConnectionPort( servernetadr_t* self, uint16 usPort )
{
return self->SetConnectionPort(usPort);
}
STEAMAPI_API uint32 SteamAPI_servernetadr_t_GetIP( servernetadr_t* self )
{
return self->GetIP();
}
STEAMAPI_API void SteamAPI_servernetadr_t_SetIP( servernetadr_t* self, uint32 unIP )
{
return self->SetIP(unIP);
}
STEAMAPI_API const char * SteamAPI_servernetadr_t_GetConnectionAddressString( servernetadr_t* self )
{
return self->GetConnectionAddressString();
}
STEAMAPI_API const char * SteamAPI_servernetadr_t_GetQueryAddressString( servernetadr_t* self )
{
return self->GetQueryAddressString();
}
STEAMAPI_API bool SteamAPI_servernetadr_t_IsLessThan( servernetadr_t* self, const servernetadr_t & netadr )
{
return self->operator<(netadr);
}
STEAMAPI_API void SteamAPI_servernetadr_t_Assign( servernetadr_t* self, const servernetadr_t & that )
{
return self->operator=(that);
}
STEAMAPI_API void SteamAPI_gameserveritem_t_Construct( gameserveritem_t* self )
{
new(self) gameserveritem_t();
}
STEAMAPI_API const char * SteamAPI_gameserveritem_t_GetName( gameserveritem_t* self )
{
return self->GetName();
}
STEAMAPI_API void SteamAPI_gameserveritem_t_SetName( gameserveritem_t* self, const char * pName )
{
return self->SetName(pName);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_Clear( SteamNetworkingIPAddr* self )
{
return self->Clear();
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIPAddr_IsIPv6AllZeros( SteamNetworkingIPAddr* self )
{
return self->IsIPv6AllZeros();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_SetIPv6( SteamNetworkingIPAddr* self, const uint8 * ipv6, uint16 nPort )
{
return self->SetIPv6(ipv6, nPort);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_SetIPv4( SteamNetworkingIPAddr* self, uint32 nIP, uint16 nPort )
{
return self->SetIPv4(nIP, nPort);
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIPAddr_IsIPv4( SteamNetworkingIPAddr* self )
{
return self->IsIPv4();
}
STEAMAPI_API uint32 SteamAPI_SteamNetworkingIPAddr_GetIPv4( SteamNetworkingIPAddr* self )
{
return self->GetIPv4();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_SetIPv6LocalHost( SteamNetworkingIPAddr* self, uint16 nPort )
{
return self->SetIPv6LocalHost(nPort);
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIPAddr_IsLocalHost( SteamNetworkingIPAddr* self )
{
return self->IsLocalHost();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIPAddr_ToString( SteamNetworkingIPAddr* self, char * buf, uint32 cbBuf, bool bWithPort )
{
return self->ToString(buf, cbBuf, bWithPort);
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIPAddr_ParseString( SteamNetworkingIPAddr* self, const char * pszStr )
{
return self->ParseString(pszStr);
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIPAddr_IsEqualTo( SteamNetworkingIPAddr* self, const SteamNetworkingIPAddr & x )
{
return self->operator==(x);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_Clear( SteamNetworkingIdentity* self )
{
return self->Clear();
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_IsInvalid( SteamNetworkingIdentity* self )
{
return self->IsInvalid();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetSteamID( SteamNetworkingIdentity* self, uint64_steamid steamID )
{
return self->SetSteamID(steamID);
}
STEAMAPI_API uint64_steamid SteamAPI_SteamNetworkingIdentity_GetSteamID( SteamNetworkingIdentity* self )
{
return self->GetSteamID().ConvertToUint64();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetSteamID64( SteamNetworkingIdentity* self, uint64 steamID )
{
return self->SetSteamID64(steamID);
}
STEAMAPI_API uint64 SteamAPI_SteamNetworkingIdentity_GetSteamID64( SteamNetworkingIdentity* self )
{
return self->GetSteamID64();
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_SetXboxPairwiseID( SteamNetworkingIdentity* self, const char * pszString )
{
return false;//self->SetXboxPairwiseID(pszString);
}
STEAMAPI_API const char * SteamAPI_SteamNetworkingIdentity_GetXboxPairwiseID( SteamNetworkingIdentity* self )
{
return "";//self->GetXboxPairwiseID();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetIPAddr( SteamNetworkingIdentity* self, const SteamNetworkingIPAddr & addr )
{
return self->SetIPAddr(addr);
}
STEAMAPI_API const SteamNetworkingIPAddr * SteamAPI_SteamNetworkingIdentity_GetIPAddr( SteamNetworkingIdentity* self )
{
return self->GetIPAddr();
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_SetLocalHost( SteamNetworkingIdentity* self )
{
return self->SetLocalHost();
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_IsLocalHost( SteamNetworkingIdentity* self )
{
return self->IsLocalHost();
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_SetGenericString( SteamNetworkingIdentity* self, const char * pszString )
{
return self->SetGenericString(pszString);
}
STEAMAPI_API const char * SteamAPI_SteamNetworkingIdentity_GetGenericString( SteamNetworkingIdentity* self )
{
return self->GetGenericString();
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_SetGenericBytes( SteamNetworkingIdentity* self, const void * data, uint32 cbLen )
{
return self->SetGenericBytes(data, cbLen);
}
STEAMAPI_API const uint8 * SteamAPI_SteamNetworkingIdentity_GetGenericBytes( SteamNetworkingIdentity* self, int & cbLen )
{
return self->GetGenericBytes(cbLen);
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_IsEqualTo( SteamNetworkingIdentity* self, const SteamNetworkingIdentity & x )
{
return self->operator==(x);
}
STEAMAPI_API void SteamAPI_SteamNetworkingIdentity_ToString( SteamNetworkingIdentity* self, char * buf, uint32 cbBuf )
{
return self->ToString(buf, cbBuf);
}
STEAMAPI_API bool SteamAPI_SteamNetworkingIdentity_ParseString( SteamNetworkingIdentity* self, const char * pszStr )
{
return self->ParseString(pszStr);
}
STEAMAPI_API void SteamAPI_SteamNetworkingMessage_t_Release( SteamNetworkingMessage_t* self )
{
return self->Release();
}
STEAMAPI_API void SteamAPI_SteamDatagramHostedAddress_Clear( SteamDatagramHostedAddress* self )
{
return self->Clear();
}
STEAMAPI_API SteamNetworkingPOPID SteamAPI_SteamDatagramHostedAddress_GetPopID( SteamDatagramHostedAddress* self )
{
return self->GetPopID();
}
STEAMAPI_API void SteamAPI_SteamDatagramHostedAddress_SetDevAddress( SteamDatagramHostedAddress* self, uint32 nIP, uint16 nPort, SteamNetworkingPOPID popid )
{
return self->SetDevAddress(nIP, nPort, popid);
}
#endif