Skip to content

Latest commit

 

History

History
179 lines (115 loc) · 4.03 KB

LogicBoolSenderComponent.md

File metadata and controls

179 lines (115 loc) · 4.03 KB

Class: LogicBoolSenderComponent

Types

<ComponentProps>

See <ComponentProps>


<LogicBoolSenderComponentProps>

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

type LogicBoolSenderComponentPropsV2 = {
  updatedValue?: number | undefined;
  changedExternally?: number | undefined;
  identifier?: number | undefined;
  value?: boolean | undefined;
};

type LogicBoolSenderComponentProps = LogicBoolSenderComponentPropsV2;

Since v2

  • updatedValue (optional, default 3171294583) <number>
  • changedExternally (optional, default 32) <number>
  • identifier (optional, default 0) <number>
  • value (optional, default false) <boolean>

Constructors

new LogicBoolSenderComponent(props)

Creates a versioned LogicBoolSender component.

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

const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });

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


updatedValue

We're not quite sure what this property does.

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

const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });

const updatedValue = component.updatedValue;
// `updatedValue` is `3171294583`

changedExternally

We're not quite sure what this property does.

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

const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });

const changedExternally = component.changedExternally;
// `changedExternally` is `32`

identifier

The identifier of this LogicBoolSender that a LogicBoolReceiver connects to.

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

const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });

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

value

The output value of this LogicBoolSender that a LogicBoolReceiver reads as its input.

  • Since: v2
  • <boolean>
import { LogicBoolSenderComponent } from 'att-string-transcoder';

const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });

const value = component.value;
// `value` is `false`

Methods

toBinary(version?)

See Component.toBinary(version?)


write(writer, version?)

See Component.write(writer, version?)