Open GoncaloRod opened 2 years ago
void InitialiseUniversalCallbacks()
{
SteamFriends.OnGameLobbyJoinRequested += OnGameLobbyJoinRequestedCallback;
SteamMatchmaking.OnLobbyEntered += OnLobbyEnteredCallback;
SteamMatchmaking.OnLobbyMemberJoined += OnLobbyMemberJoinedCallback;
SteamMatchmaking.OnLobbyMemberLeave += OnLobbyMemberLeaveCallback;
SteamMatchmaking.OnLobbyMemberDisconnected += OnLobbyMemberDisconnectedCallback;
SteamMatchmaking.OnChatMessage += OnChatMessageCallback;
}
Here's a list of the callbacks I use top one is the one your looking for. links into:
private void OnGameLobbyJoinRequestedCallback(Lobby _lobby, SteamId _steamId)
{
SteamMatchmaking.JoinLobbyAsync(_lobby.Id);
Log($"Joining Lobby {_lobby.Id}");
}
I'm porting my game from Steamworks.NET to Facepunch.Steamworkds but I can't find the equivalent callback to
GameLobbyJoinRequested_t
. If I understood it correctly, that is the callback that is responsible for accepting a player that wants to join the lobby so when I send the invite to the other player and he pressed the join button nothing happens.