Skip to content

GridPositionerLogic

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.

static func proj_method_to_string( p_method: GBEnums.ProjectionMethod ) -> String
static func get_tile_delta_from_key_event( event: InputEventKey, actions: GBActions ) -> Vector2i

Keyboard helper: compute tile delta from a key event and actions

static func get_rotation_direction_from_key_event( event: InputEventKey, actions: GBActions ) -> int

Keyboard helper: detect rotation input from a key event and actions event: The keyboard input event to check actions: GBActions containing rotation action mappings Returns: Rotation direction: 1 for clockwise, -1 for counter-clockwise, 0 for no rotation

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.