pokerogue/src/sprites/pokemon-asset-loader.ts
NightKev 8cf1b9f766
[Dev] Enable Biome import sorting (#6052)
* [Dev] Enable Biome import sorting

Additional changes:

- Implement import aliases

- Convert default exports to named exports

- Remove relative imports

* Apply changes

* Misc fixes

* Merge cleanup
2025-07-13 00:21:25 -07:00

12 lines
439 B
TypeScript

import { initMoveAnim, loadMoveAnimAssets } from "#data/battle-anims";
import type { MoveId } from "#enums/move-id";
/**
* Asynchronously load the animations and assets for the provided moves.
* @param moveIds - An array of move IDs to load assets for.
*/
export async function loadMoveAnimations(moveIds: MoveId[]): Promise<void> {
await Promise.allSettled(moveIds.map(m => initMoveAnim(m)));
await loadMoveAnimAssets(moveIds);
}