Service Classes

Service API reference for service classes in GridBuilding v5-0

Service Classes

This section contains the API reference for all service classes in the GridBuilding v5-0 plugin.

DragManager

Internal: Start drag operation and return drag data. [return] DragPathData instance, or null if drag cannot start

GeometryCacheManager

Gets cached geometry calculation result or calculates and caches if not found.

IndicatorManager

Handles manipulation cancellation by cleaning up all active indicators. This ensures indicators are properly freed when manipulation ends unexpectedly (e.g., source object deleted, user cancels, etc.). [param _data] The manipulation data (unused, but required by signal signature).

IndicatorService

Reconcile newly created indicators with existing managed indicators. Strategy:

  • Build a map of existing indicators keyed by tile position
  • For each new indicator, compute its tile position; if an existing indicator exists at that position, reuse it: clear its rules and add the rules from the new indicator, update its global_position and visuals, then free the newly created duplicate.
  • Any existing indicators not matched are freed.
  • Returns the final array of indicators managed by the service.