Files
MauMau-Server/Mau/Player.cs
DTieman 56034b921f
All checks were successful
Build Mau & Deploy Mau / build (push) Successful in 1m14s
Build Mau & Deploy Mau / deploy (push) Has been skipped
Added the ability to choose your cardtype when playing a jack or the newly added joker
2024-04-19 22:10:21 +02:00

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;
}