mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-05 17:13:36 +08:00
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
|
//====== Copyright <20> 1996-2004, Valve Corporation, All rights reserved. =======
|
|||
|
//
|
|||
|
// Purpose:
|
|||
|
//
|
|||
|
//=============================================================================
|
|||
|
|
|||
|
#ifndef STEAM_GAMESERVER_H
|
|||
|
#define STEAM_GAMESERVER_H
|
|||
|
#ifdef _WIN32
|
|||
|
#pragma once
|
|||
|
#endif
|
|||
|
|
|||
|
#include "steam_api.h"
|
|||
|
#include "isteamgameserver.h"
|
|||
|
|
|||
|
enum EServerMode
|
|||
|
{
|
|||
|
eServerModeNoAuthentication = 1,
|
|||
|
eServerModeAuthentication = 2,
|
|||
|
eServerModeAuthenticationAndSecure = 3,
|
|||
|
};
|
|||
|
|
|||
|
S_API bool SteamGameServer_Init( uint32 unIP, uint16 usPort, uint16 usGamePort, EServerMode eServerMode, int nGameAppId, const char *pchGameDir, const char *pchVersionString );
|
|||
|
S_API void SteamGameServer_Shutdown();
|
|||
|
S_API void SteamGameServer_RunCallbacks();
|
|||
|
|
|||
|
S_API bool SteamGameServer_BSecure();
|
|||
|
S_API uint64 SteamGameServer_GetSteamID();
|
|||
|
|
|||
|
S_API ISteamGameServer *SteamGameServer();
|
|||
|
S_API ISteamUtils *SteamGameServerUtils();
|
|||
|
|
|||
|
#define STEAM_GAMESERVER_CALLBACK( thisclass, func, param, var ) CCallback< thisclass, param, true > var; void func( param *pParam )
|
|||
|
|
|||
|
|
|||
|
#endif // STEAM_GAMESERVER_H
|