SelectionAdapter

SelectionAdapter

Adapter that bridges UI selection to placement service. This is a pure C# class that can be wrapped by Godot UI nodes.

Project: GridPlacement v6.0
Layer: Core
Source: Core/Catalog/SelectionAdapter.cs
Namespace: GridBuilding.Core.Catalog
Kind: class

Parsing Method: AST-based (Roslyn) - NOT regex

⚠️ IMPORTANT: This documentation was generated using AST parsing, not regex.

Properties

AvailableItems

All available items (unfiltered).

FilteredItems

Items after applying category filter.

IsEmpty

Whether the catalog is empty.

CurrentCategoryFilter

Current category filter, if any.

Methods

Initialize

Initializes the adapter by querying the catalog.

Returns: void

Select

Selects a placeable by ID and notifies the placement service.

Returns: void

Parameters:

  • string placeableId

SetCategoryFilter

Sets a category filter to show only matching items.

Returns: void

Parameters:

  • string category

ClearCategoryFilter

Clears the category filter to show all items.

Returns: void

Refresh

Refreshes the available items from the catalog.

Returns: void