GridPositionerLogic
Summary
Section titled “Summary”Static utility class for GridPositioner logic (visibility and decision helpers).
This class contains static functions for computing visibility decisions and diagnostic traces, making them easily unit testable without requiring a full GridPositioner2D instance.
All functions are pure and depend only on their input parameters.
Methods
Section titled “Methods”static func proj_method_to_string( p_method: GBEnums.ProjectionMethod ) -> Stringstatic func get_tile_delta_from_key_event( event: InputEventKey, actions: GBActions ) -> Vector2iKeyboard helper: compute tile delta from a key event and actions
static func get_rotation_direction_from_key_event( event: InputEventKey, actions: GBActions ) -> intKeyboard helper: detect rotation input from a key event and actions
event: The keyboard input event to checkactions: GBActions containing rotation action mappings Returns: Rotation direction: 1 for clockwise, -1 for counter-clockwise, 0 for no rotation
Source
Section titled “Source”addons/grid_building/systems/grid_targeting/grid_positioner/grid_positioner_logic.gd
This API reference is automatically generated from the plugin source code. For implementation examples and usage guides, see the guides section.