Files
MauMau-Server/Mau/Player.cs
2023-04-22 12:42:02 +02:00

17 lines
405 B
C#

using System.Net.WebSockets;
using MauMau_Server.Websockets;
namespace MauMau_Server.Mau;
public class Player
{
public ConnectionInstance Connection { get; set; }
public List<Card> Hand { get; set; } = new();
public Player(ConnectionInstance connection)
{
Connection = connection;
}
public bool IsMe(string playerId) => Connection.ConnectionId == playerId;
}