Proton/lsteamclient/cppISteamGameServer_SteamGameServer013.cpp

334 lines
18 KiB
C++
Raw Normal View History

2019-12-11 22:59:25 +03:00
#include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#define __cdecl
2021-03-01 19:04:28 +03:00
#include "steamworks_sdk_151/steam_api.h"
#include "steamworks_sdk_151/steamnetworkingtypes.h"
#include "steamworks_sdk_151/isteamgameserver.h"
2019-12-11 22:59:25 +03:00
#pragma pop_macro("__cdecl")
#include "steamclient_private.h"
#ifdef __cplusplus
extern "C" {
#endif
2021-03-01 19:04:28 +03:00
#define SDKVER_151
2019-12-11 22:59:25 +03:00
#include "struct_converters.h"
#include "cppISteamGameServer_SteamGameServer013.h"
struct cppISteamGameServer_SteamGameServer013
{
#ifdef __cplusplus
virtual bool InitGameServer( uint32_t, uint16_t, uint16_t, uint32_t, uint32_t, const char * ) = 0;
virtual void SetProduct( const char * ) = 0;
virtual void SetGameDescription( const char * ) = 0;
virtual void SetModDir( const char * ) = 0;
virtual void SetDedicatedServer( bool ) = 0;
virtual void LogOn( const char * ) = 0;
virtual void LogOnAnonymous( ) = 0;
virtual void LogOff( ) = 0;
virtual bool BLoggedOn( ) = 0;
virtual bool BSecure( ) = 0;
virtual CSteamID GetSteamID( ) = 0;
virtual bool WasRestartRequested( ) = 0;
virtual void SetMaxPlayerCount( int32_t ) = 0;
virtual void SetBotPlayerCount( int32_t ) = 0;
virtual void SetServerName( const char * ) = 0;
virtual void SetMapName( const char * ) = 0;
virtual void SetPasswordProtected( bool ) = 0;
virtual void SetSpectatorPort( uint16_t ) = 0;
virtual void SetSpectatorServerName( const char * ) = 0;
virtual void ClearAllKeyValues( ) = 0;
virtual void SetKeyValue( const char *, const char * ) = 0;
virtual void SetGameTags( const char * ) = 0;
virtual void SetGameData( const char * ) = 0;
virtual void SetRegion( const char * ) = 0;
virtual bool SendUserConnectAndAuthenticate( uint32_t, const void *, uint32_t, CSteamID * ) = 0;
virtual CSteamID CreateUnauthenticatedUserConnection( ) = 0;
virtual void SendUserDisconnect( CSteamID ) = 0;
virtual bool BUpdateUserData( CSteamID, const char *, uint32_t ) = 0;
virtual uint32_t GetAuthSessionTicket( void *, int32_t, uint32_t * ) = 0;
virtual uint32_t BeginAuthSession( const void *, int32_t, CSteamID ) = 0;
virtual void EndAuthSession( CSteamID ) = 0;
virtual void CancelAuthTicket( uint32_t ) = 0;
virtual uint32_t UserHasLicenseForApp( CSteamID, uint32_t ) = 0;
virtual bool RequestUserGroupStatus( CSteamID, CSteamID ) = 0;
virtual void GetGameplayStats( ) = 0;
virtual uint64_t GetServerReputation( ) = 0;
virtual SteamIPAddress_t GetPublicIP( ) = 0;
virtual bool HandleIncomingPacket( const void *, int32_t, uint32_t, uint16_t ) = 0;
virtual int32_t GetNextOutgoingPacket( void *, int32_t, uint32_t *, uint16_t * ) = 0;
virtual void EnableHeartbeats( bool ) = 0;
virtual void SetHeartbeatInterval( int32_t ) = 0;
virtual void ForceHeartbeat( ) = 0;
virtual uint64_t AssociateWithClan( CSteamID ) = 0;
virtual uint64_t ComputeNewPlayerCompatibility( CSteamID ) = 0;
#endif /* __cplusplus */
};
void cppISteamGameServer_SteamGameServer013_InitGameServer( struct cppISteamGameServer_SteamGameServer013_InitGameServer_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->InitGameServer( params->unIP, params->usGamePort, params->usQueryPort, params->unFlags, params->nGameAppId, params->pchVersionString );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetProduct( struct cppISteamGameServer_SteamGameServer013_SetProduct_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetProduct( params->pszProduct );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetGameDescription( struct cppISteamGameServer_SteamGameServer013_SetGameDescription_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetGameDescription( params->pszGameDescription );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetModDir( struct cppISteamGameServer_SteamGameServer013_SetModDir_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetModDir( params->pszModDir );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetDedicatedServer( struct cppISteamGameServer_SteamGameServer013_SetDedicatedServer_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetDedicatedServer( params->bDedicated );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_LogOn( struct cppISteamGameServer_SteamGameServer013_LogOn_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->LogOn( params->pszToken );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_LogOnAnonymous( struct cppISteamGameServer_SteamGameServer013_LogOnAnonymous_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->LogOnAnonymous( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_LogOff( struct cppISteamGameServer_SteamGameServer013_LogOff_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->LogOff( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_BLoggedOn( struct cppISteamGameServer_SteamGameServer013_BLoggedOn_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->BLoggedOn( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_BSecure( struct cppISteamGameServer_SteamGameServer013_BSecure_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->BSecure( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_GetSteamID( struct cppISteamGameServer_SteamGameServer013_GetSteamID_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
*params->_ret = iface->GetSteamID( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_WasRestartRequested( struct cppISteamGameServer_SteamGameServer013_WasRestartRequested_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->WasRestartRequested( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetMaxPlayerCount( struct cppISteamGameServer_SteamGameServer013_SetMaxPlayerCount_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetMaxPlayerCount( params->cPlayersMax );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetBotPlayerCount( struct cppISteamGameServer_SteamGameServer013_SetBotPlayerCount_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetBotPlayerCount( params->cBotplayers );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetServerName( struct cppISteamGameServer_SteamGameServer013_SetServerName_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetServerName( params->pszServerName );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetMapName( struct cppISteamGameServer_SteamGameServer013_SetMapName_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetMapName( params->pszMapName );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetPasswordProtected( struct cppISteamGameServer_SteamGameServer013_SetPasswordProtected_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetPasswordProtected( params->bPasswordProtected );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetSpectatorPort( struct cppISteamGameServer_SteamGameServer013_SetSpectatorPort_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetSpectatorPort( params->unSpectatorPort );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetSpectatorServerName( struct cppISteamGameServer_SteamGameServer013_SetSpectatorServerName_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetSpectatorServerName( params->pszSpectatorServerName );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_ClearAllKeyValues( struct cppISteamGameServer_SteamGameServer013_ClearAllKeyValues_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->ClearAllKeyValues( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetKeyValue( struct cppISteamGameServer_SteamGameServer013_SetKeyValue_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetKeyValue( params->pKey, params->pValue );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetGameTags( struct cppISteamGameServer_SteamGameServer013_SetGameTags_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetGameTags( params->pchGameTags );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetGameData( struct cppISteamGameServer_SteamGameServer013_SetGameData_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetGameData( params->pchGameData );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetRegion( struct cppISteamGameServer_SteamGameServer013_SetRegion_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetRegion( params->pszRegion );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SendUserConnectAndAuthenticate( struct cppISteamGameServer_SteamGameServer013_SendUserConnectAndAuthenticate_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->SendUserConnectAndAuthenticate( params->unIPClient, params->pvAuthBlob, params->cubAuthBlobSize, params->pSteamIDUser );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_CreateUnauthenticatedUserConnection( struct cppISteamGameServer_SteamGameServer013_CreateUnauthenticatedUserConnection_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
*params->_ret = iface->CreateUnauthenticatedUserConnection( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SendUserDisconnect( struct cppISteamGameServer_SteamGameServer013_SendUserDisconnect_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SendUserDisconnect( params->steamIDUser );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_BUpdateUserData( struct cppISteamGameServer_SteamGameServer013_BUpdateUserData_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->BUpdateUserData( params->steamIDUser, params->pchPlayerName, params->uScore );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_GetAuthSessionTicket( struct cppISteamGameServer_SteamGameServer013_GetAuthSessionTicket_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->GetAuthSessionTicket( params->pTicket, params->cbMaxTicket, params->pcbTicket );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_BeginAuthSession( struct cppISteamGameServer_SteamGameServer013_BeginAuthSession_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->BeginAuthSession( params->pAuthTicket, params->cbAuthTicket, params->steamID );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_EndAuthSession( struct cppISteamGameServer_SteamGameServer013_EndAuthSession_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->EndAuthSession( params->steamID );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_CancelAuthTicket( struct cppISteamGameServer_SteamGameServer013_CancelAuthTicket_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->CancelAuthTicket( params->hAuthTicket );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_UserHasLicenseForApp( struct cppISteamGameServer_SteamGameServer013_UserHasLicenseForApp_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->UserHasLicenseForApp( params->steamID, params->appID );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_RequestUserGroupStatus( struct cppISteamGameServer_SteamGameServer013_RequestUserGroupStatus_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->RequestUserGroupStatus( params->steamIDUser, params->steamIDGroup );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_GetGameplayStats( struct cppISteamGameServer_SteamGameServer013_GetGameplayStats_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->GetGameplayStats( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_GetServerReputation( struct cppISteamGameServer_SteamGameServer013_GetServerReputation_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->GetServerReputation( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_GetPublicIP( struct cppISteamGameServer_SteamGameServer013_GetPublicIP_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
*params->_ret = iface->GetPublicIP( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_HandleIncomingPacket( struct cppISteamGameServer_SteamGameServer013_HandleIncomingPacket_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->HandleIncomingPacket( params->pData, params->cbData, params->srcIP, params->srcPort );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_GetNextOutgoingPacket( struct cppISteamGameServer_SteamGameServer013_GetNextOutgoingPacket_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->GetNextOutgoingPacket( params->pOut, params->cbMaxOut, params->pNetAdr, params->pPort );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_EnableHeartbeats( struct cppISteamGameServer_SteamGameServer013_EnableHeartbeats_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->EnableHeartbeats( params->bActive );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_SetHeartbeatInterval( struct cppISteamGameServer_SteamGameServer013_SetHeartbeatInterval_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->SetHeartbeatInterval( params->iHeartbeatInterval );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_ForceHeartbeat( struct cppISteamGameServer_SteamGameServer013_ForceHeartbeat_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
iface->ForceHeartbeat( );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_AssociateWithClan( struct cppISteamGameServer_SteamGameServer013_AssociateWithClan_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->AssociateWithClan( params->steamIDClan );
2019-12-11 22:59:25 +03:00
}
void cppISteamGameServer_SteamGameServer013_ComputeNewPlayerCompatibility( struct cppISteamGameServer_SteamGameServer013_ComputeNewPlayerCompatibility_params *params )
2019-12-11 22:59:25 +03:00
{
struct cppISteamGameServer_SteamGameServer013 *iface = (struct cppISteamGameServer_SteamGameServer013 *)params->linux_side;
params->_ret = iface->ComputeNewPlayerCompatibility( params->steamIDNewPlayer );
2019-12-11 22:59:25 +03:00
}
#ifdef __cplusplus
}
#endif