UNPKG

@inworld/web-core

Version:
25 lines (24 loc) 870 B
import { CurrentSceneStatus, SessionHistoryResponse } from '../../proto/ai/inworld/packets/packets.pb.js'; import { SceneHistoryItem } from '../common/data_structures/index.js'; import { Character } from './character.entity.js'; export interface SceneProps { name: string; characters?: Character[]; description?: string; displayName?: string; history?: SceneHistoryItem[]; } export declare class Scene { name: string; characters: Character[]; description: string; displayName: string; history: SceneHistoryItem[]; constructor(props: SceneProps); static fromProto({ sceneStatus, sessionHistory, }: { sceneStatus: CurrentSceneStatus; sessionHistory?: SessionHistoryResponse; }): Scene; getCharactersByIds(ids: string[]): Character[]; getCharactersByResourceNames(names: string[]): Character[]; }