public MenuDisplayer(EditorMenuConfiguration config, WorldSelector selector) { this.config = config; provider = BoundingBoxSelectableProvider.Create(config.Items, getBoundingBox, OnClick); selector.AddProvider(provider); }
public WorldPlacerUpdater(WorldPlacer placer, WorldSelector wSelector) { this.placer = placer; selector = BoundingBoxSelectableProvider.Create ( items: placer.GetItems(), getBoundingBox: placer.GetBoundingBox, onClick: onClick ); wSelector.AddProvider(selector); }