TargetingArea2D
AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: systems/grid_targeting/grid_positioner/targeting_area_2d.gd
Version: 5.0
class_name: TargetingArea2D
extends: Area2D
Summary
Encapsulates Area2D-based targeting logic as a reusable component Unlike ShapeCast2D which only detects PhysicsBody2D nodes, Area2D can detect other Area2D nodes
Signals
(none)
Exports
debug_log_overlaps- Local debug flag: can be toggled per-instance in editor or by code
Methods
_ready()resolve_gb_dependencies()- Resolve Grid Building dependencies (logger, targeting state)
_physics_process()- Physics process: continuously update targeting state based on Area2D overlaps
update_target()- Update the GridTargetingState.target based on current overlaps
_on_area_entered()- Called when an area enters overlap
_on_area_exited()- Called when an area exits overlap