Skip to content

Latest commit

 

History

History
113 lines (70 loc) · 2.58 KB

LogicBoolReceiverComponent.md

File metadata and controls

113 lines (70 loc) · 2.58 KB

Class: LogicBoolReceiverComponent

Types

<ComponentProps>

See <ComponentProps>


<LogicBoolReceiverComponentProps>

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

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

type LogicBoolReceiverComponentProps = LogicBoolReceiverComponentPropsV1;

Since v1

  • sender (optional, default 0) <number>

Constructors

new LogicBoolReceiverComponent(props)

Creates a versioned LogicBoolReceiver component.

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

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

LogicBoolReceiverComponent.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 LogicBoolSender that is connected to this LogicBoolReceiver.

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

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

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

Methods

toBinary(version?)

See Component.toBinary(version?)


write(writer, version?)

See Component.write(writer, version?)