From 9696c60004cde03d7600f14297e82496ecad8652 Mon Sep 17 00:00:00 2001 From: John Fairhurst Date: Fri, 6 Sep 2024 10:58:58 +0100 Subject: [PATCH] Updates for Xcode 16 beta 6 --- .github/workflows/test.yml | 3 + Sources/LibGenerate/Callbacks.swift | 2 +- Sources/LibGenerate/Interfaces.swift | 2 +- Sources/Steamworks/Generated/SteamApps.swift | 2 +- .../Generated/SteamBaseAPI+Callbacks.swift | 286 +++++++++--------- .../Steamworks/Generated/SteamFriends.swift | 16 +- .../Generated/SteamGameServer.swift | 6 +- .../Generated/SteamGameServerStats.swift | 4 +- .../Generated/SteamHTMLSurface.swift | 2 +- .../Steamworks/Generated/SteamInventory.swift | 6 +- .../Generated/SteamMatchmaking.swift | 6 +- .../Steamworks/Generated/SteamParties.swift | 6 +- .../Generated/SteamRemoteStorage.swift | 42 +-- Sources/Steamworks/Generated/SteamUGC.swift | 40 +-- Sources/Steamworks/Generated/SteamUser.swift | 8 +- .../Steamworks/Generated/SteamUserStats.swift | 20 +- Sources/Steamworks/Generated/SteamUtils.swift | 2 +- Sources/Steamworks/ManualInterfaces.swift | 3 +- Sources/Steamworks/SteamBaseAPI.swift | 8 +- Tests/SteamworksTests/TestApiSimple.swift | 4 +- 20 files changed, 236 insertions(+), 232 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a90cf0d..56a6621f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + persist-credentials: false - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '16.0-beta' @@ -29,6 +30,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + persist-credentials: false - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '16.0-beta' @@ -43,6 +45,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: true + persist-credentials: false - name: Set up SDK run: cd sdk && sudo make install - name: Run tests diff --git a/Sources/LibGenerate/Callbacks.swift b/Sources/LibGenerate/Callbacks.swift index 17900564..58795760 100644 --- a/Sources/LibGenerate/Callbacks.swift +++ b/Sources/LibGenerate/Callbacks.swift @@ -69,7 +69,7 @@ extension MetadataDB.Struct { let swiftType = name.swiftType return """ /// Registration for Steamworks `\(name)` callback - func on\(swiftType)(_ client: @Sendable @escaping (\(swiftType)) -> Void) { + func on\(swiftType)(_ client: @Sendable @escaping (sending \(swiftType)) -> Void) { callbacks.add(callbackID: CallbackID(\(callbackID!)), rawClient: SteamBaseAPI.makeRaw(client)) } """ diff --git a/Sources/LibGenerate/Interfaces.swift b/Sources/LibGenerate/Interfaces.swift index 9945f9aa..26a8b4d2 100644 --- a/Sources/LibGenerate/Interfaces.swift +++ b/Sources/LibGenerate/Interfaces.swift @@ -676,7 +676,7 @@ struct SteamMethod { case .callReturn(let type): precondition(!db.isVar) - let done = "completion: @Sendable @escaping (\(type)?) -> Void" + let done = "completion: @Sendable @escaping (sending \(type)?) -> Void" return "public func \(db.funcName)(\(params.functionParams.commaAppend(done))) {" } } diff --git a/Sources/Steamworks/Generated/SteamApps.swift b/Sources/Steamworks/Generated/SteamApps.swift index 044b7fd5..9d80fd67 100644 --- a/Sources/Steamworks/Generated/SteamApps.swift +++ b/Sources/Steamworks/Generated/SteamApps.swift @@ -162,7 +162,7 @@ public struct SteamApps: Sendable { } /// Steamworks `ISteamApps::GetFileDetails()`, callback - public func getFileDetails(fileName: String, completion: @Sendable @escaping (FileDetailsResult?) -> Void) { + public func getFileDetails(fileName: String, completion: @Sendable @escaping (sending FileDetailsResult?) -> Void) { let rc = SteamAPI_ISteamApps_GetFileDetails(interface, fileName) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamBaseAPI+Callbacks.swift b/Sources/Steamworks/Generated/SteamBaseAPI+Callbacks.swift index e7d8400c..67ee5505 100644 --- a/Sources/Steamworks/Generated/SteamBaseAPI+Callbacks.swift +++ b/Sources/Steamworks/Generated/SteamBaseAPI+Callbacks.swift @@ -12,717 +12,717 @@ public extension SteamBaseAPI { // MARK: Callbacks /// Registration for Steamworks `ActiveBeaconsUpdated_t` callback - func onActiveBeaconsUpdated(_ client: @Sendable @escaping (ActiveBeaconsUpdated) -> Void) { + func onActiveBeaconsUpdated(_ client: @Sendable @escaping (sending ActiveBeaconsUpdated) -> Void) { callbacks.add(callbackID: CallbackID(5306), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `AppProofOfPurchaseKeyResponse_t` callback - func onAppProofOfPurchaseKeyResponse(_ client: @Sendable @escaping (AppProofOfPurchaseKeyResponse) -> Void) { + func onAppProofOfPurchaseKeyResponse(_ client: @Sendable @escaping (sending AppProofOfPurchaseKeyResponse) -> Void) { callbacks.add(callbackID: CallbackID(1021), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `AppResumingFromSuspend_t` callback - func onAppResumingFromSuspend(_ client: @Sendable @escaping (AppResumingFromSuspend) -> Void) { + func onAppResumingFromSuspend(_ client: @Sendable @escaping (sending AppResumingFromSuspend) -> Void) { callbacks.add(callbackID: CallbackID(736), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `AvailableBeaconLocationsUpdated_t` callback - func onAvailableBeaconLocationsUpdated(_ client: @Sendable @escaping (AvailableBeaconLocationsUpdated) -> Void) { + func onAvailableBeaconLocationsUpdated(_ client: @Sendable @escaping (sending AvailableBeaconLocationsUpdated) -> Void) { callbacks.add(callbackID: CallbackID(5305), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `AvatarImageLoaded_t` callback - func onAvatarImageLoaded(_ client: @Sendable @escaping (AvatarImageLoaded) -> Void) { + func onAvatarImageLoaded(_ client: @Sendable @escaping (sending AvatarImageLoaded) -> Void) { callbacks.add(callbackID: CallbackID(334), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `ClientGameServerDeny_t` callback - func onClientGameServerDeny(_ client: @Sendable @escaping (ClientGameServerDeny) -> Void) { + func onClientGameServerDeny(_ client: @Sendable @escaping (sending ClientGameServerDeny) -> Void) { callbacks.add(callbackID: CallbackID(113), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `DlcInstalled_t` callback - func onDlcInstalled(_ client: @Sendable @escaping (DlcInstalled) -> Void) { + func onDlcInstalled(_ client: @Sendable @escaping (sending DlcInstalled) -> Void) { callbacks.add(callbackID: CallbackID(1005), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `DownloadItemResult_t` callback - func onDownloadItemResult(_ client: @Sendable @escaping (DownloadItemResult) -> Void) { + func onDownloadItemResult(_ client: @Sendable @escaping (sending DownloadItemResult) -> Void) { callbacks.add(callbackID: CallbackID(3406), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `DurationControl_t` callback - func onDurationControl(_ client: @Sendable @escaping (DurationControl) -> Void) { + func onDurationControl(_ client: @Sendable @escaping (sending DurationControl) -> Void) { callbacks.add(callbackID: CallbackID(167), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `EndGameResultCallback_t` callback - func onEndGameResultCallback(_ client: @Sendable @escaping (EndGameResultCallback) -> Void) { + func onEndGameResultCallback(_ client: @Sendable @escaping (sending EndGameResultCallback) -> Void) { callbacks.add(callbackID: CallbackID(5215), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `EquippedProfileItemsChanged_t` callback - func onEquippedProfileItemsChanged(_ client: @Sendable @escaping (EquippedProfileItemsChanged) -> Void) { + func onEquippedProfileItemsChanged(_ client: @Sendable @escaping (sending EquippedProfileItemsChanged) -> Void) { callbacks.add(callbackID: CallbackID(350), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `FavoritesListAccountsUpdated_t` callback - func onFavoritesListAccountsUpdated(_ client: @Sendable @escaping (FavoritesListAccountsUpdated) -> Void) { + func onFavoritesListAccountsUpdated(_ client: @Sendable @escaping (sending FavoritesListAccountsUpdated) -> Void) { callbacks.add(callbackID: CallbackID(516), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `FavoritesListChanged_t` callback - func onFavoritesListChanged(_ client: @Sendable @escaping (FavoritesListChanged) -> Void) { + func onFavoritesListChanged(_ client: @Sendable @escaping (sending FavoritesListChanged) -> Void) { callbacks.add(callbackID: CallbackID(502), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `FilterTextDictionaryChanged_t` callback - func onFilterTextDictionaryChanged(_ client: @Sendable @escaping (FilterTextDictionaryChanged) -> Void) { + func onFilterTextDictionaryChanged(_ client: @Sendable @escaping (sending FilterTextDictionaryChanged) -> Void) { callbacks.add(callbackID: CallbackID(739), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `FloatingGamepadTextInputDismissed_t` callback - func onFloatingGamepadTextInputDismissed(_ client: @Sendable @escaping (FloatingGamepadTextInputDismissed) -> Void) { + func onFloatingGamepadTextInputDismissed(_ client: @Sendable @escaping (sending FloatingGamepadTextInputDismissed) -> Void) { callbacks.add(callbackID: CallbackID(738), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `FriendRichPresenceUpdate_t` callback - func onFriendRichPresenceUpdate(_ client: @Sendable @escaping (FriendRichPresenceUpdate) -> Void) { + func onFriendRichPresenceUpdate(_ client: @Sendable @escaping (sending FriendRichPresenceUpdate) -> Void) { callbacks.add(callbackID: CallbackID(336), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSClientAchievementStatus_t` callback - func onGSClientAchievementStatus(_ client: @Sendable @escaping (GSClientAchievementStatus) -> Void) { + func onGSClientAchievementStatus(_ client: @Sendable @escaping (sending GSClientAchievementStatus) -> Void) { callbacks.add(callbackID: CallbackID(206), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSClientApprove_t` callback - func onGSClientApprove(_ client: @Sendable @escaping (GSClientApprove) -> Void) { + func onGSClientApprove(_ client: @Sendable @escaping (sending GSClientApprove) -> Void) { callbacks.add(callbackID: CallbackID(201), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSClientDeny_t` callback - func onGSClientDeny(_ client: @Sendable @escaping (GSClientDeny) -> Void) { + func onGSClientDeny(_ client: @Sendable @escaping (sending GSClientDeny) -> Void) { callbacks.add(callbackID: CallbackID(202), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSClientGroupStatus_t` callback - func onGSClientGroupStatus(_ client: @Sendable @escaping (GSClientGroupStatus) -> Void) { + func onGSClientGroupStatus(_ client: @Sendable @escaping (sending GSClientGroupStatus) -> Void) { callbacks.add(callbackID: CallbackID(208), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSClientKick_t` callback - func onGSClientKick(_ client: @Sendable @escaping (GSClientKick) -> Void) { + func onGSClientKick(_ client: @Sendable @escaping (sending GSClientKick) -> Void) { callbacks.add(callbackID: CallbackID(203), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSGameplayStats_t` callback - func onGSGameplayStats(_ client: @Sendable @escaping (GSGameplayStats) -> Void) { + func onGSGameplayStats(_ client: @Sendable @escaping (sending GSGameplayStats) -> Void) { callbacks.add(callbackID: CallbackID(207), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSPolicyResponse_t` callback - func onGSPolicyResponse(_ client: @Sendable @escaping (GSPolicyResponse) -> Void) { + func onGSPolicyResponse(_ client: @Sendable @escaping (sending GSPolicyResponse) -> Void) { callbacks.add(callbackID: CallbackID(115), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GSStatsUnloaded_t` callback - func onGSStatsUnloaded(_ client: @Sendable @escaping (GSStatsUnloaded) -> Void) { + func onGSStatsUnloaded(_ client: @Sendable @escaping (sending GSStatsUnloaded) -> Void) { callbacks.add(callbackID: CallbackID(1108), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameConnectedChatJoin_t` callback - func onGameConnectedChatJoin(_ client: @Sendable @escaping (GameConnectedChatJoin) -> Void) { + func onGameConnectedChatJoin(_ client: @Sendable @escaping (sending GameConnectedChatJoin) -> Void) { callbacks.add(callbackID: CallbackID(339), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameConnectedChatLeave_t` callback - func onGameConnectedChatLeave(_ client: @Sendable @escaping (GameConnectedChatLeave) -> Void) { + func onGameConnectedChatLeave(_ client: @Sendable @escaping (sending GameConnectedChatLeave) -> Void) { callbacks.add(callbackID: CallbackID(340), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameConnectedClanChatMsg_t` callback - func onGameConnectedClanChatMsg(_ client: @Sendable @escaping (GameConnectedClanChatMsg) -> Void) { + func onGameConnectedClanChatMsg(_ client: @Sendable @escaping (sending GameConnectedClanChatMsg) -> Void) { callbacks.add(callbackID: CallbackID(338), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameConnectedFriendChatMsg_t` callback - func onGameConnectedFriendChatMsg(_ client: @Sendable @escaping (GameConnectedFriendChatMsg) -> Void) { + func onGameConnectedFriendChatMsg(_ client: @Sendable @escaping (sending GameConnectedFriendChatMsg) -> Void) { callbacks.add(callbackID: CallbackID(343), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameLobbyJoinRequested_t` callback - func onGameLobbyJoinRequested(_ client: @Sendable @escaping (GameLobbyJoinRequested) -> Void) { + func onGameLobbyJoinRequested(_ client: @Sendable @escaping (sending GameLobbyJoinRequested) -> Void) { callbacks.add(callbackID: CallbackID(333), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameOverlayActivated_t` callback - func onGameOverlayActivated(_ client: @Sendable @escaping (GameOverlayActivated) -> Void) { + func onGameOverlayActivated(_ client: @Sendable @escaping (sending GameOverlayActivated) -> Void) { callbacks.add(callbackID: CallbackID(331), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameRichPresenceJoinRequested_t` callback - func onGameRichPresenceJoinRequested(_ client: @Sendable @escaping (GameRichPresenceJoinRequested) -> Void) { + func onGameRichPresenceJoinRequested(_ client: @Sendable @escaping (sending GameRichPresenceJoinRequested) -> Void) { callbacks.add(callbackID: CallbackID(337), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameServerChangeRequested_t` callback - func onGameServerChangeRequested(_ client: @Sendable @escaping (GameServerChangeRequested) -> Void) { + func onGameServerChangeRequested(_ client: @Sendable @escaping (sending GameServerChangeRequested) -> Void) { callbacks.add(callbackID: CallbackID(332), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GameWebCallback_t` callback - func onGameWebCallback(_ client: @Sendable @escaping (GameWebCallback) -> Void) { + func onGameWebCallback(_ client: @Sendable @escaping (sending GameWebCallback) -> Void) { callbacks.add(callbackID: CallbackID(164), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GamepadTextInputDismissed_t` callback - func onGamepadTextInputDismissed(_ client: @Sendable @escaping (GamepadTextInputDismissed) -> Void) { + func onGamepadTextInputDismissed(_ client: @Sendable @escaping (sending GamepadTextInputDismissed) -> Void) { callbacks.add(callbackID: CallbackID(714), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GetAuthSessionTicketResponse_t` callback - func onGetAuthSessionTicketResponse(_ client: @Sendable @escaping (GetAuthSessionTicketResponse) -> Void) { + func onGetAuthSessionTicketResponse(_ client: @Sendable @escaping (sending GetAuthSessionTicketResponse) -> Void) { callbacks.add(callbackID: CallbackID(163), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GetOPFSettingsResult_t` callback - func onGetOPFSettingsResult(_ client: @Sendable @escaping (GetOPFSettingsResult) -> Void) { + func onGetOPFSettingsResult(_ client: @Sendable @escaping (sending GetOPFSettingsResult) -> Void) { callbacks.add(callbackID: CallbackID(4624), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GetTicketForWebApiResponse_t` callback - func onGetTicketForWebApiResponse(_ client: @Sendable @escaping (GetTicketForWebApiResponse) -> Void) { + func onGetTicketForWebApiResponse(_ client: @Sendable @escaping (sending GetTicketForWebApiResponse) -> Void) { callbacks.add(callbackID: CallbackID(168), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `GetVideoURLResult_t` callback - func onGetVideoURLResult(_ client: @Sendable @escaping (GetVideoURLResult) -> Void) { + func onGetVideoURLResult(_ client: @Sendable @escaping (sending GetVideoURLResult) -> Void) { callbacks.add(callbackID: CallbackID(4611), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_BrowserRestarted_t` callback - func onHTMLBrowserRestarted(_ client: @Sendable @escaping (HTMLBrowserRestarted) -> Void) { + func onHTMLBrowserRestarted(_ client: @Sendable @escaping (sending HTMLBrowserRestarted) -> Void) { callbacks.add(callbackID: CallbackID(4527), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_CanGoBackAndForward_t` callback - func onHTMLCanGoBackAndForward(_ client: @Sendable @escaping (HTMLCanGoBackAndForward) -> Void) { + func onHTMLCanGoBackAndForward(_ client: @Sendable @escaping (sending HTMLCanGoBackAndForward) -> Void) { callbacks.add(callbackID: CallbackID(4510), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_ChangedTitle_t` callback - func onHTMLChangedTitle(_ client: @Sendable @escaping (HTMLChangedTitle) -> Void) { + func onHTMLChangedTitle(_ client: @Sendable @escaping (sending HTMLChangedTitle) -> Void) { callbacks.add(callbackID: CallbackID(4508), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_CloseBrowser_t` callback - func onHTMLCloseBrowser(_ client: @Sendable @escaping (HTMLCloseBrowser) -> Void) { + func onHTMLCloseBrowser(_ client: @Sendable @escaping (sending HTMLCloseBrowser) -> Void) { callbacks.add(callbackID: CallbackID(4504), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_FileOpenDialog_t` callback - func onHTMLFileOpenDialog(_ client: @Sendable @escaping (HTMLFileOpenDialog) -> Void) { + func onHTMLFileOpenDialog(_ client: @Sendable @escaping (sending HTMLFileOpenDialog) -> Void) { callbacks.add(callbackID: CallbackID(4516), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_FinishedRequest_t` callback - func onHTMLFinishedRequest(_ client: @Sendable @escaping (HTMLFinishedRequest) -> Void) { + func onHTMLFinishedRequest(_ client: @Sendable @escaping (sending HTMLFinishedRequest) -> Void) { callbacks.add(callbackID: CallbackID(4506), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_HideToolTip_t` callback - func onHTMLHideToolTip(_ client: @Sendable @escaping (HTMLHideToolTip) -> Void) { + func onHTMLHideToolTip(_ client: @Sendable @escaping (sending HTMLHideToolTip) -> Void) { callbacks.add(callbackID: CallbackID(4526), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_HorizontalScroll_t` callback - func onHTMLHorizontalScroll(_ client: @Sendable @escaping (HTMLHorizontalScroll) -> Void) { + func onHTMLHorizontalScroll(_ client: @Sendable @escaping (sending HTMLHorizontalScroll) -> Void) { callbacks.add(callbackID: CallbackID(4511), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_JSAlert_t` callback - func onHTMLJSAlert(_ client: @Sendable @escaping (HTMLJSAlert) -> Void) { + func onHTMLJSAlert(_ client: @Sendable @escaping (sending HTMLJSAlert) -> Void) { callbacks.add(callbackID: CallbackID(4514), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_JSConfirm_t` callback - func onHTMLJSConfirm(_ client: @Sendable @escaping (HTMLJSConfirm) -> Void) { + func onHTMLJSConfirm(_ client: @Sendable @escaping (sending HTMLJSConfirm) -> Void) { callbacks.add(callbackID: CallbackID(4515), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_LinkAtPosition_t` callback - func onHTMLLinkAtPosition(_ client: @Sendable @escaping (HTMLLinkAtPosition) -> Void) { + func onHTMLLinkAtPosition(_ client: @Sendable @escaping (sending HTMLLinkAtPosition) -> Void) { callbacks.add(callbackID: CallbackID(4513), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_NeedsPaint_t` callback - func onHTMLNeedsPaint(_ client: @Sendable @escaping (HTMLNeedsPaint) -> Void) { + func onHTMLNeedsPaint(_ client: @Sendable @escaping (sending HTMLNeedsPaint) -> Void) { callbacks.add(callbackID: CallbackID(4502), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_NewWindow_t` callback - func onHTMLNewWindow(_ client: @Sendable @escaping (HTMLNewWindow) -> Void) { + func onHTMLNewWindow(_ client: @Sendable @escaping (sending HTMLNewWindow) -> Void) { callbacks.add(callbackID: CallbackID(4521), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_OpenLinkInNewTab_t` callback - func onHTMLOpenLinkInNewTab(_ client: @Sendable @escaping (HTMLOpenLinkInNewTab) -> Void) { + func onHTMLOpenLinkInNewTab(_ client: @Sendable @escaping (sending HTMLOpenLinkInNewTab) -> Void) { callbacks.add(callbackID: CallbackID(4507), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_SearchResults_t` callback - func onHTMLSearchResults(_ client: @Sendable @escaping (HTMLSearchResults) -> Void) { + func onHTMLSearchResults(_ client: @Sendable @escaping (sending HTMLSearchResults) -> Void) { callbacks.add(callbackID: CallbackID(4509), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_SetCursor_t` callback - func onHTMLSetCursor(_ client: @Sendable @escaping (HTMLSetCursor) -> Void) { + func onHTMLSetCursor(_ client: @Sendable @escaping (sending HTMLSetCursor) -> Void) { callbacks.add(callbackID: CallbackID(4522), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_ShowToolTip_t` callback - func onHTMLShowToolTip(_ client: @Sendable @escaping (HTMLShowToolTip) -> Void) { + func onHTMLShowToolTip(_ client: @Sendable @escaping (sending HTMLShowToolTip) -> Void) { callbacks.add(callbackID: CallbackID(4524), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_StartRequest_t` callback - func onHTMLStartRequest(_ client: @Sendable @escaping (HTMLStartRequest) -> Void) { + func onHTMLStartRequest(_ client: @Sendable @escaping (sending HTMLStartRequest) -> Void) { callbacks.add(callbackID: CallbackID(4503), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_StatusText_t` callback - func onHTMLStatusText(_ client: @Sendable @escaping (HTMLStatusText) -> Void) { + func onHTMLStatusText(_ client: @Sendable @escaping (sending HTMLStatusText) -> Void) { callbacks.add(callbackID: CallbackID(4523), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_URLChanged_t` callback - func onHTMLURLChanged(_ client: @Sendable @escaping (HTMLURLChanged) -> Void) { + func onHTMLURLChanged(_ client: @Sendable @escaping (sending HTMLURLChanged) -> Void) { callbacks.add(callbackID: CallbackID(4505), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_UpdateToolTip_t` callback - func onHTMLUpdateToolTip(_ client: @Sendable @escaping (HTMLUpdateToolTip) -> Void) { + func onHTMLUpdateToolTip(_ client: @Sendable @escaping (sending HTMLUpdateToolTip) -> Void) { callbacks.add(callbackID: CallbackID(4525), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTML_VerticalScroll_t` callback - func onHTMLVerticalScroll(_ client: @Sendable @escaping (HTMLVerticalScroll) -> Void) { + func onHTMLVerticalScroll(_ client: @Sendable @escaping (sending HTMLVerticalScroll) -> Void) { callbacks.add(callbackID: CallbackID(4512), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTTPRequestDataReceived_t` callback - func onHTTPRequestDataReceived(_ client: @Sendable @escaping (HTTPRequestDataReceived) -> Void) { + func onHTTPRequestDataReceived(_ client: @Sendable @escaping (sending HTTPRequestDataReceived) -> Void) { callbacks.add(callbackID: CallbackID(2103), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `HTTPRequestHeadersReceived_t` callback - func onHTTPRequestHeadersReceived(_ client: @Sendable @escaping (HTTPRequestHeadersReceived) -> Void) { + func onHTTPRequestHeadersReceived(_ client: @Sendable @escaping (sending HTTPRequestHeadersReceived) -> Void) { callbacks.add(callbackID: CallbackID(2102), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `IPCFailure_t` callback - func onIPCFailure(_ client: @Sendable @escaping (IPCFailure) -> Void) { + func onIPCFailure(_ client: @Sendable @escaping (sending IPCFailure) -> Void) { callbacks.add(callbackID: CallbackID(117), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `IPCountry_t` callback - func onIPCountry(_ client: @Sendable @escaping (IPCountry) -> Void) { + func onIPCountry(_ client: @Sendable @escaping (sending IPCountry) -> Void) { callbacks.add(callbackID: CallbackID(701), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `ItemInstalled_t` callback - func onItemInstalled(_ client: @Sendable @escaping (ItemInstalled) -> Void) { + func onItemInstalled(_ client: @Sendable @escaping (sending ItemInstalled) -> Void) { callbacks.add(callbackID: CallbackID(3405), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LicensesUpdated_t` callback - func onLicensesUpdated(_ client: @Sendable @escaping (LicensesUpdated) -> Void) { + func onLicensesUpdated(_ client: @Sendable @escaping (sending LicensesUpdated) -> Void) { callbacks.add(callbackID: CallbackID(125), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LobbyChatMsg_t` callback - func onLobbyChatMsg(_ client: @Sendable @escaping (LobbyChatMsg) -> Void) { + func onLobbyChatMsg(_ client: @Sendable @escaping (sending LobbyChatMsg) -> Void) { callbacks.add(callbackID: CallbackID(507), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LobbyChatUpdate_t` callback - func onLobbyChatUpdate(_ client: @Sendable @escaping (LobbyChatUpdate) -> Void) { + func onLobbyChatUpdate(_ client: @Sendable @escaping (sending LobbyChatUpdate) -> Void) { callbacks.add(callbackID: CallbackID(506), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LobbyDataUpdate_t` callback - func onLobbyDataUpdate(_ client: @Sendable @escaping (LobbyDataUpdate) -> Void) { + func onLobbyDataUpdate(_ client: @Sendable @escaping (sending LobbyDataUpdate) -> Void) { callbacks.add(callbackID: CallbackID(505), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LobbyGameCreated_t` callback - func onLobbyGameCreated(_ client: @Sendable @escaping (LobbyGameCreated) -> Void) { + func onLobbyGameCreated(_ client: @Sendable @escaping (sending LobbyGameCreated) -> Void) { callbacks.add(callbackID: CallbackID(509), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LobbyInvite_t` callback - func onLobbyInvite(_ client: @Sendable @escaping (LobbyInvite) -> Void) { + func onLobbyInvite(_ client: @Sendable @escaping (sending LobbyInvite) -> Void) { callbacks.add(callbackID: CallbackID(503), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LobbyKicked_t` callback - func onLobbyKicked(_ client: @Sendable @escaping (LobbyKicked) -> Void) { + func onLobbyKicked(_ client: @Sendable @escaping (sending LobbyKicked) -> Void) { callbacks.add(callbackID: CallbackID(512), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `LowBatteryPower_t` callback - func onLowBatteryPower(_ client: @Sendable @escaping (LowBatteryPower) -> Void) { + func onLowBatteryPower(_ client: @Sendable @escaping (sending LowBatteryPower) -> Void) { callbacks.add(callbackID: CallbackID(702), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MicroTxnAuthorizationResponse_t` callback - func onMicroTxnAuthorizationResponse(_ client: @Sendable @escaping (MicroTxnAuthorizationResponse) -> Void) { + func onMicroTxnAuthorizationResponse(_ client: @Sendable @escaping (sending MicroTxnAuthorizationResponse) -> Void) { callbacks.add(callbackID: CallbackID(152), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerRemoteToFront_t` callback - func onMusicPlayerRemoteToFront(_ client: @Sendable @escaping (MusicPlayerRemoteToFront) -> Void) { + func onMusicPlayerRemoteToFront(_ client: @Sendable @escaping (sending MusicPlayerRemoteToFront) -> Void) { callbacks.add(callbackID: CallbackID(4103), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerRemoteWillActivate_t` callback - func onMusicPlayerRemoteWillActivate(_ client: @Sendable @escaping (MusicPlayerRemoteWillActivate) -> Void) { + func onMusicPlayerRemoteWillActivate(_ client: @Sendable @escaping (sending MusicPlayerRemoteWillActivate) -> Void) { callbacks.add(callbackID: CallbackID(4101), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerRemoteWillDeactivate_t` callback - func onMusicPlayerRemoteWillDeactivate(_ client: @Sendable @escaping (MusicPlayerRemoteWillDeactivate) -> Void) { + func onMusicPlayerRemoteWillDeactivate(_ client: @Sendable @escaping (sending MusicPlayerRemoteWillDeactivate) -> Void) { callbacks.add(callbackID: CallbackID(4102), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerSelectsPlaylistEntry_t` callback - func onMusicPlayerSelectsPlaylistEntry(_ client: @Sendable @escaping (MusicPlayerSelectsPlaylistEntry) -> Void) { + func onMusicPlayerSelectsPlaylistEntry(_ client: @Sendable @escaping (sending MusicPlayerSelectsPlaylistEntry) -> Void) { callbacks.add(callbackID: CallbackID(4013), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerSelectsQueueEntry_t` callback - func onMusicPlayerSelectsQueueEntry(_ client: @Sendable @escaping (MusicPlayerSelectsQueueEntry) -> Void) { + func onMusicPlayerSelectsQueueEntry(_ client: @Sendable @escaping (sending MusicPlayerSelectsQueueEntry) -> Void) { callbacks.add(callbackID: CallbackID(4012), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsLooped_t` callback - func onMusicPlayerWantsLooped(_ client: @Sendable @escaping (MusicPlayerWantsLooped) -> Void) { + func onMusicPlayerWantsLooped(_ client: @Sendable @escaping (sending MusicPlayerWantsLooped) -> Void) { callbacks.add(callbackID: CallbackID(4110), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsPause_t` callback - func onMusicPlayerWantsPause(_ client: @Sendable @escaping (MusicPlayerWantsPause) -> Void) { + func onMusicPlayerWantsPause(_ client: @Sendable @escaping (sending MusicPlayerWantsPause) -> Void) { callbacks.add(callbackID: CallbackID(4106), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsPlayNext_t` callback - func onMusicPlayerWantsPlayNext(_ client: @Sendable @escaping (MusicPlayerWantsPlayNext) -> Void) { + func onMusicPlayerWantsPlayNext(_ client: @Sendable @escaping (sending MusicPlayerWantsPlayNext) -> Void) { callbacks.add(callbackID: CallbackID(4108), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsPlayPrevious_t` callback - func onMusicPlayerWantsPlayPrevious(_ client: @Sendable @escaping (MusicPlayerWantsPlayPrevious) -> Void) { + func onMusicPlayerWantsPlayPrevious(_ client: @Sendable @escaping (sending MusicPlayerWantsPlayPrevious) -> Void) { callbacks.add(callbackID: CallbackID(4107), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsPlay_t` callback - func onMusicPlayerWantsPlay(_ client: @Sendable @escaping (MusicPlayerWantsPlay) -> Void) { + func onMusicPlayerWantsPlay(_ client: @Sendable @escaping (sending MusicPlayerWantsPlay) -> Void) { callbacks.add(callbackID: CallbackID(4105), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsPlayingRepeatStatus_t` callback - func onMusicPlayerWantsPlayingRepeatStatus(_ client: @Sendable @escaping (MusicPlayerWantsPlayingRepeatStatus) -> Void) { + func onMusicPlayerWantsPlayingRepeatStatus(_ client: @Sendable @escaping (sending MusicPlayerWantsPlayingRepeatStatus) -> Void) { callbacks.add(callbackID: CallbackID(4114), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsShuffled_t` callback - func onMusicPlayerWantsShuffled(_ client: @Sendable @escaping (MusicPlayerWantsShuffled) -> Void) { + func onMusicPlayerWantsShuffled(_ client: @Sendable @escaping (sending MusicPlayerWantsShuffled) -> Void) { callbacks.add(callbackID: CallbackID(4109), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWantsVolume_t` callback - func onMusicPlayerWantsVolume(_ client: @Sendable @escaping (MusicPlayerWantsVolume) -> Void) { + func onMusicPlayerWantsVolume(_ client: @Sendable @escaping (sending MusicPlayerWantsVolume) -> Void) { callbacks.add(callbackID: CallbackID(4011), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `MusicPlayerWillQuit_t` callback - func onMusicPlayerWillQuit(_ client: @Sendable @escaping (MusicPlayerWillQuit) -> Void) { + func onMusicPlayerWillQuit(_ client: @Sendable @escaping (sending MusicPlayerWillQuit) -> Void) { callbacks.add(callbackID: CallbackID(4104), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `NewUrlLaunchParameters_t` callback - func onNewUrlLaunchParameters(_ client: @Sendable @escaping (NewUrlLaunchParameters) -> Void) { + func onNewUrlLaunchParameters(_ client: @Sendable @escaping (sending NewUrlLaunchParameters) -> Void) { callbacks.add(callbackID: CallbackID(1014), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `OverlayBrowserProtocolNavigation_t` callback - func onOverlayBrowserProtocolNavigation(_ client: @Sendable @escaping (OverlayBrowserProtocolNavigation) -> Void) { + func onOverlayBrowserProtocolNavigation(_ client: @Sendable @escaping (sending OverlayBrowserProtocolNavigation) -> Void) { callbacks.add(callbackID: CallbackID(349), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `PS3TrophiesInstalled_t` callback - func onPS3TrophiesInstalled(_ client: @Sendable @escaping (PS3TrophiesInstalled) -> Void) { + func onPS3TrophiesInstalled(_ client: @Sendable @escaping (sending PS3TrophiesInstalled) -> Void) { callbacks.add(callbackID: CallbackID(1112), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `PSNGameBootInviteResult_t` callback - func onPSNGameBootInviteResult(_ client: @Sendable @escaping (PSNGameBootInviteResult) -> Void) { + func onPSNGameBootInviteResult(_ client: @Sendable @escaping (sending PSNGameBootInviteResult) -> Void) { callbacks.add(callbackID: CallbackID(515), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `PersonaStateChange_t` callback - func onPersonaStateChange(_ client: @Sendable @escaping (PersonaStateChange) -> Void) { + func onPersonaStateChange(_ client: @Sendable @escaping (sending PersonaStateChange) -> Void) { callbacks.add(callbackID: CallbackID(304), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `PlaybackStatusHasChanged_t` callback - func onPlaybackStatusHasChanged(_ client: @Sendable @escaping (PlaybackStatusHasChanged) -> Void) { + func onPlaybackStatusHasChanged(_ client: @Sendable @escaping (sending PlaybackStatusHasChanged) -> Void) { callbacks.add(callbackID: CallbackID(4001), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStorageEnumerateUserSharedWorkshopFilesResult_t` callback - func onRemoteStorageEnumerateUserSharedWorkshopFilesResult(_ client: @Sendable @escaping (RemoteStorageEnumerateUserSharedWorkshopFilesResult) -> Void) { + func onRemoteStorageEnumerateUserSharedWorkshopFilesResult(_ client: @Sendable @escaping (sending RemoteStorageEnumerateUserSharedWorkshopFilesResult) -> Void) { callbacks.add(callbackID: CallbackID(1326), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStorageLocalFileChange_t` callback - func onRemoteStorageLocalFileChange(_ client: @Sendable @escaping (RemoteStorageLocalFileChange) -> Void) { + func onRemoteStorageLocalFileChange(_ client: @Sendable @escaping (sending RemoteStorageLocalFileChange) -> Void) { callbacks.add(callbackID: CallbackID(1333), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStoragePublishFileResult_t` callback - func onRemoteStoragePublishFileResult(_ client: @Sendable @escaping (RemoteStoragePublishFileResult) -> Void) { + func onRemoteStoragePublishFileResult(_ client: @Sendable @escaping (sending RemoteStoragePublishFileResult) -> Void) { callbacks.add(callbackID: CallbackID(1309), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStoragePublishedFileDeleted_t` callback - func onRemoteStoragePublishedFileDeleted(_ client: @Sendable @escaping (RemoteStoragePublishedFileDeleted) -> Void) { + func onRemoteStoragePublishedFileDeleted(_ client: @Sendable @escaping (sending RemoteStoragePublishedFileDeleted) -> Void) { callbacks.add(callbackID: CallbackID(1323), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStoragePublishedFileSubscribed_t` callback - func onRemoteStoragePublishedFileSubscribed(_ client: @Sendable @escaping (RemoteStoragePublishedFileSubscribed) -> Void) { + func onRemoteStoragePublishedFileSubscribed(_ client: @Sendable @escaping (sending RemoteStoragePublishedFileSubscribed) -> Void) { callbacks.add(callbackID: CallbackID(1321), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStoragePublishedFileUnsubscribed_t` callback - func onRemoteStoragePublishedFileUnsubscribed(_ client: @Sendable @escaping (RemoteStoragePublishedFileUnsubscribed) -> Void) { + func onRemoteStoragePublishedFileUnsubscribed(_ client: @Sendable @escaping (sending RemoteStoragePublishedFileUnsubscribed) -> Void) { callbacks.add(callbackID: CallbackID(1322), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStoragePublishedFileUpdated_t` callback - func onRemoteStoragePublishedFileUpdated(_ client: @Sendable @escaping (RemoteStoragePublishedFileUpdated) -> Void) { + func onRemoteStoragePublishedFileUpdated(_ client: @Sendable @escaping (sending RemoteStoragePublishedFileUpdated) -> Void) { callbacks.add(callbackID: CallbackID(1330), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RemoteStorageUserVoteDetails_t` callback - func onRemoteStorageUserVoteDetails(_ client: @Sendable @escaping (RemoteStorageUserVoteDetails) -> Void) { + func onRemoteStorageUserVoteDetails(_ client: @Sendable @escaping (sending RemoteStorageUserVoteDetails) -> Void) { callbacks.add(callbackID: CallbackID(1325), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RequestPlayersForGameFinalResultCallback_t` callback - func onRequestPlayersForGameFinalResultCallback(_ client: @Sendable @escaping (RequestPlayersForGameFinalResultCallback) -> Void) { + func onRequestPlayersForGameFinalResultCallback(_ client: @Sendable @escaping (sending RequestPlayersForGameFinalResultCallback) -> Void) { callbacks.add(callbackID: CallbackID(5213), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RequestPlayersForGameProgressCallback_t` callback - func onRequestPlayersForGameProgressCallback(_ client: @Sendable @escaping (RequestPlayersForGameProgressCallback) -> Void) { + func onRequestPlayersForGameProgressCallback(_ client: @Sendable @escaping (sending RequestPlayersForGameProgressCallback) -> Void) { callbacks.add(callbackID: CallbackID(5211), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `RequestPlayersForGameResultCallback_t` callback - func onRequestPlayersForGameResultCallback(_ client: @Sendable @escaping (RequestPlayersForGameResultCallback) -> Void) { + func onRequestPlayersForGameResultCallback(_ client: @Sendable @escaping (sending RequestPlayersForGameResultCallback) -> Void) { callbacks.add(callbackID: CallbackID(5212), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `ReservationNotificationCallback_t` callback - func onReservationNotificationCallback(_ client: @Sendable @escaping (ReservationNotificationCallback) -> Void) { + func onReservationNotificationCallback(_ client: @Sendable @escaping (sending ReservationNotificationCallback) -> Void) { callbacks.add(callbackID: CallbackID(5303), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `ScreenshotReady_t` callback - func onScreenshotReady(_ client: @Sendable @escaping (ScreenshotReady) -> Void) { + func onScreenshotReady(_ client: @Sendable @escaping (sending ScreenshotReady) -> Void) { callbacks.add(callbackID: CallbackID(2301), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `ScreenshotRequested_t` callback - func onScreenshotRequested(_ client: @Sendable @escaping (ScreenshotRequested) -> Void) { + func onScreenshotRequested(_ client: @Sendable @escaping (sending ScreenshotRequested) -> Void) { callbacks.add(callbackID: CallbackID(2302), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SearchForGameProgressCallback_t` callback - func onSearchForGameProgressCallback(_ client: @Sendable @escaping (SearchForGameProgressCallback) -> Void) { + func onSearchForGameProgressCallback(_ client: @Sendable @escaping (sending SearchForGameProgressCallback) -> Void) { callbacks.add(callbackID: CallbackID(5201), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SearchForGameResultCallback_t` callback - func onSearchForGameResultCallback(_ client: @Sendable @escaping (SearchForGameResultCallback) -> Void) { + func onSearchForGameResultCallback(_ client: @Sendable @escaping (sending SearchForGameResultCallback) -> Void) { callbacks.add(callbackID: CallbackID(5202), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamAPICallCompleted_t` callback - func onSteamAPICallCompleted(_ client: @Sendable @escaping (SteamAPICallCompleted) -> Void) { + func onSteamAPICallCompleted(_ client: @Sendable @escaping (sending SteamAPICallCompleted) -> Void) { callbacks.add(callbackID: CallbackID(703), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInputConfigurationLoaded_t` callback - func onSteamInputConfigurationLoaded(_ client: @Sendable @escaping (SteamInputConfigurationLoaded) -> Void) { + func onSteamInputConfigurationLoaded(_ client: @Sendable @escaping (sending SteamInputConfigurationLoaded) -> Void) { callbacks.add(callbackID: CallbackID(2803), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInputDeviceConnected_t` callback - func onSteamInputDeviceConnected(_ client: @Sendable @escaping (SteamInputDeviceConnected) -> Void) { + func onSteamInputDeviceConnected(_ client: @Sendable @escaping (sending SteamInputDeviceConnected) -> Void) { callbacks.add(callbackID: CallbackID(2801), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInputDeviceDisconnected_t` callback - func onSteamInputDeviceDisconnected(_ client: @Sendable @escaping (SteamInputDeviceDisconnected) -> Void) { + func onSteamInputDeviceDisconnected(_ client: @Sendable @escaping (sending SteamInputDeviceDisconnected) -> Void) { callbacks.add(callbackID: CallbackID(2802), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInputGamepadSlotChange_t` callback - func onSteamInputGamepadSlotChange(_ client: @Sendable @escaping (SteamInputGamepadSlotChange) -> Void) { + func onSteamInputGamepadSlotChange(_ client: @Sendable @escaping (sending SteamInputGamepadSlotChange) -> Void) { callbacks.add(callbackID: CallbackID(2804), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInventoryDefinitionUpdate_t` callback - func onSteamInventoryDefinitionUpdate(_ client: @Sendable @escaping (SteamInventoryDefinitionUpdate) -> Void) { + func onSteamInventoryDefinitionUpdate(_ client: @Sendable @escaping (sending SteamInventoryDefinitionUpdate) -> Void) { callbacks.add(callbackID: CallbackID(4702), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInventoryFullUpdate_t` callback - func onSteamInventoryFullUpdate(_ client: @Sendable @escaping (SteamInventoryFullUpdate) -> Void) { + func onSteamInventoryFullUpdate(_ client: @Sendable @escaping (sending SteamInventoryFullUpdate) -> Void) { callbacks.add(callbackID: CallbackID(4701), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamInventoryResultReady_t` callback - func onSteamInventoryResultReady(_ client: @Sendable @escaping (SteamInventoryResultReady) -> Void) { + func onSteamInventoryResultReady(_ client: @Sendable @escaping (sending SteamInventoryResultReady) -> Void) { callbacks.add(callbackID: CallbackID(4700), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamNetAuthenticationStatus_t` callback - func onSteamNetAuthenticationStatus(_ client: @Sendable @escaping (SteamNetAuthenticationStatus) -> Void) { + func onSteamNetAuthenticationStatus(_ client: @Sendable @escaping (sending SteamNetAuthenticationStatus) -> Void) { callbacks.add(callbackID: CallbackID(1222), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamNetConnectionStatusChangedCallback_t` callback - func onSteamNetConnectionStatusChangedCallback(_ client: @Sendable @escaping (SteamNetConnectionStatusChangedCallback) -> Void) { + func onSteamNetConnectionStatusChangedCallback(_ client: @Sendable @escaping (sending SteamNetConnectionStatusChangedCallback) -> Void) { callbacks.add(callbackID: CallbackID(1221), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamNetworkingFakeIPResult_t` callback - func onSteamNetworkingFakeIPResult(_ client: @Sendable @escaping (SteamNetworkingFakeIPResult) -> Void) { + func onSteamNetworkingFakeIPResult(_ client: @Sendable @escaping (sending SteamNetworkingFakeIPResult) -> Void) { callbacks.add(callbackID: CallbackID(1223), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamNetworkingMessagesSessionFailed_t` callback - func onSteamNetworkingMessagesSessionFailed(_ client: @Sendable @escaping (SteamNetworkingMessagesSessionFailed) -> Void) { + func onSteamNetworkingMessagesSessionFailed(_ client: @Sendable @escaping (sending SteamNetworkingMessagesSessionFailed) -> Void) { callbacks.add(callbackID: CallbackID(1252), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamNetworkingMessagesSessionRequest_t` callback - func onSteamNetworkingMessagesSessionRequest(_ client: @Sendable @escaping (SteamNetworkingMessagesSessionRequest) -> Void) { + func onSteamNetworkingMessagesSessionRequest(_ client: @Sendable @escaping (sending SteamNetworkingMessagesSessionRequest) -> Void) { callbacks.add(callbackID: CallbackID(1251), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamParentalSettingsChanged_t` callback - func onSteamParentalSettingsChanged(_ client: @Sendable @escaping (SteamParentalSettingsChanged) -> Void) { + func onSteamParentalSettingsChanged(_ client: @Sendable @escaping (sending SteamParentalSettingsChanged) -> Void) { callbacks.add(callbackID: CallbackID(5001), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamRelayNetworkStatus_t` callback - func onSteamRelayNetworkStatus(_ client: @Sendable @escaping (SteamRelayNetworkStatus) -> Void) { + func onSteamRelayNetworkStatus(_ client: @Sendable @escaping (sending SteamRelayNetworkStatus) -> Void) { callbacks.add(callbackID: CallbackID(1281), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamRemotePlaySessionConnected_t` callback - func onSteamRemotePlaySessionConnected(_ client: @Sendable @escaping (SteamRemotePlaySessionConnected) -> Void) { + func onSteamRemotePlaySessionConnected(_ client: @Sendable @escaping (sending SteamRemotePlaySessionConnected) -> Void) { callbacks.add(callbackID: CallbackID(5701), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamRemotePlaySessionDisconnected_t` callback - func onSteamRemotePlaySessionDisconnected(_ client: @Sendable @escaping (SteamRemotePlaySessionDisconnected) -> Void) { + func onSteamRemotePlaySessionDisconnected(_ client: @Sendable @escaping (sending SteamRemotePlaySessionDisconnected) -> Void) { callbacks.add(callbackID: CallbackID(5702), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamRemotePlayTogetherGuestInvite_t` callback - func onSteamRemotePlayTogetherGuestInvite(_ client: @Sendable @escaping (SteamRemotePlayTogetherGuestInvite) -> Void) { + func onSteamRemotePlayTogetherGuestInvite(_ client: @Sendable @escaping (sending SteamRemotePlayTogetherGuestInvite) -> Void) { callbacks.add(callbackID: CallbackID(5703), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamServerConnectFailure_t` callback - func onSteamServerConnectFailure(_ client: @Sendable @escaping (SteamServerConnectFailure) -> Void) { + func onSteamServerConnectFailure(_ client: @Sendable @escaping (sending SteamServerConnectFailure) -> Void) { callbacks.add(callbackID: CallbackID(102), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamServersConnected_t` callback - func onSteamServersConnected(_ client: @Sendable @escaping (SteamServersConnected) -> Void) { + func onSteamServersConnected(_ client: @Sendable @escaping (sending SteamServersConnected) -> Void) { callbacks.add(callbackID: CallbackID(101), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamServersDisconnected_t` callback - func onSteamServersDisconnected(_ client: @Sendable @escaping (SteamServersDisconnected) -> Void) { + func onSteamServersDisconnected(_ client: @Sendable @escaping (sending SteamServersDisconnected) -> Void) { callbacks.add(callbackID: CallbackID(103), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SteamShutdown_t` callback - func onSteamShutdown(_ client: @Sendable @escaping (SteamShutdown) -> Void) { + func onSteamShutdown(_ client: @Sendable @escaping (sending SteamShutdown) -> Void) { callbacks.add(callbackID: CallbackID(704), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `SubmitPlayerResultResultCallback_t` callback - func onSubmitPlayerResultResultCallback(_ client: @Sendable @escaping (SubmitPlayerResultResultCallback) -> Void) { + func onSubmitPlayerResultResultCallback(_ client: @Sendable @escaping (sending SubmitPlayerResultResultCallback) -> Void) { callbacks.add(callbackID: CallbackID(5214), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `TimedTrialStatus_t` callback - func onTimedTrialStatus(_ client: @Sendable @escaping (TimedTrialStatus) -> Void) { + func onTimedTrialStatus(_ client: @Sendable @escaping (sending TimedTrialStatus) -> Void) { callbacks.add(callbackID: CallbackID(1030), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UnreadChatMessagesChanged_t` callback - func onUnreadChatMessagesChanged(_ client: @Sendable @escaping (UnreadChatMessagesChanged) -> Void) { + func onUnreadChatMessagesChanged(_ client: @Sendable @escaping (sending UnreadChatMessagesChanged) -> Void) { callbacks.add(callbackID: CallbackID(348), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UserAchievementIconFetched_t` callback - func onUserAchievementIconFetched(_ client: @Sendable @escaping (UserAchievementIconFetched) -> Void) { + func onUserAchievementIconFetched(_ client: @Sendable @escaping (sending UserAchievementIconFetched) -> Void) { callbacks.add(callbackID: CallbackID(1109), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UserAchievementStored_t` callback - func onUserAchievementStored(_ client: @Sendable @escaping (UserAchievementStored) -> Void) { + func onUserAchievementStored(_ client: @Sendable @escaping (sending UserAchievementStored) -> Void) { callbacks.add(callbackID: CallbackID(1103), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UserStatsReceived_t` callback - func onUserStatsReceived(_ client: @Sendable @escaping (UserStatsReceived) -> Void) { + func onUserStatsReceived(_ client: @Sendable @escaping (sending UserStatsReceived) -> Void) { callbacks.add(callbackID: CallbackID(1101), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UserStatsStored_t` callback - func onUserStatsStored(_ client: @Sendable @escaping (UserStatsStored) -> Void) { + func onUserStatsStored(_ client: @Sendable @escaping (sending UserStatsStored) -> Void) { callbacks.add(callbackID: CallbackID(1102), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UserStatsUnloaded_t` callback - func onUserStatsUnloaded(_ client: @Sendable @escaping (UserStatsUnloaded) -> Void) { + func onUserStatsUnloaded(_ client: @Sendable @escaping (sending UserStatsUnloaded) -> Void) { callbacks.add(callbackID: CallbackID(1108), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `UserSubscribedItemsListChanged_t` callback - func onUserSubscribedItemsListChanged(_ client: @Sendable @escaping (UserSubscribedItemsListChanged) -> Void) { + func onUserSubscribedItemsListChanged(_ client: @Sendable @escaping (sending UserSubscribedItemsListChanged) -> Void) { callbacks.add(callbackID: CallbackID(3418), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `ValidateAuthTicketResponse_t` callback - func onValidateAuthTicketResponse(_ client: @Sendable @escaping (ValidateAuthTicketResponse) -> Void) { + func onValidateAuthTicketResponse(_ client: @Sendable @escaping (sending ValidateAuthTicketResponse) -> Void) { callbacks.add(callbackID: CallbackID(143), rawClient: SteamBaseAPI.makeRaw(client)) } /// Registration for Steamworks `VolumeHasChanged_t` callback - func onVolumeHasChanged(_ client: @Sendable @escaping (VolumeHasChanged) -> Void) { + func onVolumeHasChanged(_ client: @Sendable @escaping (sending VolumeHasChanged) -> Void) { callbacks.add(callbackID: CallbackID(4002), rawClient: SteamBaseAPI.makeRaw(client)) } } diff --git a/Sources/Steamworks/Generated/SteamFriends.swift b/Sources/Steamworks/Generated/SteamFriends.swift index cc1096f7..e477ddc4 100644 --- a/Sources/Steamworks/Generated/SteamFriends.swift +++ b/Sources/Steamworks/Generated/SteamFriends.swift @@ -70,7 +70,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::DownloadClanActivityCounts()`, callback - public func downloadClanActivityCounts(clans: [SteamID], completion: @Sendable @escaping (DownloadClanActivityCountsResult?) -> Void) { + public func downloadClanActivityCounts(clans: [SteamID], completion: @Sendable @escaping (sending DownloadClanActivityCountsResult?) -> Void) { var tmpClans = clans.map { CSteamID($0) } let rc = SteamAPI_ISteamFriends_DownloadClanActivityCounts(interface, &tmpClans, CInt(clans.count)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) @@ -84,7 +84,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::EnumerateFollowingList()`, callback - public func enumerateFollowingList(startIndex: Int, completion: @Sendable @escaping (FriendsEnumerateFollowingList?) -> Void) { + public func enumerateFollowingList(startIndex: Int, completion: @Sendable @escaping (sending FriendsEnumerateFollowingList?) -> Void) { let rc = SteamAPI_ISteamFriends_EnumerateFollowingList(interface, uint32(startIndex)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -172,7 +172,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::GetFollowerCount()`, callback - public func getFollowerCount(steamID: SteamID, completion: @Sendable @escaping (FriendsGetFollowerCount?) -> Void) { + public func getFollowerCount(steamID: SteamID, completion: @Sendable @escaping (sending FriendsGetFollowerCount?) -> Void) { let rc = SteamAPI_ISteamFriends_GetFollowerCount(interface, CUnsignedLongLong(steamID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -383,7 +383,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::IsFollowing()`, callback - public func isFollowing(steamID: SteamID, completion: @Sendable @escaping (FriendsIsFollowing?) -> Void) { + public func isFollowing(steamID: SteamID, completion: @Sendable @escaping (sending FriendsIsFollowing?) -> Void) { let rc = SteamAPI_ISteamFriends_IsFollowing(interface, CUnsignedLongLong(steamID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -401,7 +401,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::JoinClanChatRoom()`, callback - public func joinClanChatRoom(clan: SteamID, completion: @Sendable @escaping (JoinClanChatRoomCompletionResult?) -> Void) { + public func joinClanChatRoom(clan: SteamID, completion: @Sendable @escaping (sending JoinClanChatRoomCompletionResult?) -> Void) { let rc = SteamAPI_ISteamFriends_JoinClanChatRoom(interface, CUnsignedLongLong(clan)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -434,7 +434,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::RequestClanOfficerList()`, callback - public func requestClanOfficerList(clan: SteamID, completion: @Sendable @escaping (ClanOfficerListResponse?) -> Void) { + public func requestClanOfficerList(clan: SteamID, completion: @Sendable @escaping (sending ClanOfficerListResponse?) -> Void) { let rc = SteamAPI_ISteamFriends_RequestClanOfficerList(interface, CUnsignedLongLong(clan)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -447,7 +447,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::RequestEquippedProfileItems()`, callback - public func requestEquippedProfileItems(steamID: SteamID, completion: @Sendable @escaping (EquippedProfileItems?) -> Void) { + public func requestEquippedProfileItems(steamID: SteamID, completion: @Sendable @escaping (sending EquippedProfileItems?) -> Void) { let rc = SteamAPI_ISteamFriends_RequestEquippedProfileItems(interface, CUnsignedLongLong(steamID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -486,7 +486,7 @@ public struct SteamFriends: Sendable { } /// Steamworks `ISteamFriends::SetPersonaName()`, callback - public func setPersonaName(personaName: String, completion: @Sendable @escaping (SetPersonaNameResponse?) -> Void) { + public func setPersonaName(personaName: String, completion: @Sendable @escaping (sending SetPersonaNameResponse?) -> Void) { let rc = SteamAPI_ISteamFriends_SetPersonaName(interface, personaName) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamGameServer.swift b/Sources/Steamworks/Generated/SteamGameServer.swift index 7406ff7d..5ff049ba 100644 --- a/Sources/Steamworks/Generated/SteamGameServer.swift +++ b/Sources/Steamworks/Generated/SteamGameServer.swift @@ -20,7 +20,7 @@ public struct SteamGameServer: Sendable { } /// Steamworks `ISteamGameServer::AssociateWithClan()`, callback - public func associateWithClan(clan: SteamID, completion: @Sendable @escaping (AssociateWithClanResult?) -> Void) { + public func associateWithClan(clan: SteamID, completion: @Sendable @escaping (sending AssociateWithClanResult?) -> Void) { let rc = SteamAPI_ISteamGameServer_AssociateWithClan(interface, CUnsignedLongLong(clan)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -64,7 +64,7 @@ public struct SteamGameServer: Sendable { } /// Steamworks `ISteamGameServer::ComputeNewPlayerCompatibility()`, callback - public func computeNewPlayerCompatibility(newPlayer: SteamID, completion: @Sendable @escaping (ComputeNewPlayerCompatibilityResult?) -> Void) { + public func computeNewPlayerCompatibility(newPlayer: SteamID, completion: @Sendable @escaping (sending ComputeNewPlayerCompatibilityResult?) -> Void) { let rc = SteamAPI_ISteamGameServer_ComputeNewPlayerCompatibility(interface, CUnsignedLongLong(newPlayer)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -117,7 +117,7 @@ public struct SteamGameServer: Sendable { } /// Steamworks `ISteamGameServer::GetServerReputation()`, callback - public func getServerReputation(completion: @Sendable @escaping (GSReputation?) -> Void) { + public func getServerReputation(completion: @Sendable @escaping (sending GSReputation?) -> Void) { let rc = SteamAPI_ISteamGameServer_GetServerReputation(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamGameServerStats.swift b/Sources/Steamworks/Generated/SteamGameServerStats.swift index f3cf3bd0..b436f056 100644 --- a/Sources/Steamworks/Generated/SteamGameServerStats.swift +++ b/Sources/Steamworks/Generated/SteamGameServerStats.swift @@ -46,7 +46,7 @@ public struct SteamGameServerStats: Sendable { } /// Steamworks `ISteamGameServerStats::RequestUserStats()`, callback - public func requestUserStats(user: SteamID, completion: @Sendable @escaping (GSStatsReceived?) -> Void) { + public func requestUserStats(user: SteamID, completion: @Sendable @escaping (sending GSStatsReceived?) -> Void) { let rc = SteamAPI_ISteamGameServerStats_RequestUserStats(interface, CUnsignedLongLong(user)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -74,7 +74,7 @@ public struct SteamGameServerStats: Sendable { } /// Steamworks `ISteamGameServerStats::StoreUserStats()`, callback - public func storeUserStats(user: SteamID, completion: @Sendable @escaping (GSStatsStored?) -> Void) { + public func storeUserStats(user: SteamID, completion: @Sendable @escaping (sending GSStatsStored?) -> Void) { let rc = SteamAPI_ISteamGameServerStats_StoreUserStats(interface, CUnsignedLongLong(user)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamHTMLSurface.swift b/Sources/Steamworks/Generated/SteamHTMLSurface.swift index 48030f88..47a8d11d 100644 --- a/Sources/Steamworks/Generated/SteamHTMLSurface.swift +++ b/Sources/Steamworks/Generated/SteamHTMLSurface.swift @@ -35,7 +35,7 @@ public struct SteamHTMLSurface: Sendable { } /// Steamworks `ISteamHTMLSurface::CreateBrowser()`, callback - public func createBrowser(userAgent: String?, userCSS: String?, completion: @Sendable @escaping (HTMLBrowserReady?) -> Void) { + public func createBrowser(userAgent: String?, userCSS: String?, completion: @Sendable @escaping (sending HTMLBrowserReady?) -> Void) { let rc = SteamAPI_ISteamHTMLSurface_CreateBrowser(interface, userAgent, userCSS) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamInventory.swift b/Sources/Steamworks/Generated/SteamInventory.swift index 7a033248..86e3e236 100644 --- a/Sources/Steamworks/Generated/SteamInventory.swift +++ b/Sources/Steamworks/Generated/SteamInventory.swift @@ -217,7 +217,7 @@ public struct SteamInventory: Sendable { } /// Steamworks `ISteamInventory::RequestEligiblePromoItemDefinitionsIDs()`, callback - public func requestEligiblePromoItemDefinitionsIDs(steamID: SteamID, completion: @Sendable @escaping (SteamInventoryEligiblePromoItemDefIDs?) -> Void) { + public func requestEligiblePromoItemDefinitionsIDs(steamID: SteamID, completion: @Sendable @escaping (sending SteamInventoryEligiblePromoItemDefIDs?) -> Void) { let rc = SteamAPI_ISteamInventory_RequestEligiblePromoItemDefinitionsIDs(interface, CUnsignedLongLong(steamID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -230,7 +230,7 @@ public struct SteamInventory: Sendable { } /// Steamworks `ISteamInventory::RequestPrices()`, callback - public func requestPrices(completion: @Sendable @escaping (SteamInventoryRequestPricesResult?) -> Void) { + public func requestPrices(completion: @Sendable @escaping (sending SteamInventoryRequestPricesResult?) -> Void) { let rc = SteamAPI_ISteamInventory_RequestPrices(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -278,7 +278,7 @@ public struct SteamInventory: Sendable { } /// Steamworks `ISteamInventory::StartPurchase()`, callback - public func startPurchase(arrayItemDefs: [SteamItemDef], arrayQuantity: [Int], completion: @Sendable @escaping (SteamInventoryStartPurchaseResult?) -> Void) { + public func startPurchase(arrayItemDefs: [SteamItemDef], arrayQuantity: [Int], completion: @Sendable @escaping (sending SteamInventoryStartPurchaseResult?) -> Void) { var tmpArrayItemDefs = arrayItemDefs.map { SteamItemDef_t($0) } var tmpArrayQuantity = arrayQuantity.map { uint32($0) } let rc = SteamAPI_ISteamInventory_StartPurchase(interface, &tmpArrayItemDefs, &tmpArrayQuantity, uint32(arrayQuantity.count)) diff --git a/Sources/Steamworks/Generated/SteamMatchmaking.swift b/Sources/Steamworks/Generated/SteamMatchmaking.swift index 16a57ecc..6110dd1e 100644 --- a/Sources/Steamworks/Generated/SteamMatchmaking.swift +++ b/Sources/Steamworks/Generated/SteamMatchmaking.swift @@ -60,7 +60,7 @@ public struct SteamMatchmaking: Sendable { } /// Steamworks `ISteamMatchmaking::CreateLobby()`, callback - public func createLobby(lobbyType: LobbyType, maxMembers: Int, completion: @Sendable @escaping (LobbyCreated?) -> Void) { + public func createLobby(lobbyType: LobbyType, maxMembers: Int, completion: @Sendable @escaping (sending LobbyCreated?) -> Void) { let rc = SteamAPI_ISteamMatchmaking_CreateLobby(interface, ELobbyType(lobbyType), CInt(maxMembers)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -179,7 +179,7 @@ public struct SteamMatchmaking: Sendable { } /// Steamworks `ISteamMatchmaking::JoinLobby()`, callback - public func joinLobby(lobby: SteamID, completion: @Sendable @escaping (LobbyEnter?) -> Void) { + public func joinLobby(lobby: SteamID, completion: @Sendable @escaping (sending LobbyEnter?) -> Void) { let rc = SteamAPI_ISteamMatchmaking_JoinLobby(interface, CUnsignedLongLong(lobby)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -209,7 +209,7 @@ public struct SteamMatchmaking: Sendable { } /// Steamworks `ISteamMatchmaking::RequestLobbyList()`, callback - public func requestLobbyList(completion: @Sendable @escaping (LobbyMatchList?) -> Void) { + public func requestLobbyList(completion: @Sendable @escaping (sending LobbyMatchList?) -> Void) { let rc = SteamAPI_ISteamMatchmaking_RequestLobbyList(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamParties.swift b/Sources/Steamworks/Generated/SteamParties.swift index 76458ebe..65f8b4f5 100644 --- a/Sources/Steamworks/Generated/SteamParties.swift +++ b/Sources/Steamworks/Generated/SteamParties.swift @@ -25,7 +25,7 @@ public struct SteamParties: Sendable { } /// Steamworks `ISteamParties::ChangeNumOpenSlots()`, callback - public func changeNumOpenSlots(beacon: PartyBeaconID, openSlots: Int, completion: @Sendable @escaping (ChangeNumOpenSlotsCallback?) -> Void) { + public func changeNumOpenSlots(beacon: PartyBeaconID, openSlots: Int, completion: @Sendable @escaping (sending ChangeNumOpenSlotsCallback?) -> Void) { let rc = SteamAPI_ISteamParties_ChangeNumOpenSlots(interface, PartyBeaconID_t(beacon), uint32(openSlots)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -38,7 +38,7 @@ public struct SteamParties: Sendable { } /// Steamworks `ISteamParties::CreateBeacon()`, callback - public func createBeacon(openSlots: Int, beaconLocation: SteamPartyBeaconLocation, connectString: String, metadata: String, completion: @Sendable @escaping (CreateBeaconCallback?) -> Void) { + public func createBeacon(openSlots: Int, beaconLocation: SteamPartyBeaconLocation, connectString: String, metadata: String, completion: @Sendable @escaping (sending CreateBeaconCallback?) -> Void) { let rc = CSteamAPI_ISteamParties_CreateBeacon(interface, uint32(openSlots), SteamPartyBeaconLocation_t(beaconLocation), connectString, metadata) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -101,7 +101,7 @@ public struct SteamParties: Sendable { } /// Steamworks `ISteamParties::JoinParty()`, callback - public func joinParty(beaconID: PartyBeaconID, completion: @Sendable @escaping (JoinPartyCallback?) -> Void) { + public func joinParty(beaconID: PartyBeaconID, completion: @Sendable @escaping (sending JoinPartyCallback?) -> Void) { let rc = SteamAPI_ISteamParties_JoinParty(interface, PartyBeaconID_t(beaconID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamRemoteStorage.swift b/Sources/Steamworks/Generated/SteamRemoteStorage.swift index 9ff8765c..dda4848b 100644 --- a/Sources/Steamworks/Generated/SteamRemoteStorage.swift +++ b/Sources/Steamworks/Generated/SteamRemoteStorage.swift @@ -25,7 +25,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::CommitPublishedFileUpdate()`, callback - public func commitPublishedFileUpdate(handle: PublishedFileUpdateHandle, completion: @Sendable @escaping (RemoteStorageUpdatePublishedFileResult?) -> Void) { + public func commitPublishedFileUpdate(handle: PublishedFileUpdateHandle, completion: @Sendable @escaping (sending RemoteStorageUpdatePublishedFileResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_CommitPublishedFileUpdate(interface, PublishedFileUpdateHandle_t(handle)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -43,7 +43,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::DeletePublishedFile()`, callback - public func deletePublishedFile(publishedFileId: PublishedFileID, completion: @Sendable @escaping (RemoteStorageDeletePublishedFileResult?) -> Void) { + public func deletePublishedFile(publishedFileId: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageDeletePublishedFileResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_DeletePublishedFile(interface, PublishedFileId_t(publishedFileId)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -61,7 +61,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::EnumeratePublishedFilesByUserAction()`, callback - public func enumeratePublishedFilesByUserAction(action: WorkshopFileAction, startIndex: Int, completion: @Sendable @escaping (RemoteStorageEnumeratePublishedFilesByUserActionResult?) -> Void) { + public func enumeratePublishedFilesByUserAction(action: WorkshopFileAction, startIndex: Int, completion: @Sendable @escaping (sending RemoteStorageEnumeratePublishedFilesByUserActionResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_EnumeratePublishedFilesByUserAction(interface, EWorkshopFileAction(action), uint32(startIndex)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -74,7 +74,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::EnumeratePublishedWorkshopFiles()`, callback - public func enumeratePublishedWorkshopFiles(enumerationType: WorkshopEnumerationType, startIndex: Int, count: Int, days: Int, tags: [String], userTags: [String], completion: @Sendable @escaping (RemoteStorageEnumerateWorkshopFilesResult?) -> Void) { + public func enumeratePublishedWorkshopFiles(enumerationType: WorkshopEnumerationType, startIndex: Int, count: Int, days: Int, tags: [String], userTags: [String], completion: @Sendable @escaping (sending RemoteStorageEnumerateWorkshopFilesResult?) -> Void) { let tmpTags = StringArray(tags) defer { tmpTags.deallocate() } let tmpUserTags = StringArray(userTags) @@ -91,7 +91,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::EnumerateUserPublishedFiles()`, callback - public func enumerateUserPublishedFiles(startIndex: Int, completion: @Sendable @escaping (RemoteStorageEnumerateUserPublishedFilesResult?) -> Void) { + public func enumerateUserPublishedFiles(startIndex: Int, completion: @Sendable @escaping (sending RemoteStorageEnumerateUserPublishedFilesResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_EnumerateUserPublishedFiles(interface, uint32(startIndex)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -104,7 +104,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::EnumerateUserSharedWorkshopFiles()`, callback - public func enumerateUserSharedWorkshopFiles(steamId: SteamID, startIndex: Int, requiredTags: [String], excludedTags: [String], completion: @Sendable @escaping (RemoteStorageEnumerateUserPublishedFilesResult?) -> Void) { + public func enumerateUserSharedWorkshopFiles(steamId: SteamID, startIndex: Int, requiredTags: [String], excludedTags: [String], completion: @Sendable @escaping (sending RemoteStorageEnumerateUserPublishedFilesResult?) -> Void) { let tmpRequiredTags = StringArray(requiredTags) defer { tmpRequiredTags.deallocate() } let tmpExcludedTags = StringArray(excludedTags) @@ -121,7 +121,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::EnumerateUserSubscribedFiles()`, callback - public func enumerateUserSubscribedFiles(startIndex: Int, completion: @Sendable @escaping (RemoteStorageEnumerateUserSubscribedFilesResult?) -> Void) { + public func enumerateUserSubscribedFiles(startIndex: Int, completion: @Sendable @escaping (sending RemoteStorageEnumerateUserSubscribedFilesResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_EnumerateUserSubscribedFiles(interface, uint32(startIndex)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -161,7 +161,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::FileReadAsync()`, callback - public func fileReadAsync(file: String, offset: Int, toReadSize: Int, completion: @Sendable @escaping (RemoteStorageFileReadAsyncComplete?) -> Void) { + public func fileReadAsync(file: String, offset: Int, toReadSize: Int, completion: @Sendable @escaping (sending RemoteStorageFileReadAsyncComplete?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_FileReadAsync(interface, file, uint32(offset), uint32(toReadSize)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -179,7 +179,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::FileShare()`, callback - public func fileShare(file: String, completion: @Sendable @escaping (RemoteStorageFileShareResult?) -> Void) { + public func fileShare(file: String, completion: @Sendable @escaping (sending RemoteStorageFileShareResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_FileShare(interface, file) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -197,7 +197,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::FileWriteAsync()`, callback - public func fileWriteAsync(file: String, data: UnsafeRawPointer, dataSize: Int, completion: @Sendable @escaping (RemoteStorageFileWriteAsyncComplete?) -> Void) { + public func fileWriteAsync(file: String, data: UnsafeRawPointer, dataSize: Int, completion: @Sendable @escaping (sending RemoteStorageFileWriteAsyncComplete?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_FileWriteAsync(interface, file, data, uint32(dataSize)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -276,7 +276,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::GetPublishedFileDetails()`, callback - public func getPublishedFileDetails(publishedFileId: PublishedFileID, maxSecondsOld: Int, completion: @Sendable @escaping (RemoteStorageGetPublishedFileDetailsResult?) -> Void) { + public func getPublishedFileDetails(publishedFileId: PublishedFileID, maxSecondsOld: Int, completion: @Sendable @escaping (sending RemoteStorageGetPublishedFileDetailsResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_GetPublishedFileDetails(interface, PublishedFileId_t(publishedFileId), uint32(maxSecondsOld)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -289,7 +289,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::GetPublishedItemVoteDetails()`, callback - public func getPublishedItemVoteDetails(publishedFileId: PublishedFileID, completion: @Sendable @escaping (RemoteStorageGetPublishedItemVoteDetailsResult?) -> Void) { + public func getPublishedItemVoteDetails(publishedFileId: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageGetPublishedItemVoteDetailsResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_GetPublishedItemVoteDetails(interface, PublishedFileId_t(publishedFileId)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -323,7 +323,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::GetUserPublishedItemVoteDetails()`, callback - public func getUserPublishedItemVoteDetails(publishedFileId: PublishedFileID, completion: @Sendable @escaping (RemoteStorageGetPublishedItemVoteDetailsResult?) -> Void) { + public func getUserPublishedItemVoteDetails(publishedFileId: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageGetPublishedItemVoteDetailsResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_GetUserPublishedItemVoteDetails(interface, PublishedFileId_t(publishedFileId)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -346,7 +346,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::PublishVideo()`, callback - public func publishVideo(videoProvider: WorkshopVideoProvider, videoAccount: String, videoIdentifier: String, previewFile: String, consumerAppId: AppID, title: String, description: String, visibility: RemoteStoragePublishedFileVisibility, tags: [String], completion: @Sendable @escaping (RemoteStoragePublishFileProgress?) -> Void) { + public func publishVideo(videoProvider: WorkshopVideoProvider, videoAccount: String, videoIdentifier: String, previewFile: String, consumerAppId: AppID, title: String, description: String, visibility: RemoteStoragePublishedFileVisibility, tags: [String], completion: @Sendable @escaping (sending RemoteStoragePublishFileProgress?) -> Void) { let tmpTags = StringArray(tags) defer { tmpTags.deallocate() } let rc = SteamAPI_ISteamRemoteStorage_PublishVideo(interface, EWorkshopVideoProvider(videoProvider), videoAccount, videoIdentifier, previewFile, AppId_t(consumerAppId), title, description, ERemoteStoragePublishedFileVisibility(visibility), .init(tmpTags)) @@ -361,7 +361,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::PublishWorkshopFile()`, callback - public func publishWorkshopFile(file: String, previewFile: String, consumerAppId: AppID, title: String, description: String, visibility: RemoteStoragePublishedFileVisibility, tags: [String], workshopFileType: WorkshopFileType, completion: @Sendable @escaping (RemoteStoragePublishFileProgress?) -> Void) { + public func publishWorkshopFile(file: String, previewFile: String, consumerAppId: AppID, title: String, description: String, visibility: RemoteStoragePublishedFileVisibility, tags: [String], workshopFileType: WorkshopFileType, completion: @Sendable @escaping (sending RemoteStoragePublishFileProgress?) -> Void) { let tmpTags = StringArray(tags) defer { tmpTags.deallocate() } let rc = SteamAPI_ISteamRemoteStorage_PublishWorkshopFile(interface, file, previewFile, AppId_t(consumerAppId), title, description, ERemoteStoragePublishedFileVisibility(visibility), .init(tmpTags), EWorkshopFileType(workshopFileType)) @@ -386,7 +386,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::SetUserPublishedFileAction()`, callback - public func setUserPublishedFileAction(publishedFileId: PublishedFileID, action: WorkshopFileAction, completion: @Sendable @escaping (RemoteStorageSetUserPublishedFileActionResult?) -> Void) { + public func setUserPublishedFileAction(publishedFileId: PublishedFileID, action: WorkshopFileAction, completion: @Sendable @escaping (sending RemoteStorageSetUserPublishedFileActionResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_SetUserPublishedFileAction(interface, PublishedFileId_t(publishedFileId), EWorkshopFileAction(action)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -399,7 +399,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::SubscribePublishedFile()`, callback - public func subscribePublishedFile(publishedFileId: PublishedFileID, completion: @Sendable @escaping (RemoteStorageSubscribePublishedFileResult?) -> Void) { + public func subscribePublishedFile(publishedFileId: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageSubscribePublishedFileResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_SubscribePublishedFile(interface, PublishedFileId_t(publishedFileId)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -412,7 +412,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::UGCDownload()`, callback - public func ugcDownload(content: UGCHandle, priority: Int, completion: @Sendable @escaping (RemoteStorageDownloadUGCResult?) -> Void) { + public func ugcDownload(content: UGCHandle, priority: Int, completion: @Sendable @escaping (sending RemoteStorageDownloadUGCResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_UGCDownload(interface, UGCHandle_t(content), uint32(priority)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -425,7 +425,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::UGCDownloadToLocation()`, callback - public func ugcDownloadToLocation(content: UGCHandle, location: String, priority: Int, completion: @Sendable @escaping (RemoteStorageDownloadUGCResult?) -> Void) { + public func ugcDownloadToLocation(content: UGCHandle, location: String, priority: Int, completion: @Sendable @escaping (sending RemoteStorageDownloadUGCResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_UGCDownloadToLocation(interface, UGCHandle_t(content), location, uint32(priority)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -443,7 +443,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::UnsubscribePublishedFile()`, callback - public func unsubscribePublishedFile(publishedFileId: PublishedFileID, completion: @Sendable @escaping (RemoteStorageUnsubscribePublishedFileResult?) -> Void) { + public func unsubscribePublishedFile(publishedFileId: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageUnsubscribePublishedFileResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_UnsubscribePublishedFile(interface, PublishedFileId_t(publishedFileId)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -493,7 +493,7 @@ public struct SteamRemoteStorage: Sendable { } /// Steamworks `ISteamRemoteStorage::UpdateUserPublishedItemVote()`, callback - public func updateUserPublishedItemVote(publishedFileId: PublishedFileID, voteUp: Bool, completion: @Sendable @escaping (RemoteStorageUpdateUserPublishedItemVoteResult?) -> Void) { + public func updateUserPublishedItemVote(publishedFileId: PublishedFileID, voteUp: Bool, completion: @Sendable @escaping (sending RemoteStorageUpdateUserPublishedItemVoteResult?) -> Void) { let rc = SteamAPI_ISteamRemoteStorage_UpdateUserPublishedItemVote(interface, PublishedFileId_t(publishedFileId), voteUp) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamUGC.swift b/Sources/Steamworks/Generated/SteamUGC.swift index 841a17b1..1f631fba 100644 --- a/Sources/Steamworks/Generated/SteamUGC.swift +++ b/Sources/Steamworks/Generated/SteamUGC.swift @@ -22,7 +22,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::AddAppDependency()`, callback - public func addAppDependency(publishedFileID: PublishedFileID, appID: AppID, completion: @Sendable @escaping (AddAppDependencyResult?) -> Void) { + public func addAppDependency(publishedFileID: PublishedFileID, appID: AppID, completion: @Sendable @escaping (sending AddAppDependencyResult?) -> Void) { let rc = SteamAPI_ISteamUGC_AddAppDependency(interface, PublishedFileId_t(publishedFileID), AppId_t(appID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -40,7 +40,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::AddDependency()`, callback - public func addDependency(parentPublishedFileID: PublishedFileID, childPublishedFileID: PublishedFileID, completion: @Sendable @escaping (AddUGCDependencyResult?) -> Void) { + public func addDependency(parentPublishedFileID: PublishedFileID, childPublishedFileID: PublishedFileID, completion: @Sendable @escaping (sending AddUGCDependencyResult?) -> Void) { let rc = SteamAPI_ISteamUGC_AddDependency(interface, PublishedFileId_t(parentPublishedFileID), PublishedFileId_t(childPublishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -77,7 +77,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::AddItemToFavorites()`, callback - public func addItemToFavorites(appId: AppID, publishedFileID: PublishedFileID, completion: @Sendable @escaping (UserFavoriteItemsListChanged?) -> Void) { + public func addItemToFavorites(appId: AppID, publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending UserFavoriteItemsListChanged?) -> Void) { let rc = SteamAPI_ISteamUGC_AddItemToFavorites(interface, AppId_t(appId), PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -115,7 +115,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::CreateItem()`, callback - public func createItem(consumerAppId: AppID, fileType: WorkshopFileType, completion: @Sendable @escaping (CreateItemResult?) -> Void) { + public func createItem(consumerAppId: AppID, fileType: WorkshopFileType, completion: @Sendable @escaping (sending CreateItemResult?) -> Void) { let rc = SteamAPI_ISteamUGC_CreateItem(interface, AppId_t(consumerAppId), EWorkshopFileType(fileType)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -149,7 +149,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::DeleteItem()`, callback - public func deleteItem(publishedFileID: PublishedFileID, completion: @Sendable @escaping (DeleteItemResult?) -> Void) { + public func deleteItem(publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending DeleteItemResult?) -> Void) { let rc = SteamAPI_ISteamUGC_DeleteItem(interface, PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -167,7 +167,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::GetAppDependencies()`, callback - public func getAppDependencies(publishedFileID: PublishedFileID, completion: @Sendable @escaping (GetAppDependenciesResult?) -> Void) { + public func getAppDependencies(publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending GetAppDependenciesResult?) -> Void) { let rc = SteamAPI_ISteamUGC_GetAppDependencies(interface, PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -397,7 +397,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::GetUserItemVote()`, callback - public func getUserItemVote(publishedFileID: PublishedFileID, completion: @Sendable @escaping (GetUserItemVoteResult?) -> Void) { + public func getUserItemVote(publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending GetUserItemVoteResult?) -> Void) { let rc = SteamAPI_ISteamUGC_GetUserItemVote(interface, PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -410,7 +410,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::GetWorkshopEULAStatus()`, callback - public func getWorkshopEULAStatus(completion: @Sendable @escaping (WorkshopEULAStatus?) -> Void) { + public func getWorkshopEULAStatus(completion: @Sendable @escaping (sending WorkshopEULAStatus?) -> Void) { let rc = SteamAPI_ISteamUGC_GetWorkshopEULAStatus(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -434,7 +434,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::RemoveAppDependency()`, callback - public func removeAppDependency(publishedFileID: PublishedFileID, appID: AppID, completion: @Sendable @escaping (RemoveAppDependencyResult?) -> Void) { + public func removeAppDependency(publishedFileID: PublishedFileID, appID: AppID, completion: @Sendable @escaping (sending RemoveAppDependencyResult?) -> Void) { let rc = SteamAPI_ISteamUGC_RemoveAppDependency(interface, PublishedFileId_t(publishedFileID), AppId_t(appID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -452,7 +452,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::RemoveDependency()`, callback - public func removeDependency(parentPublishedFileID: PublishedFileID, childPublishedFileID: PublishedFileID, completion: @Sendable @escaping (RemoveUGCDependencyResult?) -> Void) { + public func removeDependency(parentPublishedFileID: PublishedFileID, childPublishedFileID: PublishedFileID, completion: @Sendable @escaping (sending RemoveUGCDependencyResult?) -> Void) { let rc = SteamAPI_ISteamUGC_RemoveDependency(interface, PublishedFileId_t(parentPublishedFileID), PublishedFileId_t(childPublishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -465,7 +465,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::RemoveItemFromFavorites()`, callback - public func removeItemFromFavorites(appId: AppID, publishedFileID: PublishedFileID, completion: @Sendable @escaping (UserFavoriteItemsListChanged?) -> Void) { + public func removeItemFromFavorites(appId: AppID, publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending UserFavoriteItemsListChanged?) -> Void) { let rc = SteamAPI_ISteamUGC_RemoveItemFromFavorites(interface, AppId_t(appId), PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -490,7 +490,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::RequestUGCDetails()`, callback - public func requestUGCDetails(publishedFileID: PublishedFileID, maxAgeSeconds: Int, completion: @Sendable @escaping (SteamUGCRequestUGCDetailsResult?) -> Void) { + public func requestUGCDetails(publishedFileID: PublishedFileID, maxAgeSeconds: Int, completion: @Sendable @escaping (sending SteamUGCRequestUGCDetailsResult?) -> Void) { let rc = SteamAPI_ISteamUGC_RequestUGCDetails(interface, PublishedFileId_t(publishedFileID), uint32(maxAgeSeconds)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -503,7 +503,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::SendQueryUGCRequest()`, callback - public func sendQueryUGCRequest(handle: UGCQueryHandle, completion: @Sendable @escaping (SteamUGCQueryCompleted?) -> Void) { + public func sendQueryUGCRequest(handle: UGCQueryHandle, completion: @Sendable @escaping (sending SteamUGCQueryCompleted?) -> Void) { let rc = SteamAPI_ISteamUGC_SendQueryUGCRequest(interface, UGCQueryHandle_t(handle)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -675,7 +675,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::SetUserItemVote()`, callback - public func setUserItemVote(publishedFileID: PublishedFileID, voteUp: Bool, completion: @Sendable @escaping (SetUserItemVoteResult?) -> Void) { + public func setUserItemVote(publishedFileID: PublishedFileID, voteUp: Bool, completion: @Sendable @escaping (sending SetUserItemVoteResult?) -> Void) { let rc = SteamAPI_ISteamUGC_SetUserItemVote(interface, PublishedFileId_t(publishedFileID), voteUp) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -698,7 +698,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::StartPlaytimeTracking()`, callback - public func startPlaytimeTracking(publishedFileID: [PublishedFileID], completion: @Sendable @escaping (StartPlaytimeTrackingResult?) -> Void) { + public func startPlaytimeTracking(publishedFileID: [PublishedFileID], completion: @Sendable @escaping (sending StartPlaytimeTrackingResult?) -> Void) { var tmpPublishedFileID = publishedFileID.map { PublishedFileId_t($0) } let rc = SteamAPI_ISteamUGC_StartPlaytimeTracking(interface, &tmpPublishedFileID, uint32(publishedFileID.count)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) @@ -712,7 +712,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::StopPlaytimeTracking()`, callback - public func stopPlaytimeTracking(publishedFileID: [PublishedFileID], completion: @Sendable @escaping (StopPlaytimeTrackingResult?) -> Void) { + public func stopPlaytimeTracking(publishedFileID: [PublishedFileID], completion: @Sendable @escaping (sending StopPlaytimeTrackingResult?) -> Void) { var tmpPublishedFileID = publishedFileID.map { PublishedFileId_t($0) } let rc = SteamAPI_ISteamUGC_StopPlaytimeTracking(interface, &tmpPublishedFileID, uint32(publishedFileID.count)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) @@ -726,7 +726,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::StopPlaytimeTrackingForAllItems()`, callback - public func stopPlaytimeTrackingForAllItems(completion: @Sendable @escaping (StopPlaytimeTrackingResult?) -> Void) { + public func stopPlaytimeTrackingForAllItems(completion: @Sendable @escaping (sending StopPlaytimeTrackingResult?) -> Void) { let rc = SteamAPI_ISteamUGC_StopPlaytimeTrackingForAllItems(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -739,7 +739,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::SubmitItemUpdate()`, callback - public func submitItemUpdate(handle: UGCUpdateHandle, changeNote: String?, completion: @Sendable @escaping (SubmitItemUpdateResult?) -> Void) { + public func submitItemUpdate(handle: UGCUpdateHandle, changeNote: String?, completion: @Sendable @escaping (sending SubmitItemUpdateResult?) -> Void) { let rc = SteamAPI_ISteamUGC_SubmitItemUpdate(interface, UGCUpdateHandle_t(handle), changeNote) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -752,7 +752,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::SubscribeItem()`, callback - public func subscribeItem(publishedFileID: PublishedFileID, completion: @Sendable @escaping (RemoteStorageSubscribePublishedFileResult?) -> Void) { + public func subscribeItem(publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageSubscribePublishedFileResult?) -> Void) { let rc = SteamAPI_ISteamUGC_SubscribeItem(interface, PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -770,7 +770,7 @@ public struct SteamUGC: Sendable { } /// Steamworks `ISteamUGC::UnsubscribeItem()`, callback - public func unsubscribeItem(publishedFileID: PublishedFileID, completion: @Sendable @escaping (RemoteStorageUnsubscribePublishedFileResult?) -> Void) { + public func unsubscribeItem(publishedFileID: PublishedFileID, completion: @Sendable @escaping (sending RemoteStorageUnsubscribePublishedFileResult?) -> Void) { let rc = SteamAPI_ISteamUGC_UnsubscribeItem(interface, PublishedFileId_t(publishedFileID)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamUser.swift b/Sources/Steamworks/Generated/SteamUser.swift index 13c63155..5bb82b1b 100644 --- a/Sources/Steamworks/Generated/SteamUser.swift +++ b/Sources/Steamworks/Generated/SteamUser.swift @@ -108,7 +108,7 @@ public struct SteamUser: Sendable { } /// Steamworks `ISteamUser::GetDurationControl()`, callback - public func getDurationControl(completion: @Sendable @escaping (DurationControl?) -> Void) { + public func getDurationControl(completion: @Sendable @escaping (sending DurationControl?) -> Void) { let rc = SteamAPI_ISteamUser_GetDurationControl(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -141,7 +141,7 @@ public struct SteamUser: Sendable { } /// Steamworks `ISteamUser::GetMarketEligibility()`, callback - public func getMarketEligibility(completion: @Sendable @escaping (MarketEligibilityResponse?) -> Void) { + public func getMarketEligibility(completion: @Sendable @escaping (sending MarketEligibilityResponse?) -> Void) { let rc = SteamAPI_ISteamUser_GetMarketEligibility(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -195,7 +195,7 @@ public struct SteamUser: Sendable { } /// Steamworks `ISteamUser::RequestEncryptedAppTicket()`, callback - public func requestEncryptedAppTicket(dataToInclude: [UInt8], completion: @Sendable @escaping (EncryptedAppTicketResponse?) -> Void) { + public func requestEncryptedAppTicket(dataToInclude: [UInt8], completion: @Sendable @escaping (sending EncryptedAppTicketResponse?) -> Void) { let rc = CSteamAPI_ISteamUser_RequestEncryptedAppTicket(interface, dataToInclude, CInt(dataToInclude.count)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -208,7 +208,7 @@ public struct SteamUser: Sendable { } /// Steamworks `ISteamUser::RequestStoreAuthURL()`, callback - public func requestStoreAuthURL(redirectURL: String, completion: @Sendable @escaping (StoreAuthURLResponse?) -> Void) { + public func requestStoreAuthURL(redirectURL: String, completion: @Sendable @escaping (sending StoreAuthURLResponse?) -> Void) { let rc = SteamAPI_ISteamUser_RequestStoreAuthURL(interface, redirectURL) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/Generated/SteamUserStats.swift b/Sources/Steamworks/Generated/SteamUserStats.swift index 52ceb237..4b8e57c2 100644 --- a/Sources/Steamworks/Generated/SteamUserStats.swift +++ b/Sources/Steamworks/Generated/SteamUserStats.swift @@ -20,7 +20,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::AttachLeaderboardUGC()`, callback - public func attachLeaderboardUGC(steamLeaderboard: SteamLeaderboard, ugc: UGCHandle, completion: @Sendable @escaping (LeaderboardUGCSet?) -> Void) { + public func attachLeaderboardUGC(steamLeaderboard: SteamLeaderboard, ugc: UGCHandle, completion: @Sendable @escaping (sending LeaderboardUGCSet?) -> Void) { let rc = SteamAPI_ISteamUserStats_AttachLeaderboardUGC(interface, SteamLeaderboard_t(steamLeaderboard), UGCHandle_t(ugc)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -38,7 +38,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::DownloadLeaderboardEntries()`, callback - public func downloadLeaderboardEntries(steamLeaderboard: SteamLeaderboard, leaderboardDataRequest: LeaderboardDataRequest, rangeStart: Int, rangeEnd: Int, completion: @Sendable @escaping (LeaderboardScoresDownloaded?) -> Void) { + public func downloadLeaderboardEntries(steamLeaderboard: SteamLeaderboard, leaderboardDataRequest: LeaderboardDataRequest, rangeStart: Int, rangeEnd: Int, completion: @Sendable @escaping (sending LeaderboardScoresDownloaded?) -> Void) { let rc = SteamAPI_ISteamUserStats_DownloadLeaderboardEntries(interface, SteamLeaderboard_t(steamLeaderboard), ELeaderboardDataRequest(leaderboardDataRequest), CInt(rangeStart), CInt(rangeEnd)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -51,7 +51,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::DownloadLeaderboardEntriesForUsers()`, callback - public func downloadLeaderboardEntriesForUsers(steamLeaderboard: SteamLeaderboard, users: [SteamID], completion: @Sendable @escaping (LeaderboardScoresDownloaded?) -> Void) { + public func downloadLeaderboardEntriesForUsers(steamLeaderboard: SteamLeaderboard, users: [SteamID], completion: @Sendable @escaping (sending LeaderboardScoresDownloaded?) -> Void) { var tmpUsers = users.map { CSteamID($0) } let rc = SteamAPI_ISteamUserStats_DownloadLeaderboardEntriesForUsers(interface, SteamLeaderboard_t(steamLeaderboard), &tmpUsers, CInt(users.count)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) @@ -65,7 +65,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::FindLeaderboard()`, callback - public func findLeaderboard(leaderboardName: String, completion: @Sendable @escaping (LeaderboardFindResult?) -> Void) { + public func findLeaderboard(leaderboardName: String, completion: @Sendable @escaping (sending LeaderboardFindResult?) -> Void) { let rc = SteamAPI_ISteamUserStats_FindLeaderboard(interface, leaderboardName) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -78,7 +78,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::FindOrCreateLeaderboard()`, callback - public func findOrCreateLeaderboard(leaderboardName: String, leaderboardSortMethod: LeaderboardSortMethod, leaderboardDisplayType: LeaderboardDisplayType, completion: @Sendable @escaping (LeaderboardFindResult?) -> Void) { + public func findOrCreateLeaderboard(leaderboardName: String, leaderboardSortMethod: LeaderboardSortMethod, leaderboardDisplayType: LeaderboardDisplayType, completion: @Sendable @escaping (sending LeaderboardFindResult?) -> Void) { let rc = SteamAPI_ISteamUserStats_FindOrCreateLeaderboard(interface, leaderboardName, ELeaderboardSortMethod(leaderboardSortMethod), ELeaderboardDisplayType(leaderboardDisplayType)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -245,7 +245,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::GetNumberOfCurrentPlayers()`, callback - public func getNumberOfCurrentPlayers(completion: @Sendable @escaping (NumberOfCurrentPlayers?) -> Void) { + public func getNumberOfCurrentPlayers(completion: @Sendable @escaping (sending NumberOfCurrentPlayers?) -> Void) { let rc = SteamAPI_ISteamUserStats_GetNumberOfCurrentPlayers(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -323,7 +323,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::RequestGlobalAchievementPercentages()`, callback - public func requestGlobalAchievementPercentages(completion: @Sendable @escaping (GlobalAchievementPercentagesReady?) -> Void) { + public func requestGlobalAchievementPercentages(completion: @Sendable @escaping (sending GlobalAchievementPercentagesReady?) -> Void) { let rc = SteamAPI_ISteamUserStats_RequestGlobalAchievementPercentages(interface) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -336,7 +336,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::RequestGlobalStats()`, callback - public func requestGlobalStats(historyDays: Int, completion: @Sendable @escaping (GlobalStatsReceived?) -> Void) { + public func requestGlobalStats(historyDays: Int, completion: @Sendable @escaping (sending GlobalStatsReceived?) -> Void) { let rc = SteamAPI_ISteamUserStats_RequestGlobalStats(interface, CInt(historyDays)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -349,7 +349,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::RequestUserStats()`, callback - public func requestUserStats(user: SteamID, completion: @Sendable @escaping (UserStatsReceived?) -> Void) { + public func requestUserStats(user: SteamID, completion: @Sendable @escaping (sending UserStatsReceived?) -> Void) { let rc = SteamAPI_ISteamUserStats_RequestUserStats(interface, CUnsignedLongLong(user)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } @@ -392,7 +392,7 @@ public struct SteamUserStats: Sendable { } /// Steamworks `ISteamUserStats::UploadLeaderboardScore()`, callback - public func uploadLeaderboardScore(steamLeaderboard: SteamLeaderboard, leaderboardUploadScoreMethod: LeaderboardUploadScoreMethod, score: Int, scoreDetails: [Int], completion: @Sendable @escaping (LeaderboardScoreUploaded?) -> Void) { + public func uploadLeaderboardScore(steamLeaderboard: SteamLeaderboard, leaderboardUploadScoreMethod: LeaderboardUploadScoreMethod, score: Int, scoreDetails: [Int], completion: @Sendable @escaping (sending LeaderboardScoreUploaded?) -> Void) { var tmpScoreDetails = scoreDetails.map { int32($0) } let rc = SteamAPI_ISteamUserStats_UploadLeaderboardScore(interface, SteamLeaderboard_t(steamLeaderboard), ELeaderboardUploadScoreMethod(leaderboardUploadScoreMethod), int32(score), &tmpScoreDetails, CInt(scoreDetails.count)) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) diff --git a/Sources/Steamworks/Generated/SteamUtils.swift b/Sources/Steamworks/Generated/SteamUtils.swift index a603aebc..938f6739 100644 --- a/Sources/Steamworks/Generated/SteamUtils.swift +++ b/Sources/Steamworks/Generated/SteamUtils.swift @@ -27,7 +27,7 @@ public struct SteamUtils: Sendable { } /// Steamworks `ISteamUtils::CheckFileSignature()`, callback - public func checkFileSignature(fileName: String, completion: @Sendable @escaping (CheckFileSignature?) -> Void) { + public func checkFileSignature(fileName: String, completion: @Sendable @escaping (sending CheckFileSignature?) -> Void) { let rc = SteamAPI_ISteamUtils_CheckFileSignature(interface, fileName) SteamBaseAPI.CallResults.shared.add(callID: rc, rawClient: SteamBaseAPI.makeRaw(completion)) } diff --git a/Sources/Steamworks/ManualInterfaces.swift b/Sources/Steamworks/ManualInterfaces.swift index 722490ce..a189849e 100644 --- a/Sources/Steamworks/ManualInterfaces.swift +++ b/Sources/Steamworks/ManualInterfaces.swift @@ -139,8 +139,7 @@ extension SteamNetworkingUtils { public func useLoggerForDebug(detailLevel: SteamNetworkingSocketsDebugOutputType) { SteamAPI_ISteamNetworkingUtils_SetDebugOutputFunction(interface, ESteamNetworkingSocketsDebugOutputType(detailLevel), - // XXX swift 6 - fixed in Beta 3, need CI to update - { networkingUtilsDebugCallback(type: $0, msg: $1) } ) + networkingUtilsDebugCallback) } } diff --git a/Sources/Steamworks/SteamBaseAPI.swift b/Sources/Steamworks/SteamBaseAPI.swift index cf4c8315..688ec916 100644 --- a/Sources/Steamworks/SteamBaseAPI.swift +++ b/Sources/Steamworks/SteamBaseAPI.swift @@ -32,14 +32,14 @@ public class SteamBaseAPI: @unchecked Sendable { typealias RawClient = (UnsafeMutableRawPointer?) -> Void /// Type-eraser for client callback closures, again exposed to other files because of code gen - static func makeRaw(_ client: @escaping (SwiftType) -> Void) - -> RawClient where SwiftType : SteamCreatable, SwiftType.SteamType == SteamType { + static func makeRaw(_ client: @escaping (sending SwiftType) -> Void) + -> RawClient where SwiftType : SteamCreatable, SwiftType.SteamType == SteamType, SwiftType: Sendable { { $0.map { client(SwiftType($0.bindMemory(to: SteamType.self, capacity: 1).pointee)) } } } /// Type-eraser for call-return closures, that can actually fail and need to be signalled back as such - static func makeRaw(_ client: @escaping (Optional) -> Void) - -> RawClient where SwiftType : SteamCreatable, SwiftType.SteamType == SteamType { + static func makeRaw(_ client: @escaping (sending Optional) -> Void) + -> RawClient where SwiftType : SteamCreatable, SwiftType.SteamType == SteamType, SwiftType: Sendable { { client($0.map { SwiftType($0.bindMemory(to: SteamType.self, capacity: 1).pointee) }) } } diff --git a/Tests/SteamworksTests/TestApiSimple.swift b/Tests/SteamworksTests/TestApiSimple.swift index bd7a0d76..52338e13 100644 --- a/Tests/SteamworksTests/TestApiSimple.swift +++ b/Tests/SteamworksTests/TestApiSimple.swift @@ -57,7 +57,7 @@ class TestApiSimple: XCTestCase { print("SteamID = \(steamID)") await withTaskGroup(of: Void.self) { group in - group.addTask { @MainActor in + group.addTask { @Sendable @MainActor in MainActor.assertIsolated() if let res = await steam.friends.getFollowerCount(steamID: steamID), @@ -75,6 +75,8 @@ class TestApiSimple: XCTestCase { // This ends up running frames on the main actor await TestClient.runFramesAsync() } + + await group.waitForAll() } }