The class each of this registry's content is expected to be an instance of.
Static
Private
_defaultAn array of data used to initialise this registry.
Static
modelThe class each of this registry's content is expected to be an instance of.
The name of the registry
Private
_initializeProtected
localizeRegisters a new instance of Model with the registry, using a partial of its data as the base.
The namespace for which this value is registered.
The unique key of the value.
A Partial of the data to use as the base for the new value.
The registry itself, after the value has been registered.
pf1.registry.damageTypes.register("my-module", "my-damage-type", {
name: "My Damage Type",
img: "icons/svg/damage.svg",
category: "physical",
});
Protected
setupReturns the contents of this registry as object, using ids as keys.
Optional
source: boolean = falseWhether to include the source data instead of its prepared data for each value.
The data of each value in the registry, by id
Unregisters a value from the registry, or if no id is provided, all values belonging to the namespace.
The namespace for which this value is unregistered.
Optional
id: stringThe unique key of the value, or undefined
to unregister all values belonging to the namespace.
Generated using TypeDoc
The Base Registry class, providing shared functionality for all registries in the system.
Abstract