Scriptable Parser for Portal 2 Demos
    Preparing search index...

    Class PrecacheData

    Used for requesting precaching of various assets such as sounds and models. The entryName acts as the identifier for the asset (e.g model/sound file path).

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    tableName: string

    Name of the string table that this entry belongs to.

    entryName: string

    Asset identifier, usually a file path of some kind.

    flags: number

    Flags:

    • 0x01 - fatal if missing;
    • 0x02 - actually preload the asset before playback.

    Methods

    • Parses a string table property from the given demo.

      Parameters

      • tableName: string

        Name of the string table that this entry belongs to.

      • entryName: string

        Name of this entry.

      • demo: Demo

        Demo from which to parse.

      • Optionalcompression: number | null

        Compression details, currently unused.

      Returns StringTableEntry

      A string table entry variant as derived from the table's name.