See <ComponentProps>
A portion of the configuration object to pass to the FireComponent
constructor.
type FireComponentPropsV1 = {
fuelConsumptionProgress?: number | undefined;
};
type FireComponentProps = FireComponentPropsV1;
fuelConsumptionProgress
(optional, default1
)<number>
Creates a versioned Fire
component.
props
<ComponentProps & FireComponentProps>
Configuration of the component to create.- Returns:
<FireComponent>
import { FireComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new FireComponent({ version: componentVersion });
See Component.fromBinary(reader, version)
Note that the following properties are sorted in order of appearance when decoding component binary data.
See Component.hash
See Component.name
The progress of the consumption of fuel attached to this component's prefab.
- Since:
v1
<number>
A number between0
and1
(inclusive).
import { FireComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new FireComponent({ version: componentVersion });
const fuelConsumptionProgress = component.fuelConsumptionProgress;
// `fuelConsumptionProgress` is `1`
See Component.toBinary(version?)