squash a bunch of commits

This commit is contained in:
2022-10-30 12:03:16 -05:00
parent 09b72c1858
commit 93027e8c57
222 changed files with 6157 additions and 3201 deletions

View File

@@ -0,0 +1,13 @@
using Shogi.Contracts.Types;
namespace Shogi.Contracts.Socket;
public class SessionCreatedSocketMessage : ISocketResponse
{
public SocketAction Action { get; }
public SessionCreatedSocketMessage()
{
Action = SocketAction.SessionCreated;
}
}

View File

@@ -0,0 +1,9 @@
using Shogi.Contracts.Types;
namespace Shogi.Contracts.Socket
{
public interface ISocketRequest
{
SocketAction Action { get; }
}
}

View File

@@ -0,0 +1,13 @@
using Shogi.Contracts.Types;
namespace Shogi.Contracts.Socket;
public interface ISocketResponse
{
SocketAction Action { get; }
}
public class SocketResponse : ISocketResponse
{
public SocketAction Action { get; set; }
}

View File

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