ICursorTargetQueryPolicy2D

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 ICursorTargetQueryPolicy2D

Summary

Defines policy rules for accepting a world-query targeting result as the next cursor grid position.

Metadata

Namespace: GridPlacement.Core.Services.Targeting

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

Assembly: GridPlacement.Core

Type: interface

Methods

TrySelectGridPosition

1
2
3
4
5
6
bool TrySelectGridPosition(
    CoreVector2I currentGridPosition,
    bool querySucceeded,
    CoreVector2I resolvedGridPosition,
    out CoreVector2I selectedGridPosition
)

Attempts to select the next grid position from a query result.

Parameters

NameDescription
currentGridPositionCurrent cursor position.
querySucceededWhether the world query produced a target.
resolvedGridPositionResolved grid coordinate from the query when successful.
selectedGridPositionChosen next position when accepted.

Returns

true when a new position should be applied; otherwise false.