/* <f1e63> ../engine/sv_steam3.cpp:1054 */ uint64 Steam_StringToSteamID(const char *pStr) { CSteamID steamID; if (Steam3Server()) { CSteamID serverSteamId(Steam3Server()->GetSteamID()); steamID.SetFromSteam2String(pStr, serverSteamId.GetEUniverse()); } else { steamID.SetFromSteam2String(pStr, k_EUniversePublic); } return steamID.ConvertToUint64(); }
/* <f19a2> ../engine/sv_steam3.cpp:944 */ void Steam_NotifyOfLevelChange(void) { if (Steam3Server()) { Steam3Server()->NotifyOfLevelChange(false); } }
/* <f19e4> ../engine/sv_steam3.cpp:975 */ void Steam_RunFrame(void) { if (Steam3Server()) { Steam3Server()->RunFrame(); } }
/* <f191f> ../engine/sv_steam3.cpp:934 */ void Steam_NotifyClientDisconnect_internal(client_t *cl) { if (Steam3Server()) { Steam3Server()->NotifyClientDisconnect(cl); } }
void Steam_NotifyClientDisconnect_internal(IGameClient* cl) { if (Steam3Server()) { Steam3Server()->NotifyClientDisconnect(cl->GetClient()); } }
/* <f18cf> ../engine/sv_steam3.cpp:924 */ qboolean Steam_NotifyBotConnect_internal(client_t *cl) { if (Steam3Server()) { return Steam3Server()->NotifyBotConnect(cl); } return NULL; }
/* <f1884> ../engine/sv_steam3.cpp:914 */ qboolean Steam_NotifyClientConnect_internal(client_t *cl, const void *pvSteam2Key, unsigned int ucbSteam2Key) { if (Steam3Server()) { return Steam3Server()->NotifyClientConnect(cl, pvSteam2Key, ucbSteam2Key); } return NULL; }
/* <f19b8> ../engine/sv_steam3.cpp:955 */ void Steam_Shutdown(void) { if (Steam3Server()) { Steam3Server()->Shutdown(); delete s_Steam3Server; s_Steam3Server = NULL; } }
/* <f19ce> ../engine/sv_steam3.cpp:965 */ void Steam_Activate(void) { if (!Steam3Server()) { s_Steam3Server = new CSteam3Server(); if (s_Steam3Server == NULL) return; } Steam3Server()->Activate(); }
/* <f19fa> ../engine/sv_steam3.cpp:986 */ void Steam_SetCVar(const char *pchKey, const char *pchValue) { if (Steam3Server()) { CRehldsPlatformHolder::get()->SteamGameServer()->SetKeyValue(pchKey, pchValue); } }
/* <f1f49> ../engine/sv_steam3.cpp:1065 */ const char *Steam_GetGSUniverse(void) { CSteamID steamID(Steam3Server()->GetSteamID()); switch (steamID.GetEUniverse()) { case k_EUniversePublic: return ""; case k_EUniverseBeta: return "(beta)"; case k_EUniverseInternal: return "(internal)"; default: return "(u)"; } }
/* <f2083> ../engine/sv_steam3.cpp:1102 */ void Master_SetMaster_f(void) { int i; const char * pszCmd; i = Cmd_Argc(); if (!Steam3Server()) { Con_Printf("Usage:\nSetmaster unavailable, start a server first.\n"); return; } if (i < 2 || i > 5) { Con_Printf("Usage:\nSetmaster <enable | disable>\n"); return; } pszCmd = Cmd_Argv(1); if (!pszCmd || !pszCmd[0]) return; if (Q_stricmp(pszCmd, "disable") || gfNoMasterServer) { if (!Q_stricmp(pszCmd, "enable")) { if (gfNoMasterServer) { gfNoMasterServer = 0; CRehldsPlatformHolder::get()->SteamGameServer()->EnableHeartbeats(gfNoMasterServer != 0); } } } else { gfNoMasterServer = 1; CRehldsPlatformHolder::get()->SteamGameServer()->EnableHeartbeats(gfNoMasterServer != 0); } }
/* <f1d88> ../engine/sv_steam3.cpp:1041 */ qboolean Steam_GSBSecurePreference(void) { return Steam3Server()->BWantsSecure(); }
/* <f1d59> ../engine/sv_steam3.cpp:1036 */ qboolean Steam_GSBLoggedOn(void) { return Steam3Server()->BLoggedOn() && CRehldsPlatformHolder::get()->SteamGameServer()->BLoggedOn(); }
/* <f1c86> ../engine/sv_steam3.cpp:1026 */ uint64 Steam_GSGetSteamID() { return Steam3Server()->GetSteamID(); }
/* <f1d2a> ../engine/sv_steam3.cpp:1031 */ qboolean Steam_GSBSecure(void) { Steam3Server(); return CRehldsPlatformHolder::get()->SteamGameServer()->BSecure(); }