Players can rejoin when refreshing window, changed Name to UserName

This commit is contained in:
Martin Berg Alstad
2023-07-19 16:03:43 +02:00
parent 01757f825e
commit 767189821d
14 changed files with 64 additions and 38 deletions

View File

@ -8,7 +8,7 @@ internal static class Players
internal static IPlayer Create(string colour) =>
new Player
{
Name = colour,
UserName = colour,
Colour = colour,
PacMan = CreatePacMan(colour),
Box = CreateBox(colour)
@ -33,7 +33,7 @@ internal static class Players
{
Box = player.Box,
Colour = player.Colour,
Name = player.Name,
UserName = player.UserName,
PacMan = player.PacMan
};
}