• Registers into an enum that we haven't added explicit modding support for.

    Caveats!

    • This will not work for enums associated with a descriptions/definitions record or map. Only use it for enums that work on their own.
    • If we ever change the import path of the enum, previous registrations to it will not persist, so any registrations will be assigned new IDs.
    • Any enums registered in this way will not work on servers.

    Type Parameters

    • E

    Parameters

    • enumObject: E

      The enum object to register into.

    • name: string

      The name of this mod registration in the enum.

    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, E[keyof E]>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc