TiledMapper.Tile.IsPath C# (CSharp) Method

IsPath() public method

public IsPath ( int dir ) : bool
dir int
return bool
        public bool IsPath(int dir)
        {
            return neighbours[dir] != null && neighbours[dir].Filled && !GetBlock(dir);
        }

Usage Example

Exemplo n.º 1
0
 private int test2(Tile tile, int dir1, int dir2, int value)
 {
     if (!tile.IsPath(dir1) || !tile.IsPath(dir2)) return value;
     if (!tile.GetNeighbour(dir1).IsPath(dir2)) return value;
     if (!tile.GetNeighbour(dir2).IsPath(dir1)) return value;
     return 0;
 }
All Usage Examples Of TiledMapper.Tile::IsPath