20 lines
482 B
C#
20 lines
482 B
C#
using System.Net.WebSockets;
|
|
|
|
namespace MauMau_Server.Mau;
|
|
|
|
public class Player
|
|
{
|
|
public string Name { get; set; }
|
|
public string PlayerId { get; set; }
|
|
public WebSocket Socket { get; set; }
|
|
public List<Card> Hand { get; set; } = new();
|
|
|
|
public Player(string name, string playerId, WebSocket socket)
|
|
{
|
|
Name = name;
|
|
PlayerId = playerId;
|
|
Socket = socket;
|
|
}
|
|
|
|
public bool IsMe(string playerId) => PlayerId == playerId;
|
|
} |