pf1RegisterRegistry<R>: ((registry) => void)

Type Parameters

Type declaration

    • (registry): void
    • A hook event fired by the system when a registry is initialized. Substitute the Registry part of the hook name with the name of the registry, for example pf1RegisterDamageTypes.

      Parameters

      • registry: R

        The registry that is initialized.

      Returns void

      Remarks

      Called by Hooks.callAll

      See

      Example

      Hooks.on("pf1RegisterDamageTypes", (registry, model) => {
      registry.register("my-module", "my-damage-type", {
      name: "My Damage Type",
      icon: "icons/svg/damage.svg",
      color: "#00ff00",
      category: "physical",
      });
      });

Generated using TypeDoc