using System.ComponentModel.DataAnnotations;
namespace LobbyServerDto
{
///
/// Create a lobby in the lobby list. The lobby will stay until either closed by the host or the host disconnects
///
/// A host can always have only one open lobby, if another lobby is already opened by the client it will be closed
[LobbyMessage]
public partial class LobbyCreate
{
///
/// Game Id for which game this lobby is for
///
public Guid GameId { get; set; }
///
/// Display name of the lobby
///
[MaxLength(64)]
public string Name { get; set; } = string.Empty;
///
/// Game mode of lobby
///
public int GameMode { get; set; }
///
/// How many players are in the lobby
///
public int PlayerCount { get; set; }
///
/// Maximum players allowed in the lobby
///
public int MaxPlayerCount { get; set; }
///
/// The hash of a password to protect the lobby. Only users with the password can request host information/nat punch.
///
[MaxLength(26)]
public byte[]? PasswordHash { get; set; }
///
/// The hosts ip. Used the the host information send to clients on their request.
///
[MaxLength(32)]
public string? HostIp { get; set; }
///
/// The hosts port. Used the the host information send to clients on their request.
///
public int HostPort { get; set; }
}
}