classicborne
    Preparing search index...

    Class NativeSqliteAdapter

    I'm an adapter for KeyframeRecord.

    My module is the last to be imported by KeyframeRecord.findSuitableSqliteAdapter. I am returned by it if no SQLite dependencies were installed.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    db: DatabaseSync
    keyframeRecord: KeyframeRecord
    ready: Promise<DatabaseSync>

    Methods

    • Adds a keyframe to the database.

      Parameters

      • offset: number

        The offset in the VHS file.

      • totalActionCount: number

        The action count at this keyframe.

      • bufferActionCount: number

        Yet to be documented.

      • template: string

        The template associated with this keyframe.

      • compressedVoxelData: Buffer<ArrayBufferLike>

        The level voxel data at this keyframe.

      • bounds: Vector3

        The bounds of the level.

      • OptionallevelData: string = "{}"

        Optional level data in JSON format. Default is "{}"

      Returns Promise<void>

    • Gets the latest keyframe before a given action count for a specific template.

      Parameters

      • beforeActionCount: number

        The action count to search before.

      • template: string

        The template to filter by.

      • bounds: Vector3

        The bounds of the level.

      Returns Promise<any>

      The latest keyframe record or null if not found.