@kismet.ts/core / Exports / VariableConnection
Class: VariableConnection
Hierarchy
↳
VariableConnection
Table of contents
Constructors
Properties
- CachedProperty
- DrawX
- MaxVars
- MinVars
- PropertyName
- bAllowAnyType
- bHidden
- bModifiesLinkedObject
- bSequenceNeverReadsOnlyWritesToThisVar
- bWriteable
- connectionIndex
- expectedType
- input
- kismet
- linkedIds
- links
- name
- type
Accessors
Methods
- addLink
- breakAllLinks
- breakLinkTo
- format
- isBaseConnection
- isItemConnection
- isOutput
- isVariableConnection
- prefix
- setHidden
- toString
- convertInput
- convertLink
Constructors
constructor
• new VariableConnection(input, type, index?)
Parameters
| Name | Type |
|---|---|
input | string |
type | KismetConnectionType |
index? | number |
Overrides
BaseKismetConnection.constructor
Defined in
Properties
CachedProperty
• CachedProperty: boolean
Defined in
DrawX
• DrawX: number
Defined in
MaxVars
• MaxVars: number
Defined in
MinVars
• MinVars: number
Defined in
PropertyName
• PropertyName: string
Defined in
bAllowAnyType
• bAllowAnyType: boolean
Defined in
bHidden
• bHidden: boolean
Inherited from
Defined in
bModifiesLinkedObject
• bModifiesLinkedObject: boolean
Defined in
bSequenceNeverReadsOnlyWritesToThisVar
• bSequenceNeverReadsOnlyWritesToThisVar: boolean
Defined in
bWriteable
• bWriteable: boolean
Defined in
connectionIndex
• connectionIndex: number = 0
Inherited from
BaseKismetConnection.connectionIndex
Defined in
expectedType
• expectedType: string
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
Inherited from
BaseKismetConnection.value
Defined in
Methods
addLink
▸ addLink(linkId, index?, hidden?): VariableConnection
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
Overrides
Defined in
breakAllLinks
▸ breakAllLinks(): VariableConnection
Returns
Inherited from
BaseKismetConnection.breakAllLinks
Defined in
breakLinkTo
▸ breakLinkTo(linkId): VariableConnection
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
isItemConnection
▸ isItemConnection(): this is ItemConnection
Returns
this is ItemConnection
Inherited from
BaseKismetConnection.isItemConnection
Defined in
isOutput
▸ isOutput(): 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
setHidden
▸ setHidden(hidden): VariableConnection
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