See <ComponentProps>
A portion of the configuration object to pass to the WoodcutTreeComponent constructor.
type WoodcutTreeComponentPropsV3 = {
presetHash?: 0 | PresetHash | undefined;
speciesHash?: SpeciesHash | undefined;
};
type WoodcutTreeComponentProps = WoodcutTreeComponentPropsV3;presetHash(optional, default0)<number>speciesHash(optional, default11232)<SpeciesHash>
Creates a versioned WoodcutTree component.
props<ComponentProps & WoodcutTreeComponentProps>Configuration of the component to create.- Returns:
<WoodcutTreeComponent>
import { WoodcutTreeComponent } from 'att-string-transcoder';
const componentVersion = 3;
const component = new WoodcutTreeComponent({ 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
- Since:
v3 <number>
import { WoodcutTreeComponent } from 'att-string-transcoder';
const componentVersion = 3;
const component = new WoodcutTreeComponent({ version: componentVersion });
const presetHash = component.presetHash;
// `presetHash` is `0`The hash of the species of the tree prefab this component is attached to.
- Since:
v3 <SpeciesHash>
import { WoodcutTreeComponent } from 'att-string-transcoder';
const componentVersion = 3;
const component = new WoodcutTreeComponent({ version: componentVersion });
const speciesHash = component.speciesHash;
// `speciesHash` is `11232`See Component.toBinary(version?)