@adobe/data - v0.10.30
    Preparing search index...

    Interface EntityLocationTable

    interface EntityLocationTable {
        create: (location: { archetype: number; row: number }) => number;
        delete: (entity: number) => void;
        fromData: (data: unknown) => void;
        locate: (entity: number) => null | { archetype: number; row: number };
        reset: () => void;
        toData: (copy?: boolean) => unknown;
        update: (
            entity: number,
            location: { archetype: number; row: number },
        ) => void;
    }
    Index

    Properties

    create: (location: { archetype: number; row: number }) => number
    delete: (entity: number) => void
    fromData: (data: unknown) => void
    locate: (entity: number) => null | { archetype: number; row: number }
    reset: () => void

    Wipe all entity records. O(1). Next allocate starts from entity 0 again.

    toData: (copy?: boolean) => unknown

    Serialize the table. When copy is true the backing entities buffer is detached (sliced) so the snapshot survives later mutation of the live table; otherwise the snapshot references the live buffer (faster, but only valid until the next mutation).

    update: (entity: number, location: { archetype: number; row: number }) => void