IGridTargetResolver2D

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.

Declaration

1
public interface IGridTargetResolver2D

Summary

Core-friendly abstraction for resolving a grid coordinate from a world-space position. Implementations may be engine-backed (e.g. Godot sensors) or pure math fallbacks.

Metadata

Namespace: GridPlacement.Core.Services.Targeting

Source File: cs/Core/Services/Targeting/IGridTargetResolver2D.cs

Assembly: GridPlacement.Core

Type: interface

Methods

TryGetTarget

1
2
3
4
bool TryGetTarget(
    CoreVector2 worldPosition,
    out CoreVector2I gridPosition
)

Attempts to resolve a target grid coordinate for the provided world-space position.

Parameters

NameDescription
worldPositionWorld-space position in Core coordinates.
gridPositionResolved grid coordinate when successful.

Returns

True if the target is valid and resolved; otherwise false.