• Registers a dialog.

    Parameters

    • name: string

      The name of the dialog.

    • description: IDialogDescription<boolean>

      The definition of the dialog. (Max/min/default sizes & positioning)

    • cls: (new (id: number) => default)

      The dialog's class. It will be passed the IGameScreenApi, and its DialogId on construction.

      The decorated property will be injected with the id of the registered dialog.

    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, DialogId>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc