public UndoMapRemove(MapEditor Editor, MapProject Project, int MapIndex) { _MapEditor = Editor; _MapIndex = MapIndex; _MapProject = Project; _RemovedMap = _MapProject.Maps[_MapIndex]; }
public UndoMapValueChange(MapEditor Editor, MapProject.Map Map) { MapEditor = Editor; AffectedMap = Map; AlternativeColor1 = Map.AlternativeMultiColor1; AlternativeColor2 = Map.AlternativeMultiColor2; AlternativeBGColor = Map.AlternativeBackgroundColor; AlternativeBGColor4 = Map.AlternativeBGColor4; ExtraData = Map.ExtraDataText; Name = Map.Name; TileSpacingX = Map.TileSpacingX; TileSpacingY = Map.TileSpacingY; AlternativeMode = Map.AlternativeMode; }
public UndoMapSizeChange(MapEditor Editor, MapProject.Map Map, int Width, int Height) { this.Width = Width; this.Height = Height; MapEditor = Editor; AffectedMap = Map; ChangedData.Resize(Width, Height); for (int i = 0; i < Width; ++i) { for (int j = 0; j < Height; ++j) { ChangedData[i, j] = Map.Tiles[i, j]; } } }