Ctrl K
ComunidadGuías…

src/turn-command-manager.ts

Rama beta · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
import type { BattlerIndex } from "#enums/battler-index";

// TODO: Add more methods and move `lastTurnOrder` here
/** A manager for the commands and moves used in the current battle. */
export class TurnCommandManager {
  /**
   * A preset order of {@linkcode BattlerIndex}es, used by tests and MEs to "fix" speed order-related effects.
   */
  public setOrder: readonly BattlerIndex[] | undefined;

  /**
   * Reset a prior set turn order.
   * Called automatically upon resetting the game or a new battle starting.
   */
  public resetTurnOrder(): void {
    this.setOrder = undefined;
  }
}