Beispiel #1
0
    protected bool BrushAllowsBlockSelection(MapSegmentBrushType type)
    {
        if (type == MapSegmentBrushType.Single)
        {
            return(true);
        }

        return(false);
    }
Beispiel #2
0
    protected void ChangeBrush(MapSegmentBrushType brushType)
    {
        TileSetPreview.Clear();
        if (!BrushAllowsSelection(brushType))
        {
            MapSegment.CurrentTileSelection.Clear();
        }

        if (!BrushAllowsBlockSelection(brushType))
        {
            MapSegment.CurrentTileSelection.SetToSingleSelection();
        }

        MapSegment.CurrentBrush = brushType;
    }