@molroo-ai/sdk
    Preparing search index...

    Interface WorldSnapshot

    Complete serialized state of a world instance.

    Can be saved to external storage and restored later to resume the world from a specific point in time.

    interface WorldSnapshot {
        createdAt: number;
        definition?: Partial<WorldDefinitionInput>;
        entities: {
            id: string;
            name: string;
            personaSnapshot?: PersonaSnapshot;
            profile?: UserProfile;
            relationships: { relationship: WorldRelationship; targetId: string }[];
            spaceId: string;
            type: EntityType;
        }[];
        environment: Environment;
        id: string;
        knowledge?: { defaultVisibility: string; facts: Fact[] };
        progression?: {
            currentPhase: string;
            elapsedTime: number;
            eventCounts: Record<string, number>;
            firedTriggerIds: string[];
            phaseHistory: {
                from: string;
                timestamp: number;
                to: string;
                triggerId: string;
            }[];
            triggers: ProgressionTrigger[];
        };
        recentEvents?: WorldEvent[];
        spaces: Space[];
    }
    Index

    Properties

    createdAt: number
    definition?: Partial<WorldDefinitionInput>
    entities: {
        id: string;
        name: string;
        personaSnapshot?: PersonaSnapshot;
        profile?: UserProfile;
        relationships: { relationship: WorldRelationship; targetId: string }[];
        spaceId: string;
        type: EntityType;
    }[]
    environment: Environment
    id: string
    knowledge?: { defaultVisibility: string; facts: Fact[] }
    progression?: {
        currentPhase: string;
        elapsedTime: number;
        eventCounts: Record<string, number>;
        firedTriggerIds: string[];
        phaseHistory: {
            from: string;
            timestamp: number;
            to: string;
            triggerId: string;
        }[];
        triggers: ProgressionTrigger[];
    }
    recentEvents?: WorldEvent[]
    spaces: Space[]