mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-24 18:49:16 +01:00
* [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
12 lines
439 B
TypeScript
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);
|
|
}
|