restructure

This commit is contained in:
2023-03-21 09:41:48 +01:00
parent b7483d56a9
commit 1e4b69f83a
15 changed files with 3 additions and 3 deletions

20
Mau/Player.cs Normal file
View File

@@ -0,0 +1,20 @@
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;
}