UNPKG

@isaac-platform/isaac-integration-sdk

Version:

A Typescript SDK for integrating with ISAAC

27 lines 1.07 kB
import { IsaacPlayable } from "./playable.js"; import { IsaacPlayableType, NewIsaacPlayableType } from "./types.js"; export declare class PlayableController { private knownPlayables; constructor(); /** * Retrieves list of playables * @returns Array of IsaacPlayables */ GetPlayables: () => Promise<IsaacPlayable[]>; /** * Retrieves a list of subsystemId related playables marked to be cached. * @return IsaacPlayable[] - Array of IsaacPlayable objects. */ getForceCachePlayables: () => Promise<IsaacPlayable[]>; GetKnownPlayables(): IsaacPlayable[]; GetPlayable(id: number): Promise<IsaacPlayableType>; /** * Creates a new playable on the remote ISAAC system. * @param newPlayable is the definition of the variable to be added * @returns new IsaacPlayable object */ addPlayable(newPlayable: NewIsaacPlayableType): Promise<IsaacPlayable>; registerPlayable(newPlayable: NewIsaacPlayableType): Promise<IsaacPlayable>; private syncWithISAAC; } //# sourceMappingURL=index.d.ts.map