@kismet.ts/core / Exports / BaseKismetConnection
Class: BaseKismetConnection
Hierarchy
BaseKismetConnection
Table of contents
Constructors
Properties
Accessors
Methods
- addLink
- breakAllLinks
- breakLinkTo
- format
- isBaseConnection
- isItemConnection
- isVariableConnection
- prefix
- setHidden
- toString
- convertInput
- convertLink
Constructors
constructor
• new BaseKismetConnection(options
)
Parameters
Name | Type |
---|---|
options | Object |
options.extends? | boolean |
options.index? | number |
options.input | string |
options.kismetOptions? | BaseKismetConnectionOptions |
options.type | KismetConnectionType |
Defined in
Properties
bHidden
• bHidden: boolean
Defined in
baseConnection
• Private
baseConnection: boolean
Defined in
connectionIndex
• connectionIndex: number
= 0
Defined in
input
• Protected
input: string
Defined in
kismet
• Protected
kismet: BaseKismetConnectionOptions
Defined in
linkedIds
• linkedIds: string
[] = []
Defined in
links
• links: null
| string
[] = null
Defined in
name
• name: string
Defined in
type
• Protected
Readonly
type: KismetConnectionType
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
Defined in
typeName
• Private
get
typeName(): string
Returns
string
Defined in
value
• get
value(): string
Returns
string
Defined in
Methods
addLink
▸ addLink(linkId
, index?
, hidden?
): BaseKismetConnection
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
Defined in
breakAllLinks
▸ breakAllLinks(): BaseKismetConnection
Returns
Defined in
breakLinkTo
▸ breakLinkTo(linkId
): BaseKismetConnection
Parameters
Name | Type |
---|---|
linkId | string |
Returns
Defined in
format
▸ Protected
format(keys?
): string
Parameters
Name | Type |
---|---|
keys? | string [] |
Returns
string
Defined in
isBaseConnection
▸ isBaseConnection(): this is BaseKismetConnection
Returns
this is BaseKismetConnection
Defined in
isItemConnection
▸ isItemConnection(): this is ItemConnection
Returns
this is ItemConnection
Defined in
isVariableConnection
▸ isVariableConnection(): this is VariableConnection
Returns
this is VariableConnection
Defined in
prefix
▸ prefix(index?
): string
Parameters
Name | Type |
---|---|
index? | number |
Returns
string
Defined in
setHidden
▸ setHidden(hidden
): BaseKismetConnection
Parameters
Name | Type |
---|---|
hidden | boolean |
Returns
Defined in
toString
▸ toString(index?
): string
Parameters
Name | Type |
---|---|
index? | number |
Returns
string
Defined in
convertInput
▸ Static
convertInput(input
): Record
<string
, string
| number
| boolean
>
Parameters
Name | Type |
---|---|
input | string |
Returns
Record
<string
, string
| number
| boolean
>
Defined in
convertLink
▸ Static
convertLink(type
, input
, index?
): undefined
| ItemConnection
| VariableConnection
Parameters
Name | Type |
---|---|
type | KismetConnectionType |
input | string |
index? | number |
Returns
undefined
| ItemConnection
| VariableConnection