Skip to content

@lands.io/mod-sdk / ActionHooksRegistry

Interface: ActionHooksRegistry

Registry for registering action hooks. Provides typed methods for each action type. All methods return this for chaining.

Table of contents

Properties

Methods

Properties

bot

bot: BotActionHooksRegistry

Bot-specific action hooks


fakeHuman

fakeHuman: FakeHumanActionHooksRegistry

FakeHuman-specific action hooks

Methods

attack

attack(hooks): this

Register hooks for the attack action

Parameters

Name Type
hooks AttackActionHooks

Returns

this


boat

boat(hooks): this

Register hooks for the boat action

Parameters

Name Type
hooks BoatActionHooks

Returns

this


breakthrough

breakthrough(hooks): this

Register hooks for the breakthrough action

Parameters

Name Type
hooks BreakthroughActionHooks

Returns

this


buildDefensePost

buildDefensePost(hooks): this

Register hooks for the build defense post action

Parameters

Name Type
hooks BuildDefensePostActionHooks

Returns

this


retreat

retreat(hooks): this

Register hooks for the retreat action

Parameters

Name Type
hooks RetreatActionHooks

Returns

this


Source Code

View full implementation
/**
 * Registry for registering action hooks.
 * Provides typed methods for each action type.
 * All methods return `this` for chaining.
 */
export interface ActionHooksRegistry {
  /** Register hooks for the attack action */
  attack(hooks: AttackActionHooks): this;

  /** Register hooks for the boat action */
  boat(hooks: BoatActionHooks): this;

  /** Register hooks for the breakthrough action */
  breakthrough(hooks: BreakthroughActionHooks): this;

  /** Register hooks for the retreat action */
  retreat(hooks: RetreatActionHooks): this;

  /** Register hooks for the build defense post action */
  buildDefensePost(hooks: BuildDefensePostActionHooks): this;

  /** Bot-specific action hooks */
  bot: BotActionHooksRegistry;

  /** FakeHuman-specific action hooks */
  fakeHuman: FakeHumanActionHooksRegistry;
}