@kismet.ts/core / Exports / BaseKismetConnection

Class: BaseKismetConnection

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new BaseKismetConnection(options)

Parameters

NameType
optionsObject
options.extends?boolean
options.index?number
options.inputstring
options.kismetOptions?BaseKismetConnectionOptions
options.typeKismetConnectionType

Defined in

item/link.ts:40open in new window

Properties

bHidden

bHidden: boolean

Defined in

item/link.ts:38open in new window


baseConnection

Private baseConnection: boolean

Defined in

item/link.ts:28open in new window


connectionIndex

connectionIndex: number = 0

Defined in

item/link.ts:34open in new window


input

Protected input: string

Defined in

item/link.ts:31open in new window


kismet

Protected kismet: BaseKismetConnectionOptions

Defined in

item/link.ts:30open in new window


linkedIds

linkedIds: string[] = []

Defined in

item/link.ts:37open in new window


links: null | string[] = null

Defined in

item/link.ts:36open in new window


name

name: string

Defined in

item/link.ts:33open in new window


type

Protected Readonly type: KismetConnectionType

Defined in

item/link.ts:29open in new window

Accessors

isUsed

get isUsed(): boolean

Whether the socket currently is being used by having at least one connection with another socket

Returns

boolean

Defined in

item/link.ts:133open in new window


typeName

Private get typeName(): string

Returns

string

Defined in

item/link.ts:97open in new window


value

get value(): string

Returns

string

Defined in

item/link.ts:212open in new window

Methods

addLink(linkId, index?, hidden?): BaseKismetConnection

Add a new socket link connection

Parameters

NameTypeDescription
linkIdstringThe linkId of the (other) item to connect to
index?numberThe index of the input variable socket that will be connected to. Empty or 0 if the socket is the first input socket on the item
hidden?booleanChange the hidden state of this socket

Returns

BaseKismetConnection

Defined in

item/link.ts:144open in new window


breakAllLinks(): BaseKismetConnection

Returns

BaseKismetConnection

Defined in

item/link.ts:177open in new window


breakLinkTo

breakLinkTo(linkId): BaseKismetConnection

Parameters

NameType
linkIdstring

Returns

BaseKismetConnection

Defined in

item/link.ts:166open in new window


format

Protected format(keys?): string

Parameters

NameType
keys?string[]

Returns

string

Defined in

item/link.ts:101open in new window


isBaseConnection

isBaseConnection(): this is BaseKismetConnection

Returns

this is BaseKismetConnection

Defined in

item/link.ts:184open in new window


isItemConnection

isItemConnection(): this is ItemConnection

Returns

this is ItemConnection

Defined in

item/link.ts:188open in new window


isVariableConnection

isVariableConnection(): this is VariableConnection

Returns

this is VariableConnection

Defined in

item/link.ts:195open in new window


prefix

prefix(index?): string

Parameters

NameType
index?number

Returns

string

Defined in

item/link.ts:208open in new window


setHidden

setHidden(hidden): BaseKismetConnection

Parameters

NameType
hiddenboolean

Returns

BaseKismetConnection

Defined in

item/link.ts:202open in new window


toString

toString(index?): string

Parameters

NameType
index?number

Returns

string

Defined in

item/link.ts:216open in new window


convertInput

Static convertInput(input): Record<string, string | number | boolean>

Parameters

NameType
inputstring

Returns

Record<string, string | number | boolean>

Defined in

item/link.ts:80open in new window


Static convertLink(type, input, index?): undefined | ItemConnection | VariableConnection

Parameters

NameType
typeKismetConnectionType
inputstring
index?number

Returns

undefined | ItemConnection | VariableConnection

Defined in

item/link.ts:64open in new window