Grid Placement
Development ⚠️ GridPlacement 6.0 (GECS) is in active development. This is the GDScript ECS architecture.

TargetingSignalBus

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: shared/events/targeting_bus.gd

Version: 6.0

class_name: TargetingSignalBus extends: RefCounted

Signals

  • target_changed(data: TargetChangedEvent)
    • Emitted when a targeting issue is detected (e.g. out of bounds).
    • Emitted when cursor position changes
    • Emitted when targeting mode changes
    • Get singleton instance
  • issue_detected(user_id: String, issue: String)
    • Emitted when cursor position changes
    • Emitted when targeting mode changes
    • Get singleton instance
  • cursor_position_changed(position: Vector2i)
    • Emitted when targeting mode changes
    • Get singleton instance
  • targeting_mode_changed(mode: int)
    • Get singleton instance
  • management

Exports

(none)

Methods

  • get_instance -> TargetingSignalBus
  • _connect_once(sig: Signal, callable: Callable) -> void
  • _disconnect_if_connected(sig: Signal, callable: Callable) -> void
  • _disconnect_all(sig: Signal) -> void
  • emit_target_changed(user_id: String, grid_id: String, tile: Vector2i, world_pos: Vector2) -> void
  • emit_issue(user_id: String, issue: String) -> void
  • emit_cursor_position_changed(position: Vector2i) -> void
  • emit_targeting_mode_changed(mode: int) -> void
  • connect_target_changed(callable: Callable) -> void
  • connect_issue_detected(callable: Callable) -> void
  • connect_cursor_position_changed(callable: Callable) -> void
  • connect_targeting_mode_changed(callable: Callable) -> void
  • disconnect_target_changed(callable: Callable) -> void
  • disconnect_issue_detected(callable: Callable) -> void
  • disconnect_cursor_position_changed(callable: Callable) -> void
  • disconnect_targeting_mode_changed(callable: Callable) -> void
  • cleanup -> void