@kismet.ts/core / Exports / ItemConnection

Class: ItemConnection

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new ItemConnection(input, type, index?)

Parameters

NameType
inputstring
type"input" | "output"
index?number

Overrides

BaseKismetConnection.constructor

Defined in

item/link.ts:317open in new window

Properties

ActivateDelay

ActivateDelay: number

Defined in

item/link.ts:313open in new window


DrawY

DrawY: number

Defined in

item/link.ts:315open in new window


LinkedOp

LinkedOp: string

Defined in

item/link.ts:314open in new window


bDisabled

bDisabled: boolean

Defined in

item/link.ts:311open in new window


bDisabledPIE

bDisabledPIE: boolean

Defined in

item/link.ts:312open in new window


bHasImpulse

bHasImpulse: boolean

Defined in

item/link.ts:310open in new window


bHidden

bHidden: boolean

Inherited from

BaseKismetConnection.bHidden

Defined in

item/link.ts:38open in new window


connectionIndex

connectionIndex: number = 0

Inherited from

BaseKismetConnection.connectionIndex

Defined in

item/link.ts:34open in new window


input

Protected input: string

Inherited from

BaseKismetConnection.input

Defined in

item/link.ts:31open in new window


kismet

Protected kismet: BaseKismetConnectionOptions

Inherited from

BaseKismetConnection.kismet

Defined in

item/link.ts:30open in new window


linkedIds

linkedIds: string[] = []

Inherited from

BaseKismetConnection.linkedIds

Defined in

item/link.ts:37open in new window


links: null | string[] = null

Inherited from

BaseKismetConnection.links

Defined in

item/link.ts:36open in new window


name

name: string

Inherited from

BaseKismetConnection.name

Defined in

item/link.ts:33open in new window


type

Protected Readonly type: KismetConnectionType

Inherited from

BaseKismetConnection.type

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

Inherited from

BaseKismetConnection.isUsed

Defined in

item/link.ts:133open in new window


typeName

Private get typeName(): string

Returns

string

Inherited from

BaseKismetConnection.typeName

Defined in

item/link.ts:97open in new window


value

get value(): string

Returns

string

Overrides

BaseKismetConnection.value

Defined in

item/link.ts:375open in new window

Methods

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

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

ItemConnection

Inherited from

BaseKismetConnection.addLink

Defined in

item/link.ts:144open in new window


breakAllLinks(): ItemConnection

Returns

ItemConnection

Inherited from

BaseKismetConnection.breakAllLinks

Defined in

item/link.ts:177open in new window


breakLinkTo

breakLinkTo(linkId): ItemConnection

Parameters

NameType
linkIdstring

Returns

ItemConnection

Inherited from

BaseKismetConnection.breakLinkTo

Defined in

item/link.ts:166open in new window


format

Protected format(keys?): string

Parameters

NameType
keys?string[]

Returns

string

Inherited from

BaseKismetConnection.format

Defined in

item/link.ts:101open in new window


isBaseConnection

isBaseConnection(): this is BaseKismetConnection

Returns

this is BaseKismetConnection

Inherited from

BaseKismetConnection.isBaseConnection

Defined in

item/link.ts:184open in new window


isInputLink(): boolean

Returns

boolean

Defined in

item/link.ts:367open in new window


isItemConnection

isItemConnection(): this is ItemConnection

Returns

this is ItemConnection

Inherited from

BaseKismetConnection.isItemConnection

Defined in

item/link.ts:188open in new window


isOutputLink(): boolean

Returns

boolean

Defined in

item/link.ts:371open in new window


isVariableConnection

isVariableConnection(): this is VariableConnection

Returns

this is VariableConnection

Inherited from

BaseKismetConnection.isVariableConnection

Defined in

item/link.ts:195open in new window


prefix

prefix(index?): string

Parameters

NameType
index?number

Returns

string

Inherited from

BaseKismetConnection.prefix

Defined in

item/link.ts:208open in new window


setActivateDelay

setActivateDelay(duration): this

Parameters

NameType
durationnumber

Returns

this

Defined in

item/link.ts:361open in new window


setHidden

setHidden(hidden): ItemConnection

Parameters

NameType
hiddenboolean

Returns

ItemConnection

Inherited from

BaseKismetConnection.setHidden

Defined in

item/link.ts:202open in new window


toString

toString(index?): string

Parameters

NameType
index?number

Returns

string

Overrides

BaseKismetConnection.toString

Defined in

item/link.ts:384open in new window


convertInput

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

Parameters

NameType
inputstring

Returns

Record<string, string | number | boolean>

Inherited from

BaseKismetConnection.convertInput

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

Inherited from

BaseKismetConnection.convertLink

Defined in

item/link.ts:64open in new window


isItemConnectionType

Static isItemConnectionType(type): boolean

Parameters

NameType
typestring

Returns

boolean

Defined in

item/link.ts:352open in new window