Scene-free intent mapper: converts raw InputEvents and placement state into discrete [InputIntent] values. PlacementSystem's _unhandled_input becomes a thin forwarder that matches on the returned intent. Extracted from PlacementSystem to make the input-to-intent branching directly unit-testable without a scene runner. Usage: var handler := PlacementInputHandler.new() handler.configure(actions) var intent := handler.resolve(event, brush_state, has_placeable, has_terrain, is_in_mode) handler.handle_intent(intent, placement_system, is_in_mode)
Source: addons/grid_placement/systems/building/placement_input_handler.gd
Syntax
class PlacementInputHandler extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
configure | Method | |
resolve | Method | |
is_in_mode | Property | |
is_demolish | Property | |
is_move | Property | |
handle_intent | Method | |
report | Property | |
obj_report | Property | |
pending_report | Property | |
st_report | Property | |
so_report | Property | |
fallback_report | Property | |
ol_report | Property |
Source
addons/grid_placement/systems/building/placement_input_handler.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs