Unstable v0.15.17.0 (Hex is out of town edition)
This commit is contained in:
@@ -166,9 +166,9 @@ namespace Steamworks
|
||||
public static async Task<Lobby?> CreateLobbyAsync( int maxMembers = 100 )
|
||||
{
|
||||
var lobby = await Internal.CreateLobby( LobbyType.Invisible, maxMembers );
|
||||
if ( !lobby.HasValue || lobby.Value.Result != Result.OK ) return null;
|
||||
if ( !lobby.HasValue ) { return null; }
|
||||
|
||||
return new Lobby { Id = lobby.Value.SteamIDLobby };
|
||||
return new Lobby { Id = lobby.Value.SteamIDLobby, Result = lobby.Value.Result };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,11 +8,13 @@ namespace Steamworks.Data
|
||||
public struct Lobby
|
||||
{
|
||||
public SteamId Id { get; internal set; }
|
||||
public Result Result { get; internal set; }
|
||||
|
||||
|
||||
public Lobby( SteamId id )
|
||||
{
|
||||
Id = id;
|
||||
Result = Result.OK;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user