SoletekForce/Pathfinding/PathRoute.cs
/// <summary>
/// Enumerates through all nodes in the route from end to start 
/// and yields them casted as TCellType
/// </summary>
Enumerates through all nodes in the route from end to start
and yields them casted as TCellType
Enumerates through all nodes in the route from end to start and yields them casted as TCellType
public IEnumerable<TCellType> Nodes<TCellType>()
			where TCellType : IPathfindNode
		{
			foreach (var node in route)
			{
				yield return (TCellType)(node.Host);
			}
		}
public IEnumerable < TCellType > Nodes < TCellType > ( ) where TCellType : IPathfindNode { foreach ( var node in route ) { yield return ( TCellType ) ( node . Host ) ; } }
Enumerates through all nodes in the route from end to start
and yields them casted as TCellType
Enumerates through all nodes in the route from end to start and yields them casted as TCellType