public bool CanModuleBePlaced(WfcCell <TileInfo2D, Position2D> currentCell, WfcSpace <TileInfo2D, Position2D> wfcSpace) { foreach (var neighbor in wfcSpace.GetNeighbors(currentCell)) { if (!CanConnectToAnyNeighborTile(currentCell, neighbor)) { return(false); } } return(true); }
public bool CanModuleBePlaced(WfcCell <WfcGraphTile <TTileData>, int> currentCell, WfcSpace <WfcGraphTile <TTileData>, int> wfcSpace) { return(_canModuleBePlacedFunction.Invoke(this, currentCell, wfcSpace)); }