17 lines
439 B
C#
17 lines
439 B
C#
using MauMau_Server.Websockets;
|
|
|
|
namespace MauMau_Server.Mau;
|
|
|
|
public class Player
|
|
{
|
|
public ConnectionInstance Connection { get; set; }
|
|
public PlayerState State { get; set; } = PlayerState.WAIT;
|
|
public List<Card> Hand { get; set; } = new();
|
|
|
|
public Player(ConnectionInstance connection)
|
|
{
|
|
Connection = connection;
|
|
}
|
|
|
|
public bool IsMe(string playerId) => Connection.ConnectionId == playerId;
|
|
} |