started working on player moves.

This commit is contained in:
2022-11-09 18:50:51 -06:00
parent da76917490
commit f7f752b694
13 changed files with 232 additions and 271 deletions

View File

@@ -2,16 +2,16 @@
namespace Shogi.Contracts.Socket;
public class MoveResponse : ISocketResponse
public class PlayerHasMovedMessage : ISocketResponse
{
public SocketAction Action { get; }
public string SessionName { get; set; } = string.Empty;
public string SessionName { get; set; }
/// <summary>
/// The player that made the move.
/// </summary>
public string PlayerName { get; set; } = string.Empty;
public string PlayerName { get; set; }
public MoveResponse()
public PlayerHasMovedMessage()
{
Action = SocketAction.PieceMoved;
}