Readonly componentReadonly componentReadonly componentReadonly schemaEntity that will be used to create the component
Optional val: PBAudioAnalysisThe initial value
Creates an AudioAnalysis component for the given entity.
If a component already exists on the entity, this call fails (does not replace).
The entity to attach the component to.
Optional mode: PBAudioAnalysisModeAnalysis mode. Defaults to PBAudioAnalysisMode.MODE_LOGARITHMIC.
Optional amplitudeGain: numberOptional amplitude gain multiplier.
Optional bandsGain: numberOptional gain multiplier applied to all frequency bands.
Add the current component to an entity or replace the content if the entity already has the component
Entity that will be used to create or replace the component
Optional val: PBAudioAnalysisThe initial or new value
Creates the AudioAnalysis component if missing, or replaces the existing one.
The target entity.
Optional mode: PBAudioAnalysisModeAnalysis mode. Defaults to PBAudioAnalysisMode.MODE_LOGARITHMIC.
Optional amplitudeGain: numberOptional amplitude gain multiplier.
Optional bandsGain: numberOptional gain multiplier applied to the frequency bands.
Delete the current component to an entity, return null if the entity doesn't have the current component.
Entity to delete the component from
This function writes the whole state of the component into a ByteBuffer
Optional filterEntity: ((entity: Entity) => boolean)Marks the entity as deleted and signals it cannot be used ever again. It must clear the component internal state, produces a synchronization message to remove the component from the entity.
Entity ID that was deleted.
Get the readonly component of the entity (to mutate it, use getMutable instead), throws an error if the entity doesn't have the component.
Entity that will be used to get the component
This function returns an iterable with all the CRDT updates that need to be broadcasted to other actors in the system. After returning, this function clears the internal dirty state. Updates are produced only once.
Get the mutable component of the entity, throw an error if the entity doesn't have the component.
Entity to get the component from
Get the mutable component of the entity, return null if the entity doesn't have the component.
Entity to get the component from
Get the mutable component of the entity. If the entity doesn't have the component, it's created.
Entity to get the component from
Optional initialValue: PBAudioAnalysisGet the readonly component of the entity (to mutate it, use getMutable instead), or null if the entity doesn't have the component.
Entity that will be used to try to get the component
Triggers the callback if the entity has changed on the last tick. If the value is undefined, the component was deleted.
Reads the component data of entity into the provided out view.
Error if the entity does not have an AudioAnalysis component.
The entity whose AudioAnalysis data will be read.
An existing AudioAnalysisView to populate with the latest values.
Attempts to read the component data of entity into the provided out view.
true if the component exists and data was written into out,
false if the entity does not have an AudioAnalysis component.
The entity whose AudioAnalysis data will be read.
An existing AudioAnalysisView to populate.
This function receives a CRDT update and returns a touple with a "conflict resoluton" message, in case of the sender being updated or null in case of noop/accepted change. The second element of the touple is the modified/changed/deleted value.
Add the current component to an entity, throw an error if the component already exists (use
createOrReplaceinstead).