protected void attachTile(Tile tile, int fromDir) { neighbours[fromDir] = tile; }
public Tile AttachToTile(Tile tile, int fromDir) { tile.attachTile(this, fromDir); neighbours[(fromDir + 2) % 4] = tile; blocks[(fromDir + 2) % 4] = tile.GetBlock(fromDir); return(this); }