@alpaca-software/40kdc-data
    Preparing search index...

    Class ShareRegistryIndex

    Bidirectional lookup over one registry, prepared once for encode/decode.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    version: number

    Methods

    • Slot for an id, or undefined if the registry doesn't know it (stale).

      Parameters

      • kind:
            | "enhancement"
            | "unit"
            | "detachment"
            | "wargear"
            | "faction"
            | "disposition"
            | "ally_rule"
      • id: string

      Returns number | undefined

    • Current id at a slot, or undefined if the slot is out of range (stale).

      Parameters

      • kind:
            | "enhancement"
            | "unit"
            | "detachment"
            | "wargear"
            | "faction"
            | "disposition"
            | "ally_rule"
      • index: number

      Returns string | undefined

    • Number of slots in a kind.

      Parameters

      • kind:
            | "enhancement"
            | "unit"
            | "detachment"
            | "wargear"
            | "faction"
            | "disposition"
            | "ally_rule"

      Returns number