public bool SetAutoCell(int x, int y, TileCell cell) { if (IsValidPoint(x, y) == false) { return false; } mLayoutMap[x][y] = (TileCell)cell.Clone(); mLayoutMap[x][y].TextureSource.IsAutotile = true; // Make sure we never loose the spot information! mLayoutMap[x][y].X = x; mLayoutMap[x][y].Y = y; return true; }
public UndoAction(int layer, TileCell to, TileCell from, Point p) { LayerID = layer; CellTo = (TileCell)to.Clone(); CellFrom = (TileCell)from.Clone(); Point = p; }
public TileLayer(TileCell[][] existingMap) { mLayoutMap = (TileCell[][])existingMap.Clone(); }