@kismet.ts/core / Exports / BaseSequenceItem

Class: BaseSequenceItem

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new BaseSequenceItem(options)

Parameters

NameType
optionsBaseKismetItemOptions & { type?: SequenceItemTypeName }

Overrides

BaseItem.constructor

Defined in

item/base.ts:77open in new window

Properties

_category

Private _category: undefined | string = undefined

Defined in

item/base.ts:74open in new window


_connectionKeys

Private _connectionKeys: keyof KismetConnections[]

Defined in

item/base.ts:73open in new window


commentOptions

commentOptions: KismetComment = {}

Defined in

item/base.ts:62open in new window


connections

connections: KismetConnections

Defined in

item/base.ts:64open in new window


id

Readonly id: ProcessId

Defined in

item/base.ts:67open in new window


inputs

Protected inputs: Object

Type declaration

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

Defined in

item/base.ts:75open in new window


name

name: string

Defined in

item/base.ts:68open in new window


raw

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

Defined in

item/base.ts:70open in new window


rawData

rawData: BaseKismetItemRawData

Defined in

item/base.ts:71open in new window


sequence

sequence: string

Defined in

item/base.ts:65open in new window


type

Readonly type: null | SequenceItemTypeName

Inherited from

BaseItem.type

Defined in

item/_base.ts:19open in new window

Accessors

ClassData

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

Returns

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

Defined in

item/base.ts:142open in new window


baseJSON

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

Returns

Record<string, KismetVariableValue>

Defined in

item/base.ts:115open in new window


category

get category(): undefined | string

Returns

undefined | string

Defined in

item/base.ts:138open in new window


linkId

get linkId(): string

Returns

string

Defined in

item/base.ts:146open in new window


position

get position(): KismetPosition

Returns

KismetPosition

Defined in

item/base.ts:150open in new window


rawName

get rawName(): string

Returns

string

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

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

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

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

Defined in

item/base.ts:173open in new window


isAction

isAction(): this is SequenceAction

Returns

this is SequenceAction

Inherited from

BaseItem.isAction

Defined in

item/_base.ts:29open in new window


isCondition

isCondition(): this is SequenceCondition

Returns

this is SequenceCondition

Inherited from

BaseItem.isCondition

Defined in

item/_base.ts:33open in new window


isEvent

isEvent(): this is SequenceEvent<Object>

Returns

this is SequenceEvent<Object>

Inherited from

BaseItem.isEvent

Defined in

item/_base.ts:37open in new window


isSequence

isSequence(): this is Sequence

Returns

this is Sequence

Inherited from

BaseItem.isSequence

Defined in

item/_base.ts:41open in new window


isSequenceActionNode

isSequenceActionNode(): this is SequenceAction | SequenceCondition

Returns

this is SequenceAction | SequenceCondition

Inherited from

BaseItem.isSequenceActionNode

Defined in

item/_base.ts:49open in new window


isSequenceItem

isSequenceItem(): this is SequenceItemType

Returns

this is SequenceItemType

Inherited from

BaseItem.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

BaseItem.isSequenceNode

Defined in

item/_base.ts:53open in new window


isVariable

isVariable(): this is SequenceVariable

Returns

this is SequenceVariable

Inherited from

BaseItem.isVariable

Defined in

item/_base.ts:60open in new window


setComment

setComment(comment): BaseSequenceItem

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

BaseSequenceItem

Defined in

item/base.ts:216open in new window


setPosition

setPosition(position, offset?): BaseSequenceItem

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

BaseSequenceItem

Defined in

item/base.ts:244open in new window


setProperty

setProperty(...properties): BaseSequenceItem

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

BaseSequenceItem

Defined in

item/base.ts:258open in new window


setSequence

setSequence(sequence, addToSequence?): BaseSequenceItem

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

BaseSequenceItem

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

Defined in

item/base.ts:186open in new window


toJSON

toJSON(): Record<string, KismetVariableValue>

Returns

Record<string, KismetVariableValue>

Defined in

item/base.ts:287open in new window


toString

toString(): string

Returns

string

Defined in

item/base.ts:311open 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

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

Defined in

item/base.ts:322open in new window