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