Skip to content

Class

GridTargetingService

Generated GDScript class reference for GridPlacement.GridTargetingService.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Scene-free grid targeting service. Makes AStar/grid positioning logic directly unit-testable without a scene tree. Handles: tile-to-world coordinate mapping, closest-valid-tile resolution, AStarGrid2D configuration, and targeting readiness validation. Signal emission (astar_grid_changed) and input handling stay on the hosting Node — the service is pure logic over injectable state. Usage: var service := GridTargetingService.new() service.configure(targeting_state, targeting_settings, mode_state, path_manager, logger)

Source: addons/grid_placement/systems/grid_targeting/grid_targeting_service.gd

Syntax

class GridTargetingService extends TargetingServiceContract

Members

NameKindSummary
supported_dimensionsMethod
configure_for_2dMethod
configureMethod
get_tile_from_global_positionMethod
update_astar_gridMethod
validate_readyMethod
get_targeting_issuesMethod
get_runtime_issuesMethod
get_path_managerMethod