Facepunch / Facepunch.Steamworks

Another fucking c# Steamworks implementation
MIT License
2.9k stars 347 forks source link

Can't find equivalent callback #649

Open GoncaloRod opened 2 years ago

GoncaloRod commented 2 years ago

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.

Justusvh commented 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}");
    }