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: Godot
Source: Godot/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 worldPositionCoreVector2I newGridPositionCoreVector2? newWorldPosition
TryUpdateFromGridDelta
Attempts to update the cursor from a grid delta relative to the current cursor position.
Returns: bool
Parameters:
CoreVector2I deltaCoreVector2I newGridPositionCoreVector2? newWorldPosition