Files
Shogi/Shogi.Contracts/Socket/PlayerHasMovedMessage.cs
2023-02-01 22:49:28 -06:00

21 lines
488 B
C#

using Shogi.Contracts.Types;
namespace Shogi.Contracts.Socket;
public class PlayerHasMovedMessage : ISocketMessage
{
public SocketAction Action { get; }
public string SessionName { get; set; }
/// <summary>
/// The player that made the move.
/// </summary>
public string PlayerName { get; set; }
public PlayerHasMovedMessage()
{
Action = SocketAction.PieceMoved;
SessionName = string.Empty;
PlayerName = string.Empty;
}
}