Unstable v0.15.17.0 (Hex is out of town edition)

This commit is contained in:
Juan Pablo Arce
2021-12-03 13:31:10 -03:00
parent cd5c8f3e13
commit 617d9ede88
245 changed files with 8088 additions and 5842 deletions
@@ -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>