ITargetingService

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 ITargetingService

Summary

Interface for Targeting event service

Metadata

Namespace: GridPlacement.Core.Services.Targeting

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

Assembly: GridPlacement.Core

Type: interface

Methods

EmitReadyChanged

1
void EmitReadyChanged(bool isReady)

Emits a readiness change event (if the value changed).

Parameters

NameDescription
isReadyThe current readiness value.

EmitTargetChanged

1
2
3
4
void EmitTargetChanged(
    object? newTarget,
    object? oldTarget
)

Emits a target change event (if the value changed).

Parameters

NameDescription
newTargetThe new target value.
oldTargetThe previous target value.

EmitPositionerChanged

1
void EmitPositionerChanged(object? newPositioner)

Emits a positioner change event (if the value changed).

Parameters

NameDescription
newPositionerThe new positioner value.

EmitTargetMapChanged

1
void EmitTargetMapChanged(object? newTargetMap)

Emits a target map change event (if the value changed).

Parameters

NameDescription
newTargetMapThe new target map value.

EmitMapsChanged

1
void EmitMapsChanged(IList<object>? newMaps)

Emits a maps change event (if the value changed).

Parameters

NameDescription
newMapsThe new set of maps.

MonitorStateChanges

1
void MonitorStateChanges(TargetingState2D state)

Inspects the given targeting state and emits events for any changes.

Parameters

NameDescription
stateThe state to monitor.

ClearCache

1
void ClearCache()

Clears any cached last-known values used for change detection.


Events

ReadyChanged

1
public abstract event Action<bool>? ReadyChanged

Raised when the readiness status of the state has changed.


TargetChanged

1
public abstract event Action<object?, object?>? TargetChanged

Raised when the target changes.


PositionerChanged

1
public abstract event Action<object?>? PositionerChanged

Raised when the positioner changes.


TargetMapChanged

1
public abstract event Action<object?>? TargetMapChanged

Raised when the target map changes.


MapsChanged

1
public abstract event Action<IList<object>?>? MapsChanged

Raised when the list of known maps changes.