Skip to content

Commit

Permalink
Update docs, add LobbyEnter_t as callback
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfairh committed Nov 26, 2024
1 parent 6d9240a commit 8e1f822
Show file tree
Hide file tree
Showing 473 changed files with 54,751 additions and 7,372 deletions.
6 changes: 3 additions & 3 deletions .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ build_tool_arguments:
- "-I${PWD}/sdk/public"
- "-Xlinker"
- "-lc++"
title: Steamworks v1.0.0
module_version: 1.0.0
title: Steamworks v1.1.0
module_version: 1.1.0
topic_style: source-order-defs
hide_coverage: true
undocumented_text: ""
Expand Down Expand Up @@ -289,7 +289,6 @@ custom_groups:
children:
- GameServerItem
- LobbyCreated
- LobbyEnter
- LobbyMatchList
- ServerNetAdr
- name: Callbacks
Expand All @@ -299,6 +298,7 @@ custom_groups:
- LobbyChatMsg
- LobbyChatUpdate
- LobbyDataUpdate
- LobbyEnter
- LobbyGameCreated
- LobbyInvite
- LobbyKicked
Expand Down
2 changes: 2 additions & 0 deletions DocIndex/docc-steambase-callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
- ``onLobbyChatMsg(_:)``
- ``onLobbyChatUpdate(_:)``
- ``onLobbyDataUpdate(_:)``
- ``onLobbyEnter(_:)``
- ``onLobbyGameCreated(_:)``
- ``onLobbyInvite(_:)``
- ``onLobbyKicked(_:)``
Expand Down Expand Up @@ -216,6 +217,7 @@
- ``lobbyChatMsg``
- ``lobbyChatUpdate``
- ``lobbyDataUpdate``
- ``lobbyEnter``
- ``lobbyGameCreated``
- ``lobbyInvite``
- ``lobbyKicked``
Expand Down
2 changes: 1 addition & 1 deletion DocIndex/jazzy-custom-groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@
children:
- GameServerItem
- LobbyCreated
- LobbyEnter
- LobbyMatchList
- ServerNetAdr
- name: Callbacks
Expand All @@ -268,6 +267,7 @@
- LobbyChatMsg
- LobbyChatUpdate
- LobbyDataUpdate
- LobbyEnter
- LobbyGameCreated
- LobbyInvite
- LobbyKicked
Expand Down
1 change: 1 addition & 0 deletions Sources/LibGenerate/Callbacks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct Callbacks {
}
if let cb = method.callback {
explicitCallbacks.insert(cb)
print("Add ExCB: \(cb)")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/LibGenerate/Resources/EXPECTED_SDK
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.60
1.61
2 changes: 2 additions & 0 deletions Sources/LibGenerate/Resources/steam_api_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ methods:
type: RTime32
unFlags:
type: EFavoriteFlags
SteamAPI_ISteamMatchmaking_CreateLobby:
callback: LobbyEnter_t
SteamAPI_ISteamMatchmaking_DeleteLobbyData:
discardable_result: true
SteamAPI_ISteamMatchmaking_GetFavoriteGame:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
### Structures
- ``GameServerItem``
- ``LobbyCreated``
- ``LobbyEnter``
- ``LobbyMatchList``
- ``ServerNetAdr``

Expand All @@ -28,6 +27,7 @@
- ``LobbyChatMsg``
- ``LobbyChatUpdate``
- ``LobbyDataUpdate``
- ``LobbyEnter``
- ``LobbyGameCreated``
- ``LobbyInvite``
- ``LobbyKicked``
Expand Down
10 changes: 10 additions & 0 deletions Sources/Steamworks/Generated/SteamBaseAPI+Callbacks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ public extension SteamBaseAPI {
callbacks.add(callbackID: CallbackID(505), rawClient: SteamBaseAPI.makeRaw(client))
}

/// Registration for Steamworks `LobbyEnter_t` callback
func onLobbyEnter(_ client: @Sendable @escaping (sending LobbyEnter) -> Void) {
callbacks.add(callbackID: CallbackID(504), rawClient: SteamBaseAPI.makeRaw(client))
}

/// Registration for Steamworks `LobbyGameCreated_t` callback
func onLobbyGameCreated(_ client: @Sendable @escaping (sending LobbyGameCreated) -> Void) {
callbacks.add(callbackID: CallbackID(509), rawClient: SteamBaseAPI.makeRaw(client))
Expand Down Expand Up @@ -1090,6 +1095,11 @@ public extension SteamBaseAPI {
AsyncStream { onLobbyDataUpdate($0.yield0) }
}

/// Async stream of Steamworks `LobbyEnter_t` callbacks
var lobbyEnter: AsyncStream<LobbyEnter> {
AsyncStream { onLobbyEnter($0.yield0) }
}

/// Async stream of Steamworks `LobbyGameCreated_t` callbacks
var lobbyGameCreated: AsyncStream<LobbyGameCreated> {
AsyncStream { onLobbyGameCreated($0.yield0) }
Expand Down
61 changes: 53 additions & 8 deletions docs/api-clients.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/fw2020.css">


<title>API Clients - Steamworks v1.0.0</title>
<title>API Clients - Steamworks v1.1.0</title>

</head>
<body class="j2-swift " data-root-path="./" data-doc-path="api-clients.html" data-assets-path="">
Expand All @@ -31,7 +31,7 @@

<a href="index.html">

Steamworks v1.0.0</a>
Steamworks v1.1.0</a>
</div>


Expand Down Expand Up @@ -3124,6 +3124,15 @@



</li>

<li>


<a class="j2-nav-item" href="steamworks/types/timelineeventhandle.html?swift">TimelineEventHandle</a>



</li>

<li>
Expand All @@ -3142,6 +3151,24 @@



</li>

<li>


<a class="j2-nav-item" href="steamworks/types/steamtimelineeventrecordingexists.html?swift">SteamTimelineEventRecordingExists</a>



</li>

<li>


<a class="j2-nav-item" href="steamworks/types/steamtimelinegamephaserecordingexists.html?swift">SteamTimelineGamePhaseRecordingExists</a>



</li>

</ul>
Expand Down Expand Up @@ -3765,7 +3792,7 @@
<li>


<a class="j2-nav-item" href="steamworks/types/ps3trophiesinstalled1.html?swift">PS3TrophiesInstalled</a>
<a class="j2-nav-item" href="steamworks/types/userstatsreceived.html?swift">UserStatsReceived</a>



Expand All @@ -3774,7 +3801,7 @@
<li>


<a class="j2-nav-item" href="steamworks/types/userachievementiconfetched1.html?swift">UserAchievementIconFetched</a>
<a class="j2-nav-item" href="steamworks/types/ps3trophiesinstalled1.html?swift">PS3TrophiesInstalled</a>



Expand All @@ -3783,7 +3810,7 @@
<li>


<a class="j2-nav-item" href="steamworks/types/userachievementstored1.html?swift">UserAchievementStored</a>
<a class="j2-nav-item" href="steamworks/types/userachievementiconfetched1.html?swift">UserAchievementIconFetched</a>



Expand All @@ -3792,7 +3819,7 @@
<li>


<a class="j2-nav-item" href="steamworks/types/userstatsreceived1.html?swift">UserStatsReceived</a>
<a class="j2-nav-item" href="steamworks/types/userachievementstored1.html?swift">UserAchievementStored</a>



Expand Down Expand Up @@ -3995,6 +4022,24 @@



</li>

<li>


<a class="j2-nav-item" href="steamworks/types/broadcastuploadstart1.html?swift">BroadcastUploadStart</a>



</li>

<li>


<a class="j2-nav-item" href="steamworks/types/broadcastuploadstop1.html?swift">BroadcastUploadStop</a>



</li>

<li>
Expand Down Expand Up @@ -4787,7 +4832,7 @@ <h4 class="visually-hidden">class SteamExecutor</h4>

<p>An executor for associating actors with Steamworks</p>
<p><strong>EXPERIMENTAL</strong></p>
<p>This creates a single new thread to run <code>Actor</code>/<code>Task</code> code and periodically
<p>This creates a single new thread to run <code>Actor</code>/<a href="https://developer.apple.com/documentation/swift/task?language=swift" class="j2-swift"><code>Task</code></a><a href="https://developer.apple.com/documentation/swift/task?language=objc" class="j2-objc j2-secondary"><code>Task</code></a> code and periodically
call Steamworks – either to dispatch callbacks or do Steamworks maintenance work.</p>
<p>A single executor thread can support multiple <a href="steamworksconcurrency/types/steamexecutor/apiclient.html?swift"><code>APIClient</code></a>s so you can service a
gameserver and client API from the same thread.</p>
Expand Down Expand Up @@ -4926,7 +4971,7 @@ <h6 class="j2-inline-heading">Actions</h6>
<div class="col j2-footer small pt-2">
<p>Distributed under the MIT license. Maintained by <a href="mailto:johnfairh@gmail.com">John Fairhurst</a>.</p>

<p>Generated by <a class="link" href="https://github.com/johnfairh/Bebop" target="_blank" rel="external noopener">Bebop v1.11.0</a> using the FW2020 theme, based on technology from <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫</a>.</p>
<p>Generated by <a class="link" href="https://github.com/johnfairh/Bebop" target="_blank" rel="external noopener">Bebop v1.12.0</a> using the FW2020 theme, based on technology from <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external noopener">jazzy ♪♫</a>.</p>

</div>
</footer>
Expand Down
Loading

0 comments on commit 8e1f822

Please sign in to comment.