TargetingUpdateLogic
Summary
Section titled “Summary”Pure logic component for targeting state updates Extracted from TargetingShapeCast2D to enable unit testing without physics dependencies
Properties
Section titled “Properties”debug_log_collisions: bool = falseLogger for diagnostics
Targeting state to update
Enable collision logging for debugging
Methods
Section titled “Methods”func _init( p_logger: GBLogger, p_targeting_state: GridTargetingState ) -> voidInitialize with dependencies
func update_target( is_colliding: bool, collider: Node ) -> boolUpdate targeting state based on collision status
is_colliding: Whether a collision is currently detectedcollider: The colliding object (can be null if not colliding) Returns: True if target was updated, false otherwise
Source
Section titled “Source”addons/grid_building/systems/grid_targeting/grid_positioner/targeting_update_logic.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.