예제 #1
0
        private void SetupActiveTool(EditorActiveToolTileBrush tool)
        {
            var brushSize = this.settings.SelectedBrushSize;
            var brush     = this.settings.SelectedBrushShape.Value;

            tool.SetBrush(brush, brushSize);
        }
예제 #2
0
        public override BaseEditorActiveTool Activate(EditorToolTerrainItem item)
        {
            var tool = new EditorActiveToolTileBrush(
                onSelected: (tilePositions, isRepeat)
                => this.ClientPlaceAt(tilePositions, item.ProtoTile, isRepeat));

            this.SetupActiveTool(tool);
            return(tool);
        }