private static ActionName Convert(Models.PathType pathType) { return(pathType switch { Models.PathType.West => ActionName.MoveWest, Models.PathType.East => ActionName.MoveEast, Models.PathType.North => ActionName.MoveNorth, Models.PathType.South => ActionName.MoveSouth, _ => throw new ArgumentOutOfRangeException(nameof(pathType), pathType, null) });
private static PathType Convert(Models.PathType pathType) { return(pathType switch { Models.PathType.West => PathType.West, Models.PathType.East => PathType.East, Models.PathType.North => PathType.North, Models.PathType.South => PathType.South, Models.PathType.Portal => PathType.Portal, _ => throw new ArgumentOutOfRangeException(nameof(pathType), pathType, null) });