AUTO-GENERATED FILE — DO NOT EDIT MANUALLY
Source: shared/events/placement_bus.gd
Version: 6.0
class_name: PlacementSignalBus
extends: RefCounted
Signals
placement_success(data: PlacementSuccessEvent)- Emitted when a placement operation fails.
- Emitted when a placement request has been validated.
- Emitted when placement is canceled
- Selection state change events
- Indicator update events
- Get singleton instance
placement_failure(data: PlacementFailureEvent)- Emitted when a placement request has been validated.
- Emitted when placement is canceled
- Selection state change events
- Indicator update events
- Get singleton instance
placement_validated(entity: Entity, result: bool)- Emitted when placement is canceled
- Selection state change events
- Indicator update events
- Get singleton instance
placement_canceled(entity: Entity, reason: String)- Selection state change events
- Indicator update events
- Get singleton instance
placement_request(user_id: String, grid_id: String, grid_pos: Vector2i)- Selection state change events
- Indicator update events
- Get singleton instance
selection_changed(data: SelectionChangeEvent)- Indicator update events
- Get singleton instance
hover_changed(data: HoverChangeEvent)- Indicator update events
- Get singleton instance
focus_changed(data: FocusChangeEvent)- Indicator update events
- Get singleton instance
indicator_update(data: IndicatorUpdateEvent)- Get singleton instance
drag_session(data: DragSessionEvent)- Get singleton instance
management
Exports
(none)
Methods
get_instance -> PlacementSignalBus_connect_once(sig: Signal, callable: Callable) -> void_disconnect_if_connected(sig: Signal, callable: Callable) -> void_disconnect_all(sig: Signal) -> voidemit_success(entity: Entity, pos: Vector2, grid_pos: Vector2i) -> voidemit_failure(entity: Entity, reason: String, issues: Array) -> voidemit_validated(entity: Entity, result: bool) -> voidemit_canceled(entity: Entity, reason: String) -> voidemit_selection_changed(entity: Entity, action: String) -> voidemit_hover_changed(entity: Entity, hovered: Entity, previous: Entity = null) -> voidemit_focus_changed(entity: Entity, focused: Entity, previous: Entity = null) -> voidemit_indicator_update(indicator_entity: Entity, target_entity: Entity, update_type: String, indicator_type: int = -1, position: Vector2 = Vector2.ZERO, grid_position: Vector2i = Vector2i.ZERO) -> voidemit_drag_session(drag_entity: Entity, placeable_entity: Entity, session_action: String, grid_position: Vector2i = Vector2i.ZERO, world_position: Vector2 = Vector2.ZERO, placements: int = 0, session_id: String = "") -> voidemit_placement_request(user_id: String, grid_id: String, grid_pos: Vector2i) -> voidconnect_success(callable: Callable) -> voidconnect_failure(callable: Callable) -> voidconnect_validated(callable: Callable) -> voidconnect_canceled(callable: Callable) -> voidconnect_selection_changed(callable: Callable) -> voidconnect_hover_changed(callable: Callable) -> voidconnect_focus_changed(callable: Callable) -> voidconnect_indicator_update(callable: Callable) -> voidconnect_drag_session(callable: Callable) -> voiddisconnect_success(callable: Callable) -> voiddisconnect_failure(callable: Callable) -> voiddisconnect_validated(callable: Callable) -> voiddisconnect_canceled(callable: Callable) -> voiddisconnect_selection_changed(callable: Callable) -> voiddisconnect_hover_changed(callable: Callable) -> voiddisconnect_focus_changed(callable: Callable) -> voiddisconnect_indicator_update(callable: Callable) -> voiddisconnect_drag_session(callable: Callable) -> voidcleanup -> void