Skip to main content

HookAction

A internal struct in Root.Township, Alta.Intelligence. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal per-agent runner for an attack direction reaction hook. Updates its AttackDirectionCore each LateUpdate while the agent has a target.

Constructors​

MemberWhat it is
HookAction(AttackDirectionCoreSettings settings, IAgent topic)Creates a HookAction from settings and topic.

Fields​

4 private and internal fields
MemberWhat it is
private AttackDirectionCore coreThe attack direction core made from the settings for this agent.
private IAgent topicThe agent this runner belongs to.
private IUnityUpdateMethod updateActionHandle for the registered LateUpdate method.
private static UpdateModule updateModuleShared LateUpdate module all these runners register with.

Methods​

MemberWhat it is
void Disable()Stops the update and disables the core for this agent.
1 private and internal method
MemberWhat it is
private void Update()Updates the core while the agent has a target, and deregisters if the entity is being destroyed.

Used in​

Members of other types that take, return or hold a HookAction: