See <ComponentProps>
A portion of the configuration object to pass to the PickupDockComponent
constructor.
type PickupDockComponentPropsV2 = {
dockedTypeHash?: number | undefined;
quantity?: number | undefined;
childIndex?: number | undefined;
};
type PickupDockComponentProps = PickupDockComponentPropsV2;
dockedTypeHash
(optional, default0
)<number>
quantity
(optional, default1
)<number>
childIndex
(optional, default0
)<number>
Creates a versioned PickupDock
component.
props
<ComponentProps & PickupDockComponentProps>
Configuration of the component to create.- Returns:
<PickupDockComponent>
import { PickupDockComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new PickupDockComponent({ 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:
v2
<number>
import { PickupDockComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new PickupDockComponent({ version: componentVersion });
const dockedTypeHash = component.dockedTypeHash;
// `dockedTypeHash` is `0`
- Since:
v2
<number>
import { PickupDockComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new PickupDockComponent({ version: componentVersion });
const quantity = component.quantity;
// `quantity` is `1`
- Since:
v2
<number>
import { PickupDockComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new PickupDockComponent({ version: componentVersion });
const childIndex = component.childIndex;
// `childIndex` is `0`
See Component.toBinary(version?)