TargetingAdapter2D

TargetingAdapter2D

Pure targeting adapter (non-Node) that coordinates cursor updates from Godot input sources (mouse/keyboard) into the Core . This class is intended to be used by a thin Godot Node controller. It contains no Godot lifecycle hooks and performs no scene registration.

Project: GridPlacement v6.0
Layer: Godot
Source: Godot/Targeting/TargetingAdapter2D.cs
Namespace: GridBuilding.Godot.Targeting
Kind: class

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

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

Methods

TryUpdateFromMouse

Attempts to update the cursor from a mouse position.

Returns: bool

Parameters:

  • Vector2 mousePosition
  • CoreVector2I newGridPosition
  • Vector2? newWorldPosition

TryUpdateFromGridDelta

Returns: bool

Parameters:

  • CoreVector2I delta
  • CoreVector2I newGridPosition
  • Vector2? newWorldPosition

TryUpdateFromKeyboard

Attempts to update the cursor from a keyboard event.

Returns: bool

Parameters:

  • InputEvent event
  • CoreVector2I newGridPosition
  • Vector2? newWorldPosition