@kismet.ts/core / Exports / SequenceVariable

Class: SequenceVariable

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new SequenceVariable(options)

Parameters

NameType
optionsBaseKismetVariableOptions & BaseKismetItemOptions

Overrides

BaseSequenceItem.constructor

Defined in

structures/Variable.ts:10open in new window

Properties

commentOptions

commentOptions: KismetComment = {}

Inherited from

BaseSequenceItem.commentOptions

Defined in

item/base.ts:62open in new window


connections

connections: KismetConnections

Inherited from

BaseSequenceItem.connections

Defined in

item/base.ts:64open in new window


id

Readonly id: ProcessId

Inherited from

BaseSequenceItem.id

Defined in

item/base.ts:67open in new window


inputs

Protected inputs: Object

Type declaration

NameType
input?string[]
output?string[]
variable?string[]

Inherited from

BaseSequenceItem.inputs

Defined in

item/base.ts:75open in new window


name

name: string

Inherited from

BaseSequenceItem.name

Defined in

item/base.ts:68open in new window


raw

raw: [string, KismetVariableValue][] = []

Inherited from

BaseSequenceItem.raw

Defined in

item/base.ts:70open in new window


rawData

rawData: BaseKismetItemRawData

Inherited from

BaseSequenceItem.rawData

Defined in

item/base.ts:71open in new window


sequence

sequence: string

Inherited from

BaseSequenceItem.sequence

Defined in

item/base.ts:65open in new window


type

Readonly type: null | SequenceItemTypeName

Inherited from

BaseSequenceItem.type

Defined in

item/_base.ts:19open in new window


variableName

variableName: null | string

Defined in

structures/Variable.ts:8open in new window

Accessors

ClassData

get ClassData(): Record<"Class" | "ClassType" | "Package", string>

Returns

Record<"Class" | "ClassType" | "Package", string>

Inherited from

BaseSequenceItem.ClassData

Defined in

item/base.ts:142open in new window


baseJSON

Private get baseJSON(): Record<string, KismetVariableValue>

Returns

Record<string, KismetVariableValue>

Inherited from

BaseSequenceItem.baseJSON

Defined in

item/base.ts:115open in new window


category

get category(): undefined | string

Returns

undefined | string

Inherited from

BaseSequenceItem.category

Defined in

item/base.ts:138open in new window


linkId

get linkId(): string

Returns

string

Inherited from

BaseSequenceItem.linkId

Defined in

item/base.ts:146open in new window


position

get position(): KismetPosition

Returns

KismetPosition

Inherited from

BaseSequenceItem.position

Defined in

item/base.ts:150open in new window


rawName

get rawName(): string

Returns

string

Inherited from

BaseSequenceItem.rawName

Defined in

item/base.ts:133open in new window

Methods

breakAllLinks(): void

Break all object links to other items.

Same as the editor right click > Break all links to Object(s)

Returns

void

Inherited from

BaseSequenceItem.breakAllLinks

Defined in

item/base.ts:162open in new window


equals

equals(item): boolean

Check whether another item is of the same type as this item

Parameters

NameType
itemSequenceItemType

Returns

boolean

Inherited from

BaseSequenceItem.equals

Defined in

item/base.ts:196open in new window


getConnection

getConnection(type, connectionName?): null | BaseKismetConnection | KismetConnection

Parameters

NameType
typeKismetConnectionType
connectionName?string

Returns

null | BaseKismetConnection | KismetConnection

Inherited from

BaseSequenceItem.getConnection

Defined in

item/base.ts:200open in new window


hideUnusedConnections

hideUnusedConnections(): void

Hide all connection sockets that have no connections currently.

Same as the editor right click > Hide unused connectors

Returns

void

Inherited from

BaseSequenceItem.hideUnusedConnections

Defined in

item/base.ts:173open in new window


isAction

isAction(): this is SequenceAction

Returns

this is SequenceAction

Inherited from

BaseSequenceItem.isAction

Defined in

item/_base.ts:29open in new window


isCondition

isCondition(): this is SequenceCondition

Returns

this is SequenceCondition

Inherited from

BaseSequenceItem.isCondition

Defined in

item/_base.ts:33open in new window


isEvent

isEvent(): this is SequenceEvent<Object>

Returns

this is SequenceEvent<Object>

Inherited from

BaseSequenceItem.isEvent

Defined in

item/_base.ts:37open in new window


isSequence

isSequence(): this is Sequence

Returns

this is Sequence

Inherited from

BaseSequenceItem.isSequence

Defined in

item/_base.ts:41open in new window


isSequenceActionNode

isSequenceActionNode(): this is SequenceAction | SequenceCondition

Returns

this is SequenceAction | SequenceCondition

Inherited from

BaseSequenceItem.isSequenceActionNode

Defined in

item/_base.ts:49open in new window


isSequenceItem

isSequenceItem(): this is SequenceItemType

Returns

this is SequenceItemType

Inherited from

BaseSequenceItem.isSequenceItem

Defined in

item/_base.ts:45open in new window


isSequenceNode

isSequenceNode(): this is SequenceAction | SequenceCondition | SequenceEvent<Object>

Returns

this is SequenceAction | SequenceCondition | SequenceEvent<Object>

Inherited from

BaseSequenceItem.isSequenceNode

Defined in

item/_base.ts:53open in new window


isVariable

isVariable(): this is SequenceVariable

Returns

this is SequenceVariable

Inherited from

BaseSequenceItem.isVariable

Defined in

item/_base.ts:60open in new window


setComment

setComment(comment): SequenceVariable

Set a comment on this item. This comment will be visible in the editor

Parameters

NameTypeDescription
commentstring | { comment?: string ; outputCommentToScreen?: boolean ; supressAutoComment?: boolean }The text of the comment or the text in combination with comment options

Returns

SequenceVariable

Inherited from

BaseSequenceItem.setComment

Defined in

item/base.ts:216open in new window


setName

setName(name): SequenceVariable

Parameters

NameType
namestring

Returns

SequenceVariable

Defined in

structures/Variable.ts:16open in new window


setPosition

setPosition(position, offset?): SequenceVariable

Set a new position for this item

Parameters

NameTypeDescription
positionKismetPositionThe new position coordinates
offset?booleanWhether to use the new position as an offset to the current position (default: false)

Returns

SequenceVariable

Inherited from

BaseSequenceItem.setPosition

Defined in

item/base.ts:244open in new window


setProperty

setProperty(...properties): SequenceVariable

Set a variable if the variable has no variable connection. Used for properties you can set in the properties screen in the editor.

Parameters

NameTypeDescription
...properties{ name: string ; value: KismetVariableValue }[]The properties to set. Will not overwrite currently set properties

Returns

SequenceVariable

Inherited from

BaseSequenceItem.setProperty

Defined in

item/base.ts:258open in new window


setSequence

setSequence(sequence, addToSequence?): SequenceVariable

Change the sequence of this item

Parameters

NameTypeDescription
sequencestring | SequenceThe new sequence of this item: the linkId or the sequence itself
addToSequence?booleanIf 'sequence' is the new sequence, whether to add the item to the sequence

Returns

SequenceVariable

Inherited from

BaseSequenceItem.setSequence

Defined in

item/base.ts:273open in new window


showAllConnections

showAllConnections(): void

Show all connection sockets.

Same as the editor right click > Show all connectors

Returns

void

Inherited from

BaseSequenceItem.showAllConnections

Defined in

item/base.ts:186open in new window


toJSON

toJSON(): Record<string, KismetVariableValue>

Returns

Record<string, KismetVariableValue>

Inherited from

BaseSequenceItem.toJSON

Defined in

item/base.ts:287open in new window


toString

toString(): string

Returns

string

Overrides

BaseSequenceItem.toString

Defined in

structures/Variable.ts:22open in new window


fromJSON

Static fromJSON(input): BaseSequenceItem

Converts an object to an item ands sets all other variables on the item. Special object keys:

Parameters

NameType
inputRecord<string, KismetVariableValue>

Returns

BaseSequenceItem

Inherited from

BaseSequenceItem.fromJSON

Defined in

item/base.ts:342open in new window


fromRaw

Static fromRaw(input): BaseSequenceItem

Converts a two dimensional array of properties to an object. Then calls fromJSON with the object

Parameters

NameType
input[string, KismetVariableValue][]

Returns

BaseSequenceItem

Inherited from

BaseSequenceItem.fromRaw

Defined in

item/base.ts:322open in new window