classicborne
    Preparing search index...

    Class KeyframeRecord

    I am a keyframe record for a BaseLevel. I manage level keyframes in my SQLite database, allowing for efficient retrieval and management of keyframe data.

    Index

    Constructors

    Properties

    db: Database
    path: string
    ready: Promise<any>

    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: any
      • template: string

        The template associated with this keyframe.

      • voxelData: 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<number>

      The ID of the newly created keyframe.

    • 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.

    • Purge keyframes after a specific action count.

      Parameters

      • afterActionCount: number

        The action count to purge keyframes after.

      Returns Promise<number>

      The number of rows deleted.