Example #1
0
		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;
		}
Example #2
0
		public UndoAction(int layer, TileCell to, TileCell from, Point p) {
			LayerID = layer;
			CellTo = (TileCell)to.Clone();
			CellFrom = (TileCell)from.Clone();
			Point = p;
		}
Example #3
0
		public TileLayer(TileCell[][] existingMap) {
			mLayoutMap = (TileCell[][])existingMap.Clone();
		}