Ejemplo n.º 1
0
        private void HandleClick()
        {
            Room r = MapEditor.Instance.State.SelectedRoom;

            switch (ToolManager.SelectedLayer)
            {
            case ToolLayer.Background:
                Action = new TileBrushAction(r, ToolLayer.Background, ToolManager.BGTileset, MapEditor.Instance.State.TilePointer);
                break;

            case ToolLayer.Foreground:
                Action = new TileBrushAction(r, ToolLayer.Foreground, ToolManager.FGTileset, MapEditor.Instance.State.TilePointer);
                break;
            }

            MapEditor.Instance.State.Apply(Action);
        }
Ejemplo n.º 2
0
 private void HandleUnclick()
 {
     Action = null;
 }