2018-01-18 19:24:05 +03:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2018-01-18 19:24:05 +03:00
|
|
|
#include "steamworks_sdk_102/steam_api.h"
|
|
|
|
#include "steamworks_sdk_102/isteamgameserver.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2018-10-30 22:06:46 +03:00
|
|
|
#include "steamclient_private.h"
|
2018-01-18 19:24:05 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 18:05:29 +03:00
|
|
|
#define SDKVER_102
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamGameServer_SteamGameServer005.h"
|
2018-01-18 19:24:05 +03:00
|
|
|
void cppISteamGameServer_SteamGameServer005_LogOn(void *linux_side)
|
|
|
|
{
|
|
|
|
((ISteamGameServer*)linux_side)->LogOn();
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamGameServer_SteamGameServer005_LogOff(void *linux_side)
|
|
|
|
{
|
|
|
|
((ISteamGameServer*)linux_side)->LogOff();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamGameServer_SteamGameServer005_BLoggedOn(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->BLoggedOn();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamGameServer_SteamGameServer005_BSecure(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->BSecure();
|
|
|
|
}
|
|
|
|
|
|
|
|
CSteamID cppISteamGameServer_SteamGameServer005_GetSteamID(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->GetSteamID();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamGameServer_SteamGameServer005_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_SteamGameServer005_CreateUnauthenticatedUserConnection(void *linux_side)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->CreateUnauthenticatedUserConnection();
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamGameServer_SteamGameServer005_SendUserDisconnect(void *linux_side, CSteamID steamIDUser)
|
|
|
|
{
|
|
|
|
((ISteamGameServer*)linux_side)->SendUserDisconnect((CSteamID)steamIDUser);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamGameServer_SteamGameServer005_BUpdateUserData(void *linux_side, CSteamID steamIDUser, const char * pchPlayerName, uint32 uScore)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->BUpdateUserData((CSteamID)steamIDUser, (const char *)pchPlayerName, (uint32)uScore);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamGameServer_SteamGameServer005_BSetServerType(void *linux_side, uint32 unServerFlags, uint32 unGameIP, uint16 unGamePort, uint16 unSpectatorPort, uint16 usQueryPort, const char * pchGameDir, const char * pchVersion, bool bLANMode)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->BSetServerType((uint32)unServerFlags, (uint32)unGameIP, (uint16)unGamePort, (uint16)unSpectatorPort, (uint16)usQueryPort, (const char *)pchGameDir, (const char *)pchVersion, (bool)bLANMode);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamGameServer_SteamGameServer005_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_SteamGameServer005_UpdateSpectatorPort(void *linux_side, uint16 unSpectatorPort)
|
|
|
|
{
|
|
|
|
((ISteamGameServer*)linux_side)->UpdateSpectatorPort((uint16)unSpectatorPort);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppISteamGameServer_SteamGameServer005_SetGameType(void *linux_side, const char * pchGameType)
|
|
|
|
{
|
|
|
|
((ISteamGameServer*)linux_side)->SetGameType((const char *)pchGameType);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cppISteamGameServer_SteamGameServer005_BGetUserAchievementStatus(void *linux_side, CSteamID steamID, const char * pchAchievementName)
|
|
|
|
{
|
|
|
|
return ((ISteamGameServer*)linux_side)->BGetUserAchievementStatus((CSteamID)steamID, (const char *)pchAchievementName);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|