• Register custom values that will replace default values in a vanilla object.

    For example, say you want to change the number of planks to dismantle from a log from 2 to 4. That would look like this:

    @Register.override(() => ({
    object: itemDescriptions[ItemType.Log].dismantle!,
    property: "items",
    value: [
    { type: ItemType.TreeBark, amount: 2 },
    { type: ItemType.WoodenPlank, amount: 4 }
    ],
    }))
    public itemDescriptionLogDismantle: IDismantleDescription;

    Type Parameters

    • OBJECT extends object

    • PROPERTY extends string | number | symbol

    Parameters

    Returns (<K, T>(target: T, key: K) => void)

      • <K, T>(target: T, key: K): void
      • Type Parameters

        • K extends string | number | symbol

        • T extends Record<K, OBJECT>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc