Added OnLobbyCreated

Added OnLobbyCreated action and handler for associated LobbyCreated_t event
This commit is contained in:
thesupersoup 2019-06-30 03:23:08 -07:00
parent 17434b2910
commit d2e4417ef2

View File

@ -45,6 +45,8 @@ namespace Steamworks
LobbyEnter_t.Install( x => OnLobbyEntered?.Invoke( new Lobby( x.SteamIDLobby ) ) ); 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 ) ); LobbyGameCreated_t.Install( x => OnLobbyGameCreated?.Invoke( new Lobby( x.SteamIDLobby ), x.IP, x.Port, x.SteamIDGameServer ) );
LobbyDataUpdate_t.Install( x => LobbyDataUpdate_t.Install( x =>
@ -105,6 +107,11 @@ namespace Steamworks
/// </summary> /// </summary>
public static event Action<Lobby> OnLobbyEntered; public static event Action<Lobby> OnLobbyEntered;
/// <summary>
/// You created a lobby
/// </summary>
public static event Action<Result, Lobby> OnLobbyCreated;
/// <summary> /// <summary>
/// A game server has been associated with the lobby /// A game server has been associated with the lobby
/// </summary> /// </summary>