SteamGameServer
public struct SteamGameServer: Sendable
Steamworks ISteamGameServer
Access via gameServer
.
Topics
func associateWithClan(clan: SteamID, completion: (sending AssociateWithClanResult?) -> Void)
func associateWithClan(clan: SteamID, completion: (sending AssociateWithClanResult?) -> Void)
Steamworks ISteamGameServer::AssociateWithClan()
, callback
Declaration
public func associateWithClan(
clan: SteamID,
completion: @Sendable @escaping (sending AssociateWithClanResult?) -> Void)
func associateWithClan(isolation: isolated (any Actor)?, clan: SteamID) async -> AssociateWithClanResult?
func associateWithClan(isolation: isolated (any Actor)?, clan: SteamID) async -> AssociateWithClanResult?
Steamworks ISteamGameServer::AssociateWithClan()
, async
Declaration
public func associateWithClan(
isolation: isolated (any Actor)? = #isolation, clan: SteamID
) async -> AssociateWithClanResult?
func loggedOn() -> Bool
func loggedOn() -> Bool
func secure() -> Bool
func secure() -> Bool
func updateUserData(user: SteamID, playerName: String, score: Int) -> Bool
func updateUserData(user: SteamID, playerName: String, score: Int) -> Bool
func beginAuthSession(authTicket: [UInt8], steamID: SteamID) -> BeginAuthSessionResult
func beginAuthSession(authTicket: [UInt8], steamID: SteamID) -> BeginAuthSessionResult
Steamworks ISteamGameServer::BeginAuthSession()
Declaration
public func beginAuthSession(authTicket: [UInt8], steamID: SteamID)
-> BeginAuthSessionResult
func cancelAuthTicket(authTicket: HAuthTicket)
func cancelAuthTicket(authTicket: HAuthTicket)
Steamworks ISteamGameServer::CancelAuthTicket()
Declaration
public func cancelAuthTicket(authTicket: HAuthTicket)
func clearAllKeyValues()
func clearAllKeyValues()
Steamworks ISteamGameServer::ClearAllKeyValues()
Declaration
public func clearAllKeyValues()
func computeNewPlayerCompatibility(newPlayer: SteamID, completion: (sending ComputeNewPlayerCompatibilityResult?) -> Void)
func computeNewPlayerCompatibility(newPlayer: SteamID, completion: (sending ComputeNewPlayerCompatibilityResult?) -> Void)
Steamworks ISteamGameServer::ComputeNewPlayerCompatibility()
, callback
Declaration
public func computeNewPlayerCompatibility(
newPlayer: SteamID,
completion: @Sendable @escaping (
sending ComputeNewPlayerCompatibilityResult?
) -> Void)
func computeNewPlayerCompatibility(isolation: isolated (any Actor)?, newPlayer: SteamID) async -> ComputeNewPlayerCompatibilityResult?
func computeNewPlayerCompatibility(isolation: isolated (any Actor)?, newPlayer: SteamID) async -> ComputeNewPlayerCompatibilityResult?
Steamworks ISteamGameServer::ComputeNewPlayerCompatibility()
, async
Declaration
public func computeNewPlayerCompatibility(
isolation: isolated (any Actor)? = #isolation, newPlayer: SteamID
) async -> ComputeNewPlayerCompatibilityResult?
func createUnauthenticatedUserConnection() -> SteamID
func createUnauthenticatedUserConnection() -> SteamID
Steamworks ISteamGameServer::CreateUnauthenticatedUserConnection()
Declaration
public func createUnauthenticatedUserConnection() -> SteamID
func endAuthSession(steamID: SteamID)
func endAuthSession(steamID: SteamID)
Steamworks ISteamGameServer::EndAuthSession()
Declaration
public func endAuthSession(steamID: SteamID)
func getAuthSessionTicket(maxTicketSize: Int, snid: SteamNetworkingIdentity?) -> (rc: HAuthTicket, ticket: [UInt8], ticketSize: Int)
func getAuthSessionTicket(maxTicketSize: Int, snid: SteamNetworkingIdentity?) -> (rc: HAuthTicket, ticket: [UInt8], ticketSize: Int)
Steamworks ISteamGameServer::GetAuthSessionTicket()
Declaration
public func getAuthSessionTicket(
maxTicketSize: Int = 1024, snid: SteamNetworkingIdentity?
) -> (rc: HAuthTicket, ticket: [UInt8], ticketSize: Int)
func getGameplayStats()
func getGameplayStats()
Steamworks ISteamGameServer::GetGameplayStats()
Declaration
public func getGameplayStats()
func getNextOutgoingPacket(out: UnsafeMutableRawPointer, maxOutSize: Int) -> (rc: Int, netAdr: Int, port: UInt16)
func getNextOutgoingPacket(out: UnsafeMutableRawPointer, maxOutSize: Int) -> (rc: Int, netAdr: Int, port: UInt16)
func getPublicIP() -> SteamIPAddress
func getPublicIP() -> SteamIPAddress
Steamworks ISteamGameServer::GetPublicIP()
Declaration
public func getPublicIP() -> SteamIPAddress
func getServerReputation(completion: (sending GSReputation?) -> Void)
func getServerReputation(completion: (sending GSReputation?) -> Void)
Steamworks ISteamGameServer::GetServerReputation()
, callback
Declaration
public func getServerReputation(
completion: @Sendable @escaping (sending GSReputation?) -> Void)
func getServerReputation(isolation: isolated (any Actor)?) async -> GSReputation?
func getServerReputation(isolation: isolated (any Actor)?) async -> GSReputation?
Steamworks ISteamGameServer::GetServerReputation()
, async
Declaration
public func getServerReputation(isolation: isolated (any Actor)? = #isolation)
async -> GSReputation?
func getSteamID() -> SteamID
func getSteamID() -> SteamID
func handleIncomingPacket(data: UnsafeRawPointer, dataSize: Int, srcIP: Int, srcPort: UInt16) -> Bool
func handleIncomingPacket(data: UnsafeRawPointer, dataSize: Int, srcIP: Int, srcPort: UInt16) -> Bool
func logOff()
func logOff()
Steamworks ISteamGameServer::LogOff()
Declaration
public func logOff()
func logOn(token: String)
func logOn(token: String)
func logOnAnonymous()
func logOnAnonymous()
Steamworks ISteamGameServer::LogOnAnonymous()
Declaration
public func logOnAnonymous()
func requestUserGroupStatus(user: SteamID, group: SteamID) -> Bool
func requestUserGroupStatus(user: SteamID, group: SteamID) -> Bool
func sendUserConnectAndAuthenticateDEPRECATED(ipClient: Int, authBlob: UnsafeRawPointer, authBlobSize: Int) -> (rc: Bool, user: SteamID)
func sendUserConnectAndAuthenticateDEPRECATED(ipClient: Int, authBlob: UnsafeRawPointer, authBlobSize: Int) -> (rc: Bool, user: SteamID)
func sendUserDisconnectDEPRECATED(user: SteamID)
func sendUserDisconnectDEPRECATED(user: SteamID)
Steamworks ISteamGameServer::SendUserDisconnect_DEPRECATED()
Declaration
public func sendUserDisconnectDEPRECATED(user: SteamID)
func setAdvertiseServerActive(active: Bool)
func setAdvertiseServerActive(active: Bool)
Steamworks ISteamGameServer::SetAdvertiseServerActive()
Declaration
public func setAdvertiseServerActive(active: Bool)
func setBotPlayerCount(botplayers: Int)
func setBotPlayerCount(botplayers: Int)
Steamworks ISteamGameServer::SetBotPlayerCount()
Declaration
public func setBotPlayerCount(botplayers: Int)
func setDedicatedServer(dedicated: Bool)
func setDedicatedServer(dedicated: Bool)
Steamworks ISteamGameServer::SetDedicatedServer()
Declaration
public func setDedicatedServer(dedicated: Bool)
func setGameData(gameData: String)
func setGameData(gameData: String)
Steamworks ISteamGameServer::SetGameData()
Declaration
public func setGameData(gameData: String)
func setGameDescription(gameDescription: String)
func setGameDescription(gameDescription: String)
Steamworks ISteamGameServer::SetGameDescription()
Declaration
public func setGameDescription(gameDescription: String)
func setKeyValue(key: String, value: String)
func setKeyValue(key: String, value: String)
func setMapName(mapName: String)
func setMapName(mapName: String)
func setMaxPlayerCount(playersMax: Int)
func setMaxPlayerCount(playersMax: Int)
Steamworks ISteamGameServer::SetMaxPlayerCount()
Declaration
public func setMaxPlayerCount(playersMax: Int)
func setModDir(modDir: String)
func setModDir(modDir: String)
func setPasswordProtected(passwordProtected: Bool)
func setPasswordProtected(passwordProtected: Bool)
Steamworks ISteamGameServer::SetPasswordProtected()
Declaration
public func setPasswordProtected(passwordProtected: Bool)
func setProduct(product: String)
func setProduct(product: String)
func setRegion(region: String)
func setRegion(region: String)
func setServerName(serverName: String)
func setServerName(serverName: String)
Steamworks ISteamGameServer::SetServerName()
Declaration
public func setServerName(serverName: String)
func setSpectatorPort(spectatorPort: UInt16)
func setSpectatorPort(spectatorPort: UInt16)
Steamworks ISteamGameServer::SetSpectatorPort()
Declaration
public func setSpectatorPort(spectatorPort: UInt16)
func setSpectatorServerName(spectatorServerName: String)
func setSpectatorServerName(spectatorServerName: String)
Steamworks ISteamGameServer::SetSpectatorServerName()
Declaration
public func setSpectatorServerName(spectatorServerName: String)
func userHasLicenseForApp(steamID: SteamID, id: AppID) -> UserHasLicenseForAppResult
func userHasLicenseForApp(steamID: SteamID, id: AppID) -> UserHasLicenseForAppResult
Steamworks ISteamGameServer::UserHasLicenseForApp()
Declaration
public func userHasLicenseForApp(steamID: SteamID, id: AppID)
-> UserHasLicenseForAppResult
func wasRestartRequested() -> Bool
func wasRestartRequested() -> Bool
Steamworks ISteamGameServer::WasRestartRequested()
Declaration
public func wasRestartRequested() -> Bool