Class SetTargetPriority
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
entityIdintpriorityTargetPriority
Properties
EntityId
Tower identifier.
public int EntityId { get; }
Property Value
Priority
Requested priority; undefined values are rejected during command processing.
public TargetPriority Priority { get; }