An effect source is constructed by providing configuration options.
Optional
options: BasseEffectSourceOptions = {}Options which modify the base effect source instance
Some other object which is responsible for this source.
The source id linked to this effect source.
The data of this source.
The geometric shape of the effect source which is generated later.
Records of suppression strings with a boolean value. If any of this record is true, the source is suppressed.
Protected
_flagsA collection of boolean flags which control rendering and refresh behavior for the source.
Static
sourceThe type of source represented by this data structure. Each subclass must implement this attribute.
Static
effectsThe target collection into the effects canvas group.
Static
defaultEffect source default data.
The x-coordinate of the point source origin.
The y-coordinate of the point source origin.
The elevation bound to this source.
The EffectsCanvasGroup collection linked to this effect source.
Returns the update ID associated with this source. The update ID is increased whenever the shape of the source changes.
Is this source currently active? A source is active if it is attached to an effect collection and is not disabled or suppressed.
Is this source attached to an effect collection?
Is this source temporarily suppressed?
Initialize and configure the source using provided data.
Provided data for configuration
Additional options which modify source initialization
An object containing optional behaviors to apply.
Should source data be reset to default values before applying changes?
The initialized source
Subclass specific data initialization steps.
Provided data for configuration
Protected
_createProtected
_configureProtected
Subclass specific configuration steps. Occurs after data initialization and shape computation. Only called if the source is attached and not disabled.
Changes to the source data which were applied
Protected
_refreshProtected
_destroy
TODO - Re-document after ESM refactor. An abstract base class which defines a framework for effect sources which originate radially from a specific point. This abstraction is used by the LightSource, VisionSource, SoundSource, and MovementSource subclasses.
Example: A standard PointSource lifecycle:
Abstract