private void SetupActiveTool(EditorActiveToolTileBrush tool) { var brushSize = this.settings.SelectedBrushSize; var brush = this.settings.SelectedBrushShape.Value; tool.SetBrush(brush, brushSize); }
public override BaseEditorActiveTool Activate(EditorToolTerrainItem item) { var tool = new EditorActiveToolTileBrush( onSelected: (tilePositions, isRepeat) => this.ClientPlaceAt(tilePositions, item.ProtoTile, isRepeat)); this.SetupActiveTool(tool); return(tool); }