Exemplo n.º 1
0
 public UndoMapRemove(MapEditor Editor, MapProject Project, int MapIndex)
 {
     _MapEditor  = Editor;
     _MapIndex   = MapIndex;
     _MapProject = Project;
     _RemovedMap = _MapProject.Maps[_MapIndex];
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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];
                }
            }
        }