Skip to content

Latest commit

 

History

History
113 lines (70 loc) · 2.65 KB

LogicVector3ReceiverComponent.md

File metadata and controls

113 lines (70 loc) · 2.65 KB

Class: LogicVector3ReceiverComponent

Types

<ComponentProps>

See <ComponentProps>


<LogicVector3ReceiverComponentProps>

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

type LogicVector3ReceiverComponentPropsV1 = {
  sender?: number | undefined;
};

type LogicVector3ReceiverComponentProps = LogicVector3ReceiverComponentPropsV1;

Since v1

  • sender (optional, default 0) <number>

Constructors

new LogicVector3ReceiverComponent(props)

Creates a versioned LogicVector3Receiver component.

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

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

LogicVector3ReceiverComponent.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


sender

The identifier of the LogicVector3Sender that is connected to this LogicVector3Receiver.

  • Since: v1
  • <number>
import { LogicVector3ReceiverComponent } from 'att-string-transcoder';

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

const sender = component.sender;
// `sender` is `0`

Methods

toBinary(version?)

See Component.toBinary(version?)


write(writer, version?)

See Component.write(writer, version?)