CoreTargetingAdapter2D

CoreTargetingAdapter2D

Core-only adapter that coordinates cursor updates from world positions or grid deltas. This type is engine-agnostic and is intended to be unit-tested without any Godot lifecycle, process delta, or physics probing.

Project: GridPlacement v6.0
Layer: Core
Source: Core/Services/Targeting/CoreTargetingAdapter2D.cs
Namespace: GridBuilding.Core.Services.Targeting
Kind: class

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

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

Methods

TryUpdateFromWorld

Attempts to update the cursor from a world-space position.

Returns: bool

Parameters:

  • CoreVector2 worldPosition
  • CoreVector2I newGridPosition
  • CoreVector2? newWorldPosition

TryUpdateFromGridDelta

Attempts to update the cursor from a grid delta relative to the current cursor position.

Returns: bool

Parameters:

  • CoreVector2I delta
  • CoreVector2I newGridPosition
  • CoreVector2? newWorldPosition