LobbyServer/LobbyServer/Lobby.cs

33 lines
889 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace LobbyServer
{
internal class Lobby
{
internal enum LobbyUpdateType
{
Add,
Update,
Delete
};
public Guid Id { get; set; } = Guid.NewGuid();
public Guid GameId { get; set; }
public int HostClientId { get; set; }
public required string Name { get; set; }
public int GameMode { get; set; }
public int PlayerCount { get; set; }
public int MaxPlayerCount { get; set; }
public byte[]? PasswordHash { get; set; }
public byte[]? PasswordSalt { get; set; }
public required IPAddress[] HostIps { get; set; }
public int HostPort { get; set; }
public int HostTryPort { get; set; }
}
}