Struct TargetQuery

Namespace
TDMaker.Core
Assembly
TDMaker.Core.dll

A target request using the shared elliptical distance metric.

public readonly struct TargetQuery
Inherited Members

Constructors

TargetQuery(Entity, float, float, bool, bool, bool, TargetPriority)

Creates an allocation-free query.

public TargetQuery(Entity actor, float range, float minimumRange = 0, bool targetsEnemies = true, bool targetsFlying = true, bool targetsGround = true, TargetPriority priority = TargetPriority.First)

Parameters

actor Entity
range float
minimumRange float
targetsEnemies bool
targetsFlying bool
targetsGround bool
priority TargetPriority

TargetQuery(Entity, float, float, bool, bool, bool, TargetPriority, bool)

Creates a query with an explicit optional flying-target minimum-range exception.

public TargetQuery(Entity actor, float range, float minimumRange, bool targetsEnemies, bool targetsFlying, bool targetsGround, TargetPriority priority, bool ignoreFlyingMinimumRange)

Parameters

actor Entity
range float
minimumRange float
targetsEnemies bool
targetsFlying bool
targetsGround bool
priority TargetPriority
ignoreFlyingMinimumRange bool

Properties

Actor

The attacking entity.

public Entity Actor { get; }

Property Value

Entity

IgnoreFlyingMinimumRange

Bypasses the inner range check for flying enemy candidates only; does not grant targeting or blocking permission.

public bool IgnoreFlyingMinimumRange { get; }

Property Value

bool

MinimumRange

Minimum horizontal range; a positive inner boundary is excluded. Zero permits the center.

public float MinimumRange { get; }

Property Value

float

Priority

Default scoring rule when no custom selector is registered.

public TargetPriority Priority { get; }

Property Value

TargetPriority

Range

Maximum horizontal range.

public float Range { get; }

Property Value

float

TargetsEnemies

Selects enemies rather than friendly soldiers and heroes.

public bool TargetsEnemies { get; }

Property Value

bool

TargetsFlying

Allows flying targets.

public bool TargetsFlying { get; }

Property Value

bool

TargetsGround

Allows ground targets.

public bool TargetsGround { get; }

Property Value

bool