TargetingAdapter2D
TargetingAdapter2D
Pure targeting adapter (non-Node) that coordinates cursor updates from
Godot input sources (mouse/keyboard) into the Core
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 mousePositionCoreVector2I newGridPositionVector2? newWorldPosition
TryUpdateFromGridDelta
Returns: bool
Parameters:
CoreVector2I deltaCoreVector2I newGridPositionVector2? newWorldPosition
TryUpdateFromKeyboard
Attempts to update the cursor from a keyboard event.
Returns: bool
Parameters:
InputEvent eventCoreVector2I newGridPositionVector2? newWorldPosition