public MenuDisplayer(EditorMenuConfiguration config, WorldSelector selector)
        {
            this.config = config;

            provider = BoundingBoxSelectableProvider.Create(config.Items, getBoundingBox, OnClick);

            selector.AddProvider(provider);
        }
Exemple #2
0
        public WorldPlacerUpdater(WorldPlacer placer, WorldSelector wSelector)
        {
            this.placer = placer;

            selector = BoundingBoxSelectableProvider.Create
                       (
                items: placer.GetItems(),
                getBoundingBox: placer.GetBoundingBox,
                onClick: onClick

                       );

            wSelector.AddProvider(selector);
        }