@inworld/web-core
Version:
22 lines (21 loc) • 666 B
TypeScript
import { Actor as ProtoActor, Routing as ProtoRouting } from '../../../proto/ai/inworld/packets/packets.pb.js';
export declare class Actor {
readonly name: string;
readonly isPlayer: boolean;
readonly isCharacter: boolean;
constructor({ name, isPlayer, isCharacter, }: {
name: string;
isPlayer: boolean;
isCharacter: boolean;
});
static fromProto(proto?: ProtoActor): Actor;
}
export declare class Routing {
readonly source: Actor;
readonly targets: Actor[];
constructor({ source, targets }: {
source: Actor;
targets: Actor[];
});
static fromProto(proto?: ProtoRouting): Routing;
}