LobbyServer/LobbyServerDto/LobbyCreate.cs

20 lines
586 B
C#

using System.ComponentModel.DataAnnotations;
namespace LobbyServerDto
{
[LobbyMessage]
public partial class LobbyCreate
{
public Guid GameId { get; set; }
[MaxLength(64)]
public string Name { get; set; } = string.Empty;
public int GameMode { get; set; }
public int PlayerCount { get; set; }
public int MaxPlayerCount { get; set; }
[MaxLength(26)]
public byte[]? PasswordHash { get; set; }
[MaxLength(32)]
public string? HostIp { get; set; }
public int HostPort { get; set; }
}
}