Class SetTargetPriority

Namespace
TDMaker.Core.Commands
Assembly
TDMaker.Core.dll

Changes a tower's runtime target priority without interrupting its current attack or resetting cooldowns.

public sealed class SetTargetPriority : ICommand
Inheritance
SetTargetPriority
Implements
Inherited Members

Examples

sim.Enqueue(new SetTargetPriority(tower.Id, TargetPriority.Strongest));

Constructors

SetTargetPriority(int, TargetPriority)

Creates a runtime target-priority command.

public SetTargetPriority(int entityId, TargetPriority priority)

Parameters

entityId int
priority TargetPriority

Properties

EntityId

Tower identifier.

public int EntityId { get; }

Property Value

int

Priority

Requested priority; undefined values are rejected during command processing.

public TargetPriority Priority { get; }

Property Value

TargetPriority