17 lines
405 B
C#
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;
|
|
} |