W3Booster SDK 4.6.0
    Preparing search index...

    Interface Building

    An observed unit instance. IDs are opaque strings scoped to match.id.

    interface Building {
        construction?: TimedProgress;
        hitpoints?: ValuePool;
        id: string;
        isIllusion: boolean;
        mana?: ValuePool;
        position?: Point;
        production?: { queue: readonly ProductionQueueItem[] };
        typeId: string;
        upgrade?: TimedProgress & { typeId: string };
    }

    Hierarchy (View Summary)

    Index
    construction?: TimedProgress

    Present while a construction component is observed; progress is 0..1, or null if unreadable.

    hitpoints?: ValuePool
    id: string
    isIllusion: boolean

    Always observed by the reader. Raw collections retain illusions; selectors exclude them by default.

    mana?: ValuePool
    position?: Point

    Heroes: sampled every 200 ms. Structures: first observed position, retained. Ordinary units: omitted.

    production?: { queue: readonly ProductionQueueItem[] }

    Missing means unavailable; an empty queue means observed idle production.

    typeId: string

    Actual Warcraft unit type rawcode; never an instance identity.

    upgrade?: TimedProgress & { typeId: string }

    The building's own upgrade, separate from training/research production. typeId identifies its destination.