mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-31 00:55:37 +03:00
f6871a6b73
CW-Bug-Id: #22729
275 lines
9.8 KiB
C++
275 lines
9.8 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#define __cdecl
|
|
#include "steamworks_sdk_155/steam_api.h"
|
|
#include "steamworks_sdk_155/steamnetworkingtypes.h"
|
|
#include "steamworks_sdk_155/isteamgameserver.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_155
|
|
#include "struct_converters.h"
|
|
#include "cppISteamGameServer_SteamGameServer014.h"
|
|
bool cppISteamGameServer_SteamGameServer014_InitGameServer(void *linux_side, uint32 unIP, uint16 usGamePort, uint16 usQueryPort, uint32 unFlags, AppId_t nGameAppId, const char *pchVersionString)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->InitGameServer((uint32)unIP, (uint16)usGamePort, (uint16)usQueryPort, (uint32)unFlags, (AppId_t)nGameAppId, (const char *)pchVersionString);
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetProduct(void *linux_side, const char *pszProduct)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetProduct((const char *)pszProduct);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetGameDescription(void *linux_side, const char *pszGameDescription)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetGameDescription((const char *)pszGameDescription);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetModDir(void *linux_side, const char *pszModDir)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetModDir((const char *)pszModDir);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetDedicatedServer(void *linux_side, bool bDedicated)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetDedicatedServer((bool)bDedicated);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_LogOn(void *linux_side, const char *pszToken)
|
|
{
|
|
((ISteamGameServer*)linux_side)->LogOn((const char *)pszToken);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_LogOnAnonymous(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->LogOnAnonymous();
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_LogOff(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->LogOff();
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_BLoggedOn(void *linux_side)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BLoggedOn();
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_BSecure(void *linux_side)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BSecure();
|
|
return (_ret);
|
|
}
|
|
|
|
CSteamID cppISteamGameServer_SteamGameServer014_GetSteamID(void *linux_side)
|
|
{
|
|
CSteamID _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetSteamID();
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_WasRestartRequested(void *linux_side)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->WasRestartRequested();
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetMaxPlayerCount(void *linux_side, int cPlayersMax)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetMaxPlayerCount((int)cPlayersMax);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetBotPlayerCount(void *linux_side, int cBotplayers)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetBotPlayerCount((int)cBotplayers);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetServerName(void *linux_side, const char *pszServerName)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetServerName((const char *)pszServerName);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetMapName(void *linux_side, const char *pszMapName)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetMapName((const char *)pszMapName);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetPasswordProtected(void *linux_side, bool bPasswordProtected)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetPasswordProtected((bool)bPasswordProtected);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetSpectatorPort(void *linux_side, uint16 unSpectatorPort)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetSpectatorPort((uint16)unSpectatorPort);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetSpectatorServerName(void *linux_side, const char *pszSpectatorServerName)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetSpectatorServerName((const char *)pszSpectatorServerName);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_ClearAllKeyValues(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->ClearAllKeyValues();
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetKeyValue(void *linux_side, const char *pKey, const char *pValue)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetKeyValue((const char *)pKey, (const char *)pValue);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetGameTags(void *linux_side, const char *pchGameTags)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetGameTags((const char *)pchGameTags);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetGameData(void *linux_side, const char *pchGameData)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetGameData((const char *)pchGameData);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetRegion(void *linux_side, const char *pszRegion)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetRegion((const char *)pszRegion);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetAdvertiseServerActive(void *linux_side, bool bActive)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetAdvertiseServerActive((bool)bActive);
|
|
}
|
|
|
|
HAuthTicket cppISteamGameServer_SteamGameServer014_GetAuthSessionTicket(void *linux_side, void *pTicket, int cbMaxTicket, uint32 *pcbTicket)
|
|
{
|
|
HAuthTicket _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetAuthSessionTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
|
|
return (_ret);
|
|
}
|
|
|
|
EBeginAuthSessionResult cppISteamGameServer_SteamGameServer014_BeginAuthSession(void *linux_side, const void *pAuthTicket, int cbAuthTicket, CSteamID steamID)
|
|
{
|
|
EBeginAuthSessionResult _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BeginAuthSession((const void *)pAuthTicket, (int)cbAuthTicket, (CSteamID)steamID);
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_EndAuthSession(void *linux_side, CSteamID steamID)
|
|
{
|
|
((ISteamGameServer*)linux_side)->EndAuthSession((CSteamID)steamID);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_CancelAuthTicket(void *linux_side, HAuthTicket hAuthTicket)
|
|
{
|
|
((ISteamGameServer*)linux_side)->CancelAuthTicket((HAuthTicket)hAuthTicket);
|
|
}
|
|
|
|
EUserHasLicenseForAppResult cppISteamGameServer_SteamGameServer014_UserHasLicenseForApp(void *linux_side, CSteamID steamID, AppId_t appID)
|
|
{
|
|
EUserHasLicenseForAppResult _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_RequestUserGroupStatus(void *linux_side, CSteamID steamIDUser, CSteamID steamIDGroup)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->RequestUserGroupStatus((CSteamID)steamIDUser, (CSteamID)steamIDGroup);
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_GetGameplayStats(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->GetGameplayStats();
|
|
}
|
|
|
|
SteamAPICall_t cppISteamGameServer_SteamGameServer014_GetServerReputation(void *linux_side)
|
|
{
|
|
SteamAPICall_t _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetServerReputation();
|
|
return (_ret);
|
|
}
|
|
|
|
SteamIPAddress_t cppISteamGameServer_SteamGameServer014_GetPublicIP(void *linux_side)
|
|
{
|
|
SteamIPAddress_t _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetPublicIP();
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_HandleIncomingPacket(void *linux_side, const void *pData, int cbData, uint32 srcIP, uint16 srcPort)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->HandleIncomingPacket((const void *)pData, (int)cbData, (uint32)srcIP, (uint16)srcPort);
|
|
return (_ret);
|
|
}
|
|
|
|
int cppISteamGameServer_SteamGameServer014_GetNextOutgoingPacket(void *linux_side, void *pOut, int cbMaxOut, uint32 *pNetAdr, uint16 *pPort)
|
|
{
|
|
int _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetNextOutgoingPacket((void *)pOut, (int)cbMaxOut, (uint32 *)pNetAdr, (uint16 *)pPort);
|
|
return (_ret);
|
|
}
|
|
|
|
SteamAPICall_t cppISteamGameServer_SteamGameServer014_AssociateWithClan(void *linux_side, CSteamID steamIDClan)
|
|
{
|
|
SteamAPICall_t _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->AssociateWithClan((CSteamID)steamIDClan);
|
|
return (_ret);
|
|
}
|
|
|
|
SteamAPICall_t cppISteamGameServer_SteamGameServer014_ComputeNewPlayerCompatibility(void *linux_side, CSteamID steamIDNewPlayer)
|
|
{
|
|
SteamAPICall_t _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->ComputeNewPlayerCompatibility((CSteamID)steamIDNewPlayer);
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_SendUserConnectAndAuthenticate_DEPRECATED(void *linux_side, uint32 unIPClient, const void *pvAuthBlob, uint32 cubAuthBlobSize, CSteamID *pSteamIDUser)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->SendUserConnectAndAuthenticate_DEPRECATED((uint32)unIPClient, (const void *)pvAuthBlob, (uint32)cubAuthBlobSize, (CSteamID *)pSteamIDUser);
|
|
return (_ret);
|
|
}
|
|
|
|
CSteamID cppISteamGameServer_SteamGameServer014_CreateUnauthenticatedUserConnection(void *linux_side)
|
|
{
|
|
CSteamID _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->CreateUnauthenticatedUserConnection();
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SendUserDisconnect_DEPRECATED(void *linux_side, CSteamID steamIDUser)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SendUserDisconnect_DEPRECATED((CSteamID)steamIDUser);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer014_BUpdateUserData(void *linux_side, CSteamID steamIDUser, const char *pchPlayerName, uint32 uScore)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BUpdateUserData((CSteamID)steamIDUser, (const char *)pchPlayerName, (uint32)uScore);
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_SetMasterServerHeartbeatInterval_DEPRECATED(void *linux_side, int iHeartbeatInterval)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetMasterServerHeartbeatInterval_DEPRECATED((int)iHeartbeatInterval);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer014_ForceMasterServerHeartbeat_DEPRECATED(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->ForceMasterServerHeartbeat_DEPRECATED();
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|