@kismet.ts/core / Exports / Sequence

Class: Sequence

Class for a kismet sequence

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Sequence(options?)

Parameters

NameType
options?SequenceBaseConstructorOptions<SchemaItemNames>

Overrides

BaseItem.constructor

Defined in

structures/base.ts:89open in new window

Properties

defaultView

defaultView: Required<SequenceViewOptions>

The location of focus when opening the sequence

Defined in

structures/base.ts:51open in new window


enabled

enabled: boolean = true

Whether this sequence can be edited

Defined in

structures/base.ts:63open in new window


hasBreakpoint

hasBreakpoint: boolean = false

Defined in

structures/base.ts:87open in new window


id

Readonly id: ProcessId

Defined in

structures/base.ts:53open in new window


items

items: (SequenceItemType | Sequence)[] = []

The items that are added to this sequence

Defined in

structures/base.ts:73open in new window


kismet

Private kismet: Object

Type declaration

NameType
xnumber
ynumber

Defined in

structures/base.ts:84open in new window


mainSequence

Private Readonly mainSequence: boolean

Defined in

structures/base.ts:86open in new window


name

name: string

Defined in

structures/base.ts:46open in new window


parentSequence

parentSequence: string = Sequence.DefaultFormattedSequenceName

The parent sequence of this sequence.

Defined in

structures/base.ts:68open in new window


positionManager

Private positionManager: SequencePositionManager

Defined in

structures/base.ts:85open in new window


project

Optional Readonly project: ProcessId

The id of the attached project to this sequence

Defined in

structures/base.ts:58open in new window


type

Readonly type: null | SequenceItemTypeName

Inherited from

BaseItem.type

Defined in

item/_base.ts:19open in new window

Accessors

linkId

get linkId(): string

Returns

string

Defined in

structures/base.ts:142open in new window


rawData

Private get rawData(): Object

Returns

Object

NameType
DrawHeightnumber
DrawWidthnumber
ObjInstanceVersionnumber
ObjPosXnumber
ObjPosYnumber
ObjectArchetypestring

Defined in

structures/base.ts:119open in new window


subSequences

get subSequences(): Sequence[]

The subsequences that are added in this sequence

Returns

Sequence[]

Defined in

structures/base.ts:78open in new window


util

get util(): SequenceUtil

Returns

SequenceUtil

Defined in

structures/base.ts:138open in new window


DefaultFormattedSequenceName

Static get DefaultFormattedSequenceName(): string

Returns

string

Defined in

structures/base.ts:134open in new window

Methods

addItem

addItem(item, overwriteSequence?): Sequence

Parameters

NameType
itemSequenceItemType
overwriteSequence?boolean

Returns

Sequence

Defined in

structures/base.ts:146open in new window


addItems

addItems(items): Sequence

Parameters

NameType
itemsSequenceItemType[]

Returns

Sequence

Defined in

structures/base.ts:156open in new window


addSubSequence

addSubSequence(«destructured»): Object

Parameters

NameType
«destructured»SequenceOptions<SequenceItemType, SchemaItemNames>

Returns

Object

NameType
sequenceSequence
subSequenceSequence

Defined in

structures/base.ts:162open in new window


clearAllBreakpoints

clearAllBreakpoints(includeSubsequences?): Sequence

Clear all breakpoints on items in this sequence

Parameters

NameTypeDescription
includeSubsequences?booleanWhether to clear breakpoints in subsequences (default false)

Returns

Sequence

Defined in

structures/base.ts:196open 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


resolve

resolve(item): null | SequenceItemType | Sequence

Parameters

NameType
itemSequenceResolvable

Returns

null | SequenceItemType | Sequence

Defined in

structures/base.ts:224open in new window


resolveId

resolveId(id): null | SequenceItemType | Sequence

Resolve an id to an item in this sequence

Parameters

NameTypeDescription
idstring | ProcessIdThe id to search

Returns

null | SequenceItemType | Sequence

Defined in

structures/base.ts:212open in new window


setBreakpoint

setBreakpoint(enabled): Sequence

Set / remove a breakpoint on this sequence

Parameters

NameType
enabledboolean

Returns

Sequence

Defined in

structures/base.ts:233open in new window


setDisabled

setDisabled(): Sequence

Disable this sequence

Returns

Sequence

Defined in

structures/base.ts:242open in new window


setName

setName(name): Sequence

Set a new name for this sequence. Cannot be set if this sequence is the main sequence.

Parameters

NameType
namestring

Returns

Sequence

Defined in

structures/base.ts:253open in new window


setView

setView(options): Sequence

Set view options for this sequence

Parameters

NameTypeDescription
optionsSequenceViewOptionsThe default view options

Returns

Sequence

Defined in

structures/base.ts:263open in new window


toJSON

toJSON(): Record<string, KismetVariableValue>

Returns

Record<string, KismetVariableValue>

Defined in

structures/base.ts:300open in new window


toString

toString(): string

Returns

string

Defined in

structures/base.ts:319open in new window


update

update(item): void

Parameters

NameType
itemSequenceItemType | Sequence

Returns

void

Defined in

structures/base.ts:273open in new window


updateItem

updateItem(item, updatedItem): void

Parameters

NameType
itemSequenceResolvable
updatedItemSequenceItemType | Sequence

Returns

void

Defined in

structures/base.ts:277open in new window


updateItems

updateItems(items): void

Parameters

NameType
items[SequenceResolvable, SequenceItemType | Sequence][]

Returns

void

Defined in

structures/base.ts:294open in new window


formatSequenceReference

Static formatSequenceReference(name): string

Parameters

NameType
namestring

Returns

string

Defined in

structures/base.ts:130open in new window