LobbyServer/LobbyServerDto/LobbyInfo.cs

35 lines
1.0 KiB
C#

namespace LobbyServerDto
{
/// <summary>
/// Send when a lobby is created or updates, this contains the lobby information
/// </summary>
[LobbyMessage]
public partial class LobbyInfo
{
/// <summary>
/// Id of the lobby
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Displayname of the lobby
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Game mode of the lobby
/// </summary>
public int GameMode { get; set; }
/// <summary>
/// Count of currently joined players in the lobby
/// </summary>
public int PlayerCount { get; set; }
/// <summary>
/// Max players allowed in the lobby
/// </summary>
public int MaxPlayerCount { get; set; }
/// <summary>
/// True if the lobby requires a password to gain access
/// </summary>
public bool PasswordProtected { get; set; }
}
}