See <ComponentProps>
A portion of the configuration object to pass to the SlidingDoorComponent
constructor.
type SlidingDoorComponentPropsV1 = {
isOpen?: number | undefined;
};
type SlidingDoorComponentProps = SlidingDoorComponentPropsV1;
isOpen
(optional, defaultfalse
)<boolean>
Creates a versioned SlidingDoor
component.
props
<ComponentProps & SlidingDoorComponentProps>
Configuration of the component to create.- Returns:
<SlidingDoorComponent>
import { SlidingDoorComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new SlidingDoorComponent({ 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
Reveals the open state of this component's prefab
- Since:
v1
<boolean>
import { SlidingDoorComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new SlidingDoorComponent({ version: componentVersion });
const isOpen = component.isOpen;
// `isOpen` is `false`
See Component.toBinary(version?)