AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: components/targeting/targeting_component.gd
Version: 6.0
class_name: TargetingComponent
extends: Component
Signals
(none)
Exports
grid_id: String = ""- User identifier for multi-user targeting
- Enables separate targeting contexts per user (e.g., “user_1”, “user_ai”)
- Current target tile position in grid coordinates
- Whether targeting is currently active for this entity
- Targeting mode for different targeting behaviors
- 0 = normal, 1 = precision, 2 = area, etc.
- Targeting history for undo/redo functionality
- Stores last 10 target positions
- Targeting settings configuration
- Last update time for tracking changes
user_id: String = ""- Current target tile position in grid coordinates
- Whether targeting is currently active for this entity
- Targeting mode for different targeting behaviors
- 0 = normal, 1 = precision, 2 = area, etc.
- Targeting history for undo/redo functionality
- Stores last 10 target positions
- Targeting settings configuration
- Last update time for tracking changes
target_tile: Vector2i = Vector2i.ZERO- Whether targeting is currently active for this entity
- Targeting mode for different targeting behaviors
- 0 = normal, 1 = precision, 2 = area, etc.
- Targeting history for undo/redo functionality
- Stores last 10 target positions
- Targeting settings configuration
- Last update time for tracking changes
is_active: bool = true- Targeting mode for different targeting behaviors
- 0 = normal, 1 = precision, 2 = area, etc.
- Targeting history for undo/redo functionality
- Stores last 10 target positions
- Targeting settings configuration
- Last update time for tracking changes
targeting_mode: int = 0- Targeting history for undo/redo functionality
- Stores last 10 target positions
- Targeting settings configuration
- Last update time for tracking changes
Methods
_init(p_grid_id: String = "", p_user_id: String = "", p_target_tile: Vector2i = Vector2i.ZERO) -> voidset_targeting_mode(mode: int) -> voidset_target_tile(target: Vector2i) -> voidget_target_history(limit: int = 10) -> Arrayset_range(p_min_range: float, p_max_range: float) -> voidset_grid_size(size: Vector2i) -> voidadd_valid_layer(layer: int) -> voidremove_valid_layer(layer: int) -> voidadd_target_filter(filter: String) -> voidremove_target_filter(filter: String) -> voidis_in_range(distance: float) -> boolsnap_position(position: Vector2) -> Vector2iget_summary -> Stringclear_history -> voidreset -> void