Ejemplo n.º 1
0
    private void SetMap(int index)
    {
        if (index < _tilerMaps.Count && index > -1)
        {
            TilerMap = _tilerMaps[index];

            DrawTool.SetBrush(new NormalBrush(TilerMap.TileResolution, TileTexture.None));

            _mapIndex = index;
        }
        else
        {
            _mapIndex = -1;
            TilerMap  = null;
        }

        TilerMapEditFunctions = new TilerMapEdit(TilerMap);
    }
Ejemplo n.º 2
0
    private void SetMap(int index)
    {
        if (index < _tilerMaps.Count && index > -1)
        {
            TilerMap = _tilerMaps[index];

            DrawTool.SetBrush(new NormalBrush(TilerMap.TileResolution, TileTexture.None));

            _mapIndex = index;
        }
        else
        {
            _mapIndex = -1;
            TilerMap = null;
        }

        TilerMapEditFunctions = new TilerMapEdit(TilerMap);
    }
Ejemplo n.º 3
0
 public UndoPaint(TilerMapEdit me)
 {
     _me = me;
 }
Ejemplo n.º 4
0
 public UndoPaint(TilerMapEdit me)
 {
     _me = me;
 }