Proton/lsteamclient/cppISteamGameServer_SteamGameServer011.cpp
2018-01-18 10:24:05 -06:00

232 lines
8.8 KiB
C++

#include "steamclient_private.h"
#include "steam_defs.h"
#include "steamworks_sdk_128/steam_api.h"
#include "steamworks_sdk_128/isteamgameserver.h"
#include "cppISteamGameServer_SteamGameServer011.h"
#ifdef __cplusplus
extern "C" {
#endif
bool cppISteamGameServer_SteamGameServer011_InitGameServer(void *linux_side, uint32 unIP, uint16 usGamePort, uint16 usQueryPort, uint32 unFlags, AppId_t nGameAppId, const char * pchVersionString)
{
return ((ISteamGameServer*)linux_side)->InitGameServer((uint32)unIP, (uint16)usGamePort, (uint16)usQueryPort, (uint32)unFlags, (AppId_t)nGameAppId, (const char *)pchVersionString);
}
void cppISteamGameServer_SteamGameServer011_SetProduct(void *linux_side, const char * pszProduct)
{
((ISteamGameServer*)linux_side)->SetProduct((const char *)pszProduct);
}
void cppISteamGameServer_SteamGameServer011_SetGameDescription(void *linux_side, const char * pszGameDescription)
{
((ISteamGameServer*)linux_side)->SetGameDescription((const char *)pszGameDescription);
}
void cppISteamGameServer_SteamGameServer011_SetModDir(void *linux_side, const char * pszModDir)
{
((ISteamGameServer*)linux_side)->SetModDir((const char *)pszModDir);
}
void cppISteamGameServer_SteamGameServer011_SetDedicatedServer(void *linux_side, bool bDedicated)
{
((ISteamGameServer*)linux_side)->SetDedicatedServer((bool)bDedicated);
}
void cppISteamGameServer_SteamGameServer011_LogOn(void *linux_side, const char * pszAccountName, const char * pszPassword)
{
((ISteamGameServer*)linux_side)->LogOn((const char *)pszAccountName, (const char *)pszPassword);
}
void cppISteamGameServer_SteamGameServer011_LogOnAnonymous(void *linux_side)
{
((ISteamGameServer*)linux_side)->LogOnAnonymous();
}
void cppISteamGameServer_SteamGameServer011_LogOff(void *linux_side)
{
((ISteamGameServer*)linux_side)->LogOff();
}
bool cppISteamGameServer_SteamGameServer011_BLoggedOn(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->BLoggedOn();
}
bool cppISteamGameServer_SteamGameServer011_BSecure(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->BSecure();
}
CSteamID cppISteamGameServer_SteamGameServer011_GetSteamID(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->GetSteamID();
}
bool cppISteamGameServer_SteamGameServer011_WasRestartRequested(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->WasRestartRequested();
}
void cppISteamGameServer_SteamGameServer011_SetMaxPlayerCount(void *linux_side, int cPlayersMax)
{
((ISteamGameServer*)linux_side)->SetMaxPlayerCount((int)cPlayersMax);
}
void cppISteamGameServer_SteamGameServer011_SetBotPlayerCount(void *linux_side, int cBotplayers)
{
((ISteamGameServer*)linux_side)->SetBotPlayerCount((int)cBotplayers);
}
void cppISteamGameServer_SteamGameServer011_SetServerName(void *linux_side, const char * pszServerName)
{
((ISteamGameServer*)linux_side)->SetServerName((const char *)pszServerName);
}
void cppISteamGameServer_SteamGameServer011_SetMapName(void *linux_side, const char * pszMapName)
{
((ISteamGameServer*)linux_side)->SetMapName((const char *)pszMapName);
}
void cppISteamGameServer_SteamGameServer011_SetPasswordProtected(void *linux_side, bool bPasswordProtected)
{
((ISteamGameServer*)linux_side)->SetPasswordProtected((bool)bPasswordProtected);
}
void cppISteamGameServer_SteamGameServer011_SetSpectatorPort(void *linux_side, uint16 unSpectatorPort)
{
((ISteamGameServer*)linux_side)->SetSpectatorPort((uint16)unSpectatorPort);
}
void cppISteamGameServer_SteamGameServer011_SetSpectatorServerName(void *linux_side, const char * pszSpectatorServerName)
{
((ISteamGameServer*)linux_side)->SetSpectatorServerName((const char *)pszSpectatorServerName);
}
void cppISteamGameServer_SteamGameServer011_ClearAllKeyValues(void *linux_side)
{
((ISteamGameServer*)linux_side)->ClearAllKeyValues();
}
void cppISteamGameServer_SteamGameServer011_SetKeyValue(void *linux_side, const char * pKey, const char * pValue)
{
((ISteamGameServer*)linux_side)->SetKeyValue((const char *)pKey, (const char *)pValue);
}
void cppISteamGameServer_SteamGameServer011_SetGameTags(void *linux_side, const char * pchGameTags)
{
((ISteamGameServer*)linux_side)->SetGameTags((const char *)pchGameTags);
}
void cppISteamGameServer_SteamGameServer011_SetGameData(void *linux_side, const char * pchGameData)
{
((ISteamGameServer*)linux_side)->SetGameData((const char *)pchGameData);
}
void cppISteamGameServer_SteamGameServer011_SetRegion(void *linux_side, const char * pszRegion)
{
((ISteamGameServer*)linux_side)->SetRegion((const char *)pszRegion);
}
bool cppISteamGameServer_SteamGameServer011_SendUserConnectAndAuthenticate(void *linux_side, uint32 unIPClient, const void * pvAuthBlob, uint32 cubAuthBlobSize, CSteamID * pSteamIDUser)
{
return ((ISteamGameServer*)linux_side)->SendUserConnectAndAuthenticate((uint32)unIPClient, (const void *)pvAuthBlob, (uint32)cubAuthBlobSize, (CSteamID *)pSteamIDUser);
}
CSteamID cppISteamGameServer_SteamGameServer011_CreateUnauthenticatedUserConnection(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->CreateUnauthenticatedUserConnection();
}
void cppISteamGameServer_SteamGameServer011_SendUserDisconnect(void *linux_side, CSteamID steamIDUser)
{
((ISteamGameServer*)linux_side)->SendUserDisconnect((CSteamID)steamIDUser);
}
bool cppISteamGameServer_SteamGameServer011_BUpdateUserData(void *linux_side, CSteamID steamIDUser, const char * pchPlayerName, uint32 uScore)
{
return ((ISteamGameServer*)linux_side)->BUpdateUserData((CSteamID)steamIDUser, (const char *)pchPlayerName, (uint32)uScore);
}
HAuthTicket cppISteamGameServer_SteamGameServer011_GetAuthSessionTicket(void *linux_side, void * pTicket, int cbMaxTicket, uint32 * pcbTicket)
{
return ((ISteamGameServer*)linux_side)->GetAuthSessionTicket((void *)pTicket, (int)cbMaxTicket, (uint32 *)pcbTicket);
}
EBeginAuthSessionResult cppISteamGameServer_SteamGameServer011_BeginAuthSession(void *linux_side, const void * pAuthTicket, int cbAuthTicket, CSteamID steamID)
{
return ((ISteamGameServer*)linux_side)->BeginAuthSession((const void *)pAuthTicket, (int)cbAuthTicket, (CSteamID)steamID);
}
void cppISteamGameServer_SteamGameServer011_EndAuthSession(void *linux_side, CSteamID steamID)
{
((ISteamGameServer*)linux_side)->EndAuthSession((CSteamID)steamID);
}
void cppISteamGameServer_SteamGameServer011_CancelAuthTicket(void *linux_side, HAuthTicket hAuthTicket)
{
((ISteamGameServer*)linux_side)->CancelAuthTicket((HAuthTicket)hAuthTicket);
}
EUserHasLicenseForAppResult cppISteamGameServer_SteamGameServer011_UserHasLicenseForApp(void *linux_side, CSteamID steamID, AppId_t appID)
{
return ((ISteamGameServer*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
}
bool cppISteamGameServer_SteamGameServer011_RequestUserGroupStatus(void *linux_side, CSteamID steamIDUser, CSteamID steamIDGroup)
{
return ((ISteamGameServer*)linux_side)->RequestUserGroupStatus((CSteamID)steamIDUser, (CSteamID)steamIDGroup);
}
void cppISteamGameServer_SteamGameServer011_GetGameplayStats(void *linux_side)
{
((ISteamGameServer*)linux_side)->GetGameplayStats();
}
SteamAPICall_t cppISteamGameServer_SteamGameServer011_GetServerReputation(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->GetServerReputation();
}
uint32 cppISteamGameServer_SteamGameServer011_GetPublicIP(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->GetPublicIP();
}
bool cppISteamGameServer_SteamGameServer011_HandleIncomingPacket(void *linux_side, const void * pData, int cbData, uint32 srcIP, uint16 srcPort)
{
return ((ISteamGameServer*)linux_side)->HandleIncomingPacket((const void *)pData, (int)cbData, (uint32)srcIP, (uint16)srcPort);
}
int cppISteamGameServer_SteamGameServer011_GetNextOutgoingPacket(void *linux_side, void * pOut, int cbMaxOut, uint32 * pNetAdr, uint16 * pPort)
{
return ((ISteamGameServer*)linux_side)->GetNextOutgoingPacket((void *)pOut, (int)cbMaxOut, (uint32 *)pNetAdr, (uint16 *)pPort);
}
void cppISteamGameServer_SteamGameServer011_EnableHeartbeats(void *linux_side, bool bActive)
{
((ISteamGameServer*)linux_side)->EnableHeartbeats((bool)bActive);
}
void cppISteamGameServer_SteamGameServer011_SetHeartbeatInterval(void *linux_side, int iHeartbeatInterval)
{
((ISteamGameServer*)linux_side)->SetHeartbeatInterval((int)iHeartbeatInterval);
}
void cppISteamGameServer_SteamGameServer011_ForceHeartbeat(void *linux_side)
{
((ISteamGameServer*)linux_side)->ForceHeartbeat();
}
SteamAPICall_t cppISteamGameServer_SteamGameServer011_AssociateWithClan(void *linux_side, CSteamID steamIDClan)
{
return ((ISteamGameServer*)linux_side)->AssociateWithClan((CSteamID)steamIDClan);
}
SteamAPICall_t cppISteamGameServer_SteamGameServer011_ComputeNewPlayerCompatibility(void *linux_side, CSteamID steamIDNewPlayer)
{
return ((ISteamGameServer*)linux_side)->ComputeNewPlayerCompatibility((CSteamID)steamIDNewPlayer);
}
#ifdef __cplusplus
}
#endif