Skip to content

Latest commit

 

History

History
113 lines (70 loc) · 2.43 KB

SlidingDoorComponent.md

File metadata and controls

113 lines (70 loc) · 2.43 KB

Class: SlidingDoorComponent

Types

<ComponentProps>

See <ComponentProps>


<SlidingDoorComponentProps>

A portion of the configuration object to pass to the SlidingDoorComponent constructor.

type SlidingDoorComponentPropsV1 = {
  isOpen?: number | undefined;
};

type SlidingDoorComponentProps = SlidingDoorComponentPropsV1;

Since v1

  • isOpen (optional, default false) <boolean>

Constructors

new SlidingDoorComponent(props)

Creates a versioned SlidingDoor component.

import { SlidingDoorComponent } from 'att-string-transcoder';

const componentVersion = 1;
const component = new SlidingDoorComponent({ version: componentVersion });

SlidingDoorComponent.fromBinary(reader, version)

See Component.fromBinary(reader, version)

Properties

Note that the following properties are sorted in order of appearance when decoding component binary data.

hash

See Component.hash


name

See Component.name


version

See Component.version


isOpen

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`

Methods

toBinary(version?)

See Component.toBinary(version?)


write(writer, version?)

See Component.write(writer, version?)