public static ClientToServerMessage MovePieceMessage(PieceMove move) { ClientToServerMessage message = new ClientToServerMessage(ClientToServerMessageType.MovePiece); message.Move = move; return message; }
public static ServerToClientMessage PieceMovedMessage(PieceMove move) { ServerToClientMessage message = new ServerToClientMessage(ServerToClientMessageType.PieceMoved); message.Move = move; return message; }