f6871a6b73
CW-Bug-Id: #22729
134 lines
4.9 KiB
C++
134 lines
4.9 KiB
C++
#include "steam_defs.h"
|
|
#pragma push_macro("__cdecl")
|
|
#undef __cdecl
|
|
#define __cdecl
|
|
#include "steamworks_sdk_107/steam_api.h"
|
|
#include "steamworks_sdk_107/isteamgameserver.h"
|
|
#pragma pop_macro("__cdecl")
|
|
#include "steamclient_private.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#define SDKVER_107
|
|
#include "struct_converters.h"
|
|
#include "cppISteamGameServer_SteamGameServer009.h"
|
|
void cppISteamGameServer_SteamGameServer009_LogOn(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->LogOn();
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_LogOff(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->LogOff();
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_BLoggedOn(void *linux_side)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BLoggedOn();
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_BSecure(void *linux_side)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BSecure();
|
|
return (_ret);
|
|
}
|
|
|
|
CSteamID cppISteamGameServer_SteamGameServer009_GetSteamID(void *linux_side)
|
|
{
|
|
CSteamID _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetSteamID();
|
|
return (_ret);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_SendUserConnectAndAuthenticate(void *linux_side, uint32 unIPClient, const void *pvAuthBlob, uint32 cubAuthBlobSize, CSteamID *pSteamIDUser)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->SendUserConnectAndAuthenticate((uint32)unIPClient, (const void *)pvAuthBlob, (uint32)cubAuthBlobSize, (CSteamID *)pSteamIDUser);
|
|
return (_ret);
|
|
}
|
|
|
|
CSteamID cppISteamGameServer_SteamGameServer009_CreateUnauthenticatedUserConnection(void *linux_side)
|
|
{
|
|
CSteamID _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->CreateUnauthenticatedUserConnection();
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_SendUserDisconnect(void *linux_side, CSteamID steamIDUser)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SendUserDisconnect((CSteamID)steamIDUser);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_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);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_BSetServerType(void *linux_side, uint32 unServerFlags, uint32 unGameIP, uint16 unGamePort, uint16 unSpectatorPort, uint16 usQueryPort, const char *pchGameDir, const char *pchVersion, bool bLANMode)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BSetServerType((uint32)unServerFlags, (uint32)unGameIP, (uint16)unGamePort, (uint16)unSpectatorPort, (uint16)usQueryPort, (const char *)pchGameDir, (const char *)pchVersion, (bool)bLANMode);
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_UpdateServerStatus(void *linux_side, int cPlayers, int cPlayersMax, int cBotPlayers, const char *pchServerName, const char *pSpectatorServerName, const char *pchMapName)
|
|
{
|
|
((ISteamGameServer*)linux_side)->UpdateServerStatus((int)cPlayers, (int)cPlayersMax, (int)cBotPlayers, (const char *)pchServerName, (const char *)pSpectatorServerName, (const char *)pchMapName);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_UpdateSpectatorPort(void *linux_side, uint16 unSpectatorPort)
|
|
{
|
|
((ISteamGameServer*)linux_side)->UpdateSpectatorPort((uint16)unSpectatorPort);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_SetGameType(void *linux_side, const char *pchGameType)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetGameType((const char *)pchGameType);
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_BGetUserAchievementStatus(void *linux_side, CSteamID steamID, const char *pchAchievementName)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->BGetUserAchievementStatus((CSteamID)steamID, (const char *)pchAchievementName);
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_GetGameplayStats(void *linux_side)
|
|
{
|
|
((ISteamGameServer*)linux_side)->GetGameplayStats();
|
|
}
|
|
|
|
bool cppISteamGameServer_SteamGameServer009_RequestUserGroupStatus(void *linux_side, CSteamID steamIDUser, CSteamID steamIDGroup)
|
|
{
|
|
bool _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->RequestUserGroupStatus((CSteamID)steamIDUser, (CSteamID)steamIDGroup);
|
|
return (_ret);
|
|
}
|
|
|
|
uint32 cppISteamGameServer_SteamGameServer009_GetPublicIP(void *linux_side)
|
|
{
|
|
uint32 _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->GetPublicIP();
|
|
return (_ret);
|
|
}
|
|
|
|
void cppISteamGameServer_SteamGameServer009_SetGameData(void *linux_side, const char *pchGameData)
|
|
{
|
|
((ISteamGameServer*)linux_side)->SetGameData((const char *)pchGameData);
|
|
}
|
|
|
|
EUserHasLicenseForAppResult cppISteamGameServer_SteamGameServer009_UserHasLicenseForApp(void *linux_side, CSteamID steamID, AppId_t appID)
|
|
{
|
|
EUserHasLicenseForAppResult _ret;
|
|
_ret = ((ISteamGameServer*)linux_side)->UserHasLicenseForApp((CSteamID)steamID, (AppId_t)appID);
|
|
return (_ret);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|