SteamMatchmaking
public struct SteamMatchmaking: Sendable
Steamworks ISteamMatchmaking
Access via matchmaking
.
Topics
func addFavoriteGame(appID: AppID, ip: Int, connPort: UInt16, queryPort: UInt16, flags: FavoriteFlags, time32LastPlayedOnServer: RTime32) -> Int
func addFavoriteGame(appID: AppID, ip: Int, connPort: UInt16, queryPort: UInt16, flags: FavoriteFlags, time32LastPlayedOnServer: RTime32) -> Int
func addRequestLobbyListCompatibleMembersFilter(lobby: SteamID)
func addRequestLobbyListCompatibleMembersFilter(lobby: SteamID)
Steamworks ISteamMatchmaking::AddRequestLobbyListCompatibleMembersFilter()
Declaration
public func addRequestLobbyListCompatibleMembersFilter(lobby: SteamID)
func addRequestLobbyListDistanceFilter(lobbyDistanceFilter: LobbyDistanceFilter)
func addRequestLobbyListDistanceFilter(lobbyDistanceFilter: LobbyDistanceFilter)
Steamworks ISteamMatchmaking::AddRequestLobbyListDistanceFilter()
Declaration
public func addRequestLobbyListDistanceFilter(
lobbyDistanceFilter: LobbyDistanceFilter)
func addRequestLobbyListFilterSlotsAvailable(slotsAvailable: Int)
func addRequestLobbyListFilterSlotsAvailable(slotsAvailable: Int)
Steamworks ISteamMatchmaking::AddRequestLobbyListFilterSlotsAvailable()
Declaration
public func addRequestLobbyListFilterSlotsAvailable(slotsAvailable: Int)
func addRequestLobbyListNearValueFilter(keyToMatch: String, valueToBeCloseTo: Int)
func addRequestLobbyListNearValueFilter(keyToMatch: String, valueToBeCloseTo: Int)
func addRequestLobbyListNumericalFilter(keyToMatch: String, valueToMatch: Int, comparisonType: LobbyComparison)
func addRequestLobbyListNumericalFilter(keyToMatch: String, valueToMatch: Int, comparisonType: LobbyComparison)
Steamworks ISteamMatchmaking::AddRequestLobbyListNumericalFilter()
Declaration
public func addRequestLobbyListNumericalFilter(
keyToMatch: String, valueToMatch: Int, comparisonType: LobbyComparison)
func addRequestLobbyListResultCountFilter(maxResults: Int)
func addRequestLobbyListResultCountFilter(maxResults: Int)
Steamworks ISteamMatchmaking::AddRequestLobbyListResultCountFilter()
Declaration
public func addRequestLobbyListResultCountFilter(maxResults: Int)
func addRequestLobbyListStringFilter(keyToMatch: String, valueToMatch: String, comparisonType: LobbyComparison)
func addRequestLobbyListStringFilter(keyToMatch: String, valueToMatch: String, comparisonType: LobbyComparison)
Steamworks ISteamMatchmaking::AddRequestLobbyListStringFilter()
Declaration
public func addRequestLobbyListStringFilter(
keyToMatch: String, valueToMatch: String, comparisonType: LobbyComparison)
func createLobby(lobbyType: LobbyType, maxMembers: Int, completion: (sending LobbyCreated?) -> Void)
func createLobby(lobbyType: LobbyType, maxMembers: Int, completion: (sending LobbyCreated?) -> Void)
Steamworks ISteamMatchmaking::CreateLobby()
, callback
Declaration
public func createLobby(
lobbyType: LobbyType, maxMembers: Int,
completion: @Sendable @escaping (sending LobbyCreated?) -> Void)
func createLobby(isolation: isolated (any Actor)?, lobbyType: LobbyType, maxMembers: Int) async -> LobbyCreated?
func createLobby(isolation: isolated (any Actor)?, lobbyType: LobbyType, maxMembers: Int) async -> LobbyCreated?
Steamworks ISteamMatchmaking::CreateLobby()
, async
Declaration
public func createLobby(
isolation: isolated (any Actor)? = #isolation, lobbyType: LobbyType,
maxMembers: Int
) async -> LobbyCreated?
func deleteLobbyData(lobby: SteamID, key: String) -> Bool
func deleteLobbyData(lobby: SteamID, key: String) -> Bool
func getFavoriteGame(gameIndex: Int) -> (rc: Bool, appID: AppID, ip: Int, connPort: UInt16, queryPort: UInt16, flags: FavoriteFlags, rTime32LastPlayedOnServer: RTime32)
func getFavoriteGame(gameIndex: Int) -> (rc: Bool, appID: AppID, ip: Int, connPort: UInt16, queryPort: UInt16, flags: FavoriteFlags, rTime32LastPlayedOnServer: RTime32)
func getFavoriteGameCount() -> Int
func getFavoriteGameCount() -> Int
Steamworks ISteamMatchmaking::GetFavoriteGameCount()
Declaration
public func getFavoriteGameCount() -> Int
func getLobbyByIndex(lobbyIndex: Int) -> SteamID
func getLobbyByIndex(lobbyIndex: Int) -> SteamID
func getLobbyChatEntry(lobby: SteamID, chatIDIndex: Int, data: UnsafeMutableRawPointer, dataSize: Int) -> (rc: Int, user: SteamID, chatEntryType: ChatEntryType)
func getLobbyChatEntry(lobby: SteamID, chatIDIndex: Int, data: UnsafeMutableRawPointer, dataSize: Int) -> (rc: Int, user: SteamID, chatEntryType: ChatEntryType)
func getLobbyData(lobby: SteamID, key: String) -> String
func getLobbyData(lobby: SteamID, key: String) -> String
func getLobbyDataByIndex(lobby: SteamID, lobbyDataIndex: Int, keyBufferSize: Int, valueBufferSize: Int) -> (rc: Bool, key: String, value: String)
func getLobbyDataByIndex(lobby: SteamID, lobbyDataIndex: Int, keyBufferSize: Int, valueBufferSize: Int) -> (rc: Bool, key: String, value: String)
func getLobbyDataCount(lobby: SteamID) -> Int
func getLobbyDataCount(lobby: SteamID) -> Int
func getLobbyGameServer(lobby: SteamID) -> (rc: Bool, gameServerIP: Int, gameServerPort: UInt16, gameServer: SteamID)
func getLobbyGameServer(lobby: SteamID) -> (rc: Bool, gameServerIP: Int, gameServerPort: UInt16, gameServer: SteamID)
func getLobbyMemberByIndex(lobby: SteamID, memberIndex: Int) -> SteamID
func getLobbyMemberByIndex(lobby: SteamID, memberIndex: Int) -> SteamID
func getLobbyMemberData(lobby: SteamID, user: SteamID, key: String) -> String?
func getLobbyMemberData(lobby: SteamID, user: SteamID, key: String) -> String?
func getLobbyMemberLimit(lobby: SteamID) -> Int
func getLobbyMemberLimit(lobby: SteamID) -> Int
func getLobbyOwner(lobby: SteamID) -> SteamID
func getLobbyOwner(lobby: SteamID) -> SteamID
func getNumLobbyMembers(lobby: SteamID) -> Int
func getNumLobbyMembers(lobby: SteamID) -> Int
func inviteUserToLobby(lobby: SteamID, invitee: SteamID) -> Bool
func inviteUserToLobby(lobby: SteamID, invitee: SteamID) -> Bool
func joinLobby(lobby: SteamID, completion: (sending LobbyEnter?) -> Void)
func joinLobby(lobby: SteamID, completion: (sending LobbyEnter?) -> Void)
Steamworks ISteamMatchmaking::JoinLobby()
, callback
Declaration
public func joinLobby(
lobby: SteamID,
completion: @Sendable @escaping (sending LobbyEnter?) -> Void)
func joinLobby(isolation: isolated (any Actor)?, lobby: SteamID) async -> LobbyEnter?
func joinLobby(isolation: isolated (any Actor)?, lobby: SteamID) async -> LobbyEnter?
Steamworks ISteamMatchmaking::JoinLobby()
, async
Declaration
public func joinLobby(
isolation: isolated (any Actor)? = #isolation, lobby: SteamID
) async -> LobbyEnter?
func leaveLobby(lobby: SteamID)
func leaveLobby(lobby: SteamID)
func removeFavoriteGame(appID: AppID, ip: Int, connPort: UInt16, queryPort: UInt16, flags: FavoriteFlags) -> Bool
func removeFavoriteGame(appID: AppID, ip: Int, connPort: UInt16, queryPort: UInt16, flags: FavoriteFlags) -> Bool
func requestLobbyData(lobby: SteamID) -> Bool
func requestLobbyData(lobby: SteamID) -> Bool
func requestLobbyList(completion: (sending LobbyMatchList?) -> Void)
func requestLobbyList(completion: (sending LobbyMatchList?) -> Void)
Steamworks ISteamMatchmaking::RequestLobbyList()
, callback
Declaration
public func requestLobbyList(
completion: @Sendable @escaping (sending LobbyMatchList?) -> Void)
func requestLobbyList(isolation: isolated (any Actor)?) async -> LobbyMatchList?
func requestLobbyList(isolation: isolated (any Actor)?) async -> LobbyMatchList?
Steamworks ISteamMatchmaking::RequestLobbyList()
, async
Declaration
public func requestLobbyList(isolation: isolated (any Actor)? = #isolation)
async -> LobbyMatchList?
func sendLobbyChatMsg(lobby: SteamID, msgBody: UnsafeRawPointer, msgBodySize: Int) -> Bool
func sendLobbyChatMsg(lobby: SteamID, msgBody: UnsafeRawPointer, msgBodySize: Int) -> Bool
func setLinkedLobby(lobby: SteamID, lobbyDependent: SteamID) -> Bool
func setLinkedLobby(lobby: SteamID, lobbyDependent: SteamID) -> Bool
func setLobbyData(lobby: SteamID, key: String, value: String) -> Bool
func setLobbyData(lobby: SteamID, key: String, value: String) -> Bool
func setLobbyGameServer(lobby: SteamID, gameServerIP: Int, gameServerPort: UInt16, gameServer: SteamID)
func setLobbyGameServer(lobby: SteamID, gameServerIP: Int, gameServerPort: UInt16, gameServer: SteamID)
func setLobbyJoinable(lobby: SteamID, lobbyJoinable: Bool) -> Bool
func setLobbyJoinable(lobby: SteamID, lobbyJoinable: Bool) -> Bool
func setLobbyMemberData(lobby: SteamID, key: String, value: String)
func setLobbyMemberData(lobby: SteamID, key: String, value: String)
func setLobbyMemberLimit(lobby: SteamID, maxMembers: Int) -> Bool
func setLobbyMemberLimit(lobby: SteamID, maxMembers: Int) -> Bool
func setLobbyOwner(lobby: SteamID, newOwner: SteamID) -> Bool
func setLobbyOwner(lobby: SteamID, newOwner: SteamID) -> Bool
func setLobbyType(lobby: SteamID, lobbyType: LobbyType) -> Bool
func setLobbyType(lobby: SteamID, lobbyType: LobbyType) -> Bool
func getLobbyChatMsg(lobby: SteamID, chatIDIndex: Int) -> (rc: Int, user: SteamID, msg: String, chatEntryType: ChatEntryType)
func getLobbyChatMsg(lobby: SteamID, chatIDIndex: Int) -> (rc: Int, user: SteamID, msg: String, chatEntryType: ChatEntryType)
func sendLobbyChatMsg(lobby: SteamID, msg: String) -> Bool
func sendLobbyChatMsg(lobby: SteamID, msg: String) -> Bool