Proton/lsteamclient/cppISteamGameServer_SteamGameServer003.cpp

103 lines
4.3 KiB
C++

#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
#include "steamworks_sdk_099y/steam_api.h"
#include "steamworks_sdk_099y/isteamgameserver.h"
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SDKVER_099y
#include "struct_converters.h"
#include "cppISteamGameServer_SteamGameServer003.h"
void cppISteamGameServer_SteamGameServer003_LogOn(void *linux_side)
{
((ISteamGameServer*)linux_side)->LogOn();
}
void cppISteamGameServer_SteamGameServer003_LogOff(void *linux_side)
{
((ISteamGameServer*)linux_side)->LogOff();
}
bool cppISteamGameServer_SteamGameServer003_BLoggedOn(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->BLoggedOn();
}
bool cppISteamGameServer_SteamGameServer003_BSecure(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->BSecure();
}
CSteamID cppISteamGameServer_SteamGameServer003_GetSteamID(void *linux_side)
{
return ((ISteamGameServer*)linux_side)->GetSteamID();
}
bool cppISteamGameServer_SteamGameServer003_GSGetSteam2GetEncryptionKeyToSendToNewClient(void *linux_side, void * pvEncryptionKey, uint32 * pcbEncryptionKey, uint32 cbMaxEncryptionKey)
{
return ((ISteamGameServer*)linux_side)->GSGetSteam2GetEncryptionKeyToSendToNewClient((void *)pvEncryptionKey, (uint32 *)pcbEncryptionKey, (uint32)cbMaxEncryptionKey);
}
bool cppISteamGameServer_SteamGameServer003_GSSendUserConnect(void *linux_side, uint32 unUserID, uint32 unIPPublic, uint16 usPort, const void * pvCookie, uint32 cubCookie)
{
return ((ISteamGameServer*)linux_side)->GSSendUserConnect((uint32)unUserID, (uint32)unIPPublic, (uint16)usPort, (const void *)pvCookie, (uint32)cubCookie);
}
bool cppISteamGameServer_SteamGameServer003_GSRemoveUserConnect(void *linux_side, uint32 unUserID)
{
return ((ISteamGameServer*)linux_side)->GSRemoveUserConnect((uint32)unUserID);
}
bool cppISteamGameServer_SteamGameServer003_GSSendUserDisconnect(void *linux_side, CSteamID steamID, uint32 unUserID)
{
return ((ISteamGameServer*)linux_side)->GSSendUserDisconnect((CSteamID)steamID, (uint32)unUserID);
}
void cppISteamGameServer_SteamGameServer003_GSSetSpawnCount(void *linux_side, uint32 ucSpawn)
{
((ISteamGameServer*)linux_side)->GSSetSpawnCount((uint32)ucSpawn);
}
bool cppISteamGameServer_SteamGameServer003_GSSetServerType(void *linux_side, int32 nGameAppId, uint32 unServerFlags, uint32 unGameIP, uint16 unGamePort, uint16 unSpectatorPort, uint16 usQueryPort, const char * pchGameDir, const char * pchVersion, bool bLANMode)
{
return ((ISteamGameServer*)linux_side)->GSSetServerType((int32)nGameAppId, (uint32)unServerFlags, (uint32)unGameIP, (uint16)unGamePort, (uint16)unSpectatorPort, (uint16)usQueryPort, (const char *)pchGameDir, (const char *)pchVersion, (bool)bLANMode);
}
bool cppISteamGameServer_SteamGameServer003_GSUpdateStatus(void *linux_side, int cPlayers, int cPlayersMax, int cBotPlayers, const char * pchServerName, const char * pSpectatorServerName, const char * pchMapName)
{
return ((ISteamGameServer*)linux_side)->GSUpdateStatus((int)cPlayers, (int)cPlayersMax, (int)cBotPlayers, (const char *)pchServerName, (const char *)pSpectatorServerName, (const char *)pchMapName);
}
bool cppISteamGameServer_SteamGameServer003_GSCreateUnauthenticatedUser(void *linux_side, CSteamID * pSteamID)
{
return ((ISteamGameServer*)linux_side)->GSCreateUnauthenticatedUser((CSteamID *)pSteamID);
}
bool cppISteamGameServer_SteamGameServer003_GSSetUserData(void *linux_side, CSteamID steamID, const char * pPlayerName, uint32 nFrags)
{
return ((ISteamGameServer*)linux_side)->GSSetUserData((CSteamID)steamID, (const char *)pPlayerName, (uint32)nFrags);
}
void cppISteamGameServer_SteamGameServer003_GSUpdateSpectatorPort(void *linux_side, uint16 unSpectatorPort)
{
((ISteamGameServer*)linux_side)->GSUpdateSpectatorPort((uint16)unSpectatorPort);
}
void cppISteamGameServer_SteamGameServer003_GSSetGameType(void *linux_side, const char * pchType)
{
((ISteamGameServer*)linux_side)->GSSetGameType((const char *)pchType);
}
bool cppISteamGameServer_SteamGameServer003_GSGetUserAchievementStatus(void *linux_side, CSteamID steamID, const char * pchAchievementName)
{
return ((ISteamGameServer*)linux_side)->GSGetUserAchievementStatus((CSteamID)steamID, (const char *)pchAchievementName);
}
#ifdef __cplusplus
}
#endif