|
| virtual void | SetProduct (const char *pszProduct)=0 |
| | This is called by SteamGameServer_Init, and you will usually not need to call it directly.
|
| virtual void | SetGameDescription (const char *pszGameDescription)=0 |
| virtual void | SetModDir (const char *pszModDir)=0 |
| virtual void | SetDedicatedServer (bool bDedicated)=0 |
| | Is this is a dedicated server? The default value is false.
|
| virtual void | LogOn (const char *pszToken)=0 |
| virtual void | LogOnAnonymous ()=0 |
| virtual void | LogOff ()=0 |
| | Begin process of logging game server out of steam.
|
| virtual bool | BLoggedOn ()=0 |
| virtual bool | BSecure ()=0 |
| virtual CSteamID | GetSteamID ()=0 |
| virtual bool | WasRestartRequested ()=0 |
| virtual void | SetMaxPlayerCount (int cPlayersMax)=0 |
| | Max player count that will be reported to server browser and client queries.
|
| virtual void | SetBotPlayerCount (int cBotplayers)=0 |
| | Number of bots. Default value is zero.
|
| virtual void | SetServerName (const char *pszServerName)=0 |
| virtual void | SetMapName (const char *pszMapName)=0 |
| virtual void | SetPasswordProtected (bool bPasswordProtected)=0 |
| | Let people know if your server will require a password.
|
| virtual void | SetSpectatorPort (uint16 unSpectatorPort)=0 |
| virtual void | SetSpectatorServerName (const char *pszSpectatorServerName)=0 |
| virtual void | ClearAllKeyValues ()=0 |
| | Call this to clear the whole list of key/values that are sent in rules queries.
|
| virtual void | SetKeyValue (const char *pKey, const char *pValue)=0 |
| | Call this to add/update a key/value pair.
|
| virtual void | SetGameTags (const char *pchGameTags)=0 |
| virtual void | SetGameData (const char *pchGameData)=0 |
| virtual void | SetRegion (const char *pszRegion)=0 |
| | Region identifier. This is an optional field, the default value is empty, meaning the "world" region.
|
| virtual void | SetAdvertiseServerActive (bool bActive)=0 |
| virtual HAuthTicket | GetAuthSessionTicket (void *pTicket, int cbMaxTicket, uint32 *pcbTicket, const SteamNetworkingIdentity *pSnid)=0 |
| virtual EBeginAuthSessionResult | BeginAuthSession (const void *pAuthTicket, int cbAuthTicket, CSteamID steamID)=0 |
| virtual void | EndAuthSession (CSteamID steamID)=0 |
| virtual void | CancelAuthTicket (HAuthTicket hAuthTicket)=0 |
| virtual EUserHasLicenseForAppResult | UserHasLicenseForApp (CSteamID steamID, AppId_t appID)=0 |
| virtual bool | RequestUserGroupStatus (CSteamID steamIDUser, CSteamID steamIDGroup)=0 |
| virtual void | GetGameplayStats ()=0 |
| virtual SteamAPICall_t | GetServerReputation ()=0 |
| virtual SteamIPAddress_t | GetPublicIP ()=0 |
| virtual bool | HandleIncomingPacket (const void *pData, int cbData, uint32 srcIP, uint16 srcPort)=0 |
| virtual int | GetNextOutgoingPacket (void *pOut, int cbMaxOut, uint32 *pNetAdr, uint16 *pPort)=0 |
| virtual SteamAPICall_t | AssociateWithClan (CSteamID steamIDClan)=0 |
| virtual SteamAPICall_t | ComputeNewPlayerCompatibility (CSteamID steamIDNewPlayer)=0 |
| virtual bool | SendUserConnectAndAuthenticate_DEPRECATED (uint32 unIPClient, const void *pvAuthBlob, uint32 cubAuthBlobSize, CSteamID *pSteamIDUser)=0 |
| virtual CSteamID | CreateUnauthenticatedUserConnection ()=0 |
| virtual void | SendUserDisconnect_DEPRECATED (CSteamID steamIDUser)=0 |
| virtual bool | BUpdateUserData (CSteamID steamIDUser, const char *pchPlayerName, uint32 uScore)=0 |
Definition at line 18 of file isteamgameserver.h.
| virtual void ISteamGameServer::SetAdvertiseServerActive |
( |
bool | bActive | ) |
|
|
pure virtual |
Indicate whether you wish to be listed on the master server list and/or respond to server browser / LAN discovery packets. The server starts with this value set to false. You should set all relevant server parameters before enabling advertisement on the server.
(This function used to be named EnableHeartbeats, so if you are wondering where that function went, it's right here. It does the same thing as before, the old name was just confusing.)
| virtual void ISteamGameServer::SetSpectatorPort |
( |
uint16 | unSpectatorPort | ) |
|
|
pure virtual |
Spectator server port to advertise. The default value is zero, meaning the service is not used. If your server receives any info requests on the LAN, this is the value that will be placed into the reply for such local queries.
This is also the value that will be advertised by the master server. The only exception is if your server is using a FakeIP. Then then the second fake port number (index 1) assigned to your server will be listed on the master server as the spectator port, if you set this value to any nonzero value.
This function merely controls the values that are advertised – it's up to you to configure the server to actually listen on this port and handle any spectator traffic