From d2e4417ef2207fbc0b326ed9ce5e5321b27854e2 Mon Sep 17 00:00:00 2001 From: thesupersoup <40295603+thesupersoup@users.noreply.github.com> Date: Sun, 30 Jun 2019 03:23:08 -0700 Subject: [PATCH] Added OnLobbyCreated Added OnLobbyCreated action and handler for associated LobbyCreated_t event --- Facepunch.Steamworks/SteamMatchmaking.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Facepunch.Steamworks/SteamMatchmaking.cs b/Facepunch.Steamworks/SteamMatchmaking.cs index 1afc770..2f3a4d6 100644 --- a/Facepunch.Steamworks/SteamMatchmaking.cs +++ b/Facepunch.Steamworks/SteamMatchmaking.cs @@ -45,6 +45,8 @@ namespace Steamworks LobbyEnter_t.Install( x => OnLobbyEntered?.Invoke( new Lobby( x.SteamIDLobby ) ) ); + LobbyCreated_t.Install( x => OnLobbyCreated?.Invoke( x.Result, new Lobby( x.SteamIDLobby ) ) ); + LobbyGameCreated_t.Install( x => OnLobbyGameCreated?.Invoke( new Lobby( x.SteamIDLobby ), x.IP, x.Port, x.SteamIDGameServer ) ); LobbyDataUpdate_t.Install( x => @@ -105,6 +107,11 @@ namespace Steamworks /// public static event Action OnLobbyEntered; + /// + /// You created a lobby + /// + public static event Action OnLobbyCreated; + /// /// A game server has been associated with the lobby ///