@kismet.ts/core / Exports / ItemConnection
Class: ItemConnection
Hierarchy
↳
ItemConnection
Table of contents
Constructors
Properties
- ActivateDelay
- DrawY
- LinkedOp
- bDisabled
- bDisabledPIE
- bHasImpulse
- bHidden
- connectionIndex
- input
- kismet
- linkedIds
- links
- name
- type
Accessors
Methods
- addLink
- breakAllLinks
- breakLinkTo
- format
- isBaseConnection
- isInputLink
- isItemConnection
- isOutputLink
- isVariableConnection
- prefix
- setActivateDelay
- setHidden
- toString
- convertInput
- convertLink
- isItemConnectionType
Constructors
constructor
• new ItemConnection(input, type, index?)
Parameters
| Name | Type |
|---|---|
input | string |
type | "input" | "output" |
index? | number |
Overrides
BaseKismetConnection.constructor
Defined in
Properties
ActivateDelay
• ActivateDelay: number
Defined in
DrawY
• DrawY: number
Defined in
LinkedOp
• LinkedOp: string
Defined in
bDisabled
• bDisabled: boolean
Defined in
bDisabledPIE
• bDisabledPIE: boolean
Defined in
bHasImpulse
• bHasImpulse: boolean
Defined in
bHidden
• bHidden: boolean
Inherited from
Defined in
connectionIndex
• connectionIndex: number = 0
Inherited from
BaseKismetConnection.connectionIndex
Defined in
input
• Protected input: string
Inherited from
Defined in
kismet
• Protected kismet: BaseKismetConnectionOptions
Inherited from
Defined in
linkedIds
• linkedIds: string[] = []
Inherited from
BaseKismetConnection.linkedIds
Defined in
links
• links: null | string[] = null
Inherited from
Defined in
name
• name: string
Inherited from
Defined in
type
• Protected Readonly type: KismetConnectionType
Inherited from
Defined in
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
typeName
• Private get typeName(): string
Returns
string
Inherited from
BaseKismetConnection.typeName
Defined in
value
• get value(): string
Returns
string
Overrides
BaseKismetConnection.value
Defined in
Methods
addLink
▸ addLink(linkId, index?, hidden?): ItemConnection
Add a new socket link connection
Parameters
| Name | Type | Description |
|---|---|---|
linkId | string | The linkId of the (other) item to connect to |
index? | number | The 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? | boolean | Change the hidden state of this socket |
Returns
Inherited from
Defined in
breakAllLinks
▸ breakAllLinks(): ItemConnection
Returns
Inherited from
BaseKismetConnection.breakAllLinks
Defined in
breakLinkTo
▸ breakLinkTo(linkId): ItemConnection
Parameters
| Name | Type |
|---|---|
linkId | string |
Returns
Inherited from
BaseKismetConnection.breakLinkTo
Defined in
format
▸ Protected format(keys?): string
Parameters
| Name | Type |
|---|---|
keys? | string[] |
Returns
string
Inherited from
Defined in
isBaseConnection
▸ isBaseConnection(): this is BaseKismetConnection
Returns
this is BaseKismetConnection
Inherited from
BaseKismetConnection.isBaseConnection
Defined in
isInputLink
▸ isInputLink(): boolean
Returns
boolean
Defined in
isItemConnection
▸ isItemConnection(): this is ItemConnection
Returns
this is ItemConnection
Inherited from
BaseKismetConnection.isItemConnection
Defined in
isOutputLink
▸ isOutputLink(): boolean
Returns
boolean
Defined in
isVariableConnection
▸ isVariableConnection(): this is VariableConnection
Returns
this is VariableConnection
Inherited from
BaseKismetConnection.isVariableConnection
Defined in
prefix
▸ prefix(index?): string
Parameters
| Name | Type |
|---|---|
index? | number |
Returns
string
Inherited from
Defined in
setActivateDelay
▸ setActivateDelay(duration): this
Parameters
| Name | Type |
|---|---|
duration | number |
Returns
this
Defined in
setHidden
▸ setHidden(hidden): ItemConnection
Parameters
| Name | Type |
|---|---|
hidden | boolean |
Returns
Inherited from
BaseKismetConnection.setHidden
Defined in
toString
▸ toString(index?): string
Parameters
| Name | Type |
|---|---|
index? | number |
Returns
string
Overrides
Defined in
convertInput
▸ Static convertInput(input): Record<string, string | number | boolean>
Parameters
| Name | Type |
|---|---|
input | string |
Returns
Record<string, string | number | boolean>
Inherited from
BaseKismetConnection.convertInput
Defined in
convertLink
▸ Static convertLink(type, input, index?): undefined | ItemConnection | VariableConnection
Parameters
| Name | Type |
|---|---|
type | KismetConnectionType |
input | string |
index? | number |
Returns
undefined | ItemConnection | VariableConnection
Inherited from
BaseKismetConnection.convertLink
Defined in
isItemConnectionType
▸ Static isItemConnectionType(type): boolean
Parameters
| Name | Type |
|---|---|
type | string |
Returns
boolean