mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 21:41:19 +03:00
Added OnLobbyCreated
Added OnLobbyCreated action and handler for associated LobbyCreated_t event
This commit is contained in:
parent
17434b2910
commit
d2e4417ef2
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user