public EditorCopyPasteBrush(EditorViewportControllerWidget editorWidget, WorldRenderer wr) { this.editorWidget = editorWidget; worldRenderer = wr; selectionLayer = wr.World.WorldActor.Trait <EditorSelectionLayer>(); editorLayer = wr.World.WorldActor.Trait <EditorActorLayer>(); }
public EditorCopyPasteBrush(EditorViewportControllerWidget editorWidget, WorldRenderer wr, Func <MapCopyFilters> getCopyFilters) { this.editorWidget = editorWidget; worldRenderer = wr; selectionLayer = wr.World.WorldActor.Trait <EditorSelectionLayer>(); editorLayer = wr.World.WorldActor.Trait <EditorActorLayer>(); this.getCopyFilters = getCopyFilters; }