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