void BaseStampOffsetsAt(int idx)
{
Map m = (Map)target;
int ny = idx/(int)m.size.x;
int nx = idx-(ny*(int)m.size.x);
/* int nz = tiles[idx].z;*/
int nz = editZ;
m.SetTileInvisible(nx, ny, nz, makeInvisibleTiles);
m.InsetSidesOfTile(nx, ny, nz, sideInsets[(int)Neighbors.FrontRightIdx], Neighbors.FrontRight);
m.InsetSidesOfTile(nx, ny, nz, sideInsets[(int)Neighbors.FrontLeftIdx ], Neighbors.FrontLeft );
m.InsetSidesOfTile(nx, ny, nz, sideInsets[(int)Neighbors.BackRightIdx ], Neighbors.BackRight );
m.InsetSidesOfTile(nx, ny, nz, sideInsets[(int)Neighbors.BackLeftIdx ], Neighbors.BackLeft );
m.InsetSidesOfTile(nx, ny, nz, sideInsets[(int)Neighbors.BottomIdx ], Neighbors.Bottom );
m.InsetSidesOfTile(nx, ny, nz, sideInsets[(int)Neighbors.TopIdx ], Neighbors.Top );
m.InsetCornerOfTile(nx, ny, nz, cornerInsets[(int)Corners.Left ], Corners.Left );
m.InsetCornerOfTile(nx, ny, nz, cornerInsets[(int)Corners.Front], Corners.Front);
m.InsetCornerOfTile(nx, ny, nz, cornerInsets[(int)Corners.Right], Corners.Right);
m.InsetCornerOfTile(nx, ny, nz, cornerInsets[(int)Corners.Back ], Corners.Back );
}