@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
22 lines (21 loc) • 892 B
TypeScript
import IFile from "../storage/IFile";
import { IEventHandler } from "ste-events";
import IDefinition from "./IDefinition";
import Project from "../app/Project";
export default class AudioDefinition implements IDefinition {
private _file?;
private _id?;
private _isLoaded;
private _onLoaded;
get isLoaded(): boolean;
get file(): IFile | undefined;
get onLoaded(): import("ste-events").IEvent<AudioDefinition, AudioDefinition>;
set file(newFile: IFile | undefined);
get id(): string | undefined;
set id(newId: string | undefined);
static ensureOnFile(file: IFile, loadHandler?: IEventHandler<AudioDefinition, AudioDefinition>): Promise<AudioDefinition>;
persist(): boolean;
static canonicalizeAudioPath(projectPath: string | undefined): string;
ensureSoundDefinitionsForFile(project: Project): Promise<void>;
load(): Promise<void>;
}