UNPKG

pixi-fusion

Version:

This module offers a set of common components needed for playing games.

16 lines (15 loc) 490 B
import { Texture } from "pixi.js"; export type Asset = { src: string; alias: string; }; export type AssetsManagerContextValue = { isFetching: boolean; isFetched: boolean; isError: boolean; error?: unknown; load: (groupId: string, asset: Asset[]) => Promise<void>; unload: (groupIdOrAlias: string) => void; getAsset: (alias: string) => Texture | undefined; }; export declare const AssetsManagerContext: import("react").Context<AssetsManagerContextValue>;