@kismet.ts/core / Exports / Sequence
Class: Sequence
Class for a kismet sequence
Hierarchy
↳
Sequence
Table of contents
Constructors
Properties
- defaultView
- enabled
- hasBreakpoint
- id
- items
- kismet
- mainSequence
- name
- parentSequence
- positionManager
- project
- type
Accessors
Methods
- addItem
- addItems
- addSubSequence
- clearAllBreakpoints
- isAction
- isCondition
- isEvent
- isSequence
- isSequenceActionNode
- isSequenceItem
- isSequenceNode
- isVariable
- resolve
- resolveId
- setBreakpoint
- setDisabled
- setName
- setView
- toJSON
- toString
- update
- updateItem
- updateItems
- formatSequenceReference
Constructors
constructor
• new Sequence(options?
)
Parameters
Name | Type |
---|---|
options? | SequenceBaseConstructorOptions <SchemaItemNames > |
Overrides
Defined in
Properties
defaultView
• defaultView: Required
<SequenceViewOptions
>
The location of focus when opening the sequence
Defined in
enabled
• enabled: boolean
= true
Whether this sequence can be edited
Defined in
hasBreakpoint
• hasBreakpoint: boolean
= false
Defined in
id
• Readonly
id: ProcessId
Defined in
items
• items: (SequenceItemType
| Sequence
)[] = []
The items that are added to this sequence
Defined in
kismet
• Private
kismet: Object
Type declaration
Name | Type |
---|---|
x | number |
y | number |
Defined in
mainSequence
• Private
Readonly
mainSequence: boolean
Defined in
name
• name: string
Defined in
parentSequence
• parentSequence: string
= Sequence.DefaultFormattedSequenceName
The parent sequence of this sequence.
Defined in
positionManager
• Private
positionManager: SequencePositionManager
Defined in
project
• Optional
Readonly
project: ProcessId
The id of the attached project to this sequence
Defined in
type
• Readonly
type: null
| SequenceItemTypeName
Inherited from
Defined in
Accessors
linkId
• get
linkId(): string
Returns
string
Defined in
rawData
• Private
get
rawData(): Object
Returns
Object
Name | Type |
---|---|
DrawHeight | number |
DrawWidth | number |
ObjInstanceVersion | number |
ObjPosX | number |
ObjPosY | number |
ObjectArchetype | string |
Defined in
subSequences
• get
subSequences(): Sequence
[]
The subsequences that are added in this sequence
Returns
Sequence
[]
Defined in
util
• get
util(): SequenceUtil
Returns
SequenceUtil
Defined in
DefaultFormattedSequenceName
• Static
get
DefaultFormattedSequenceName(): string
Returns
string
Defined in
Methods
addItem
▸ addItem(item
, overwriteSequence?
): Sequence
Parameters
Name | Type |
---|---|
item | SequenceItemType |
overwriteSequence? | boolean |
Returns
Defined in
addItems
▸ addItems(items
): Sequence
Parameters
Name | Type |
---|---|
items | SequenceItemType [] |
Returns
Defined in
addSubSequence
▸ addSubSequence(«destructured»
): Object
Parameters
Name | Type |
---|---|
«destructured» | SequenceOptions <SequenceItemType , SchemaItemNames > |
Returns
Object
Name | Type |
---|---|
sequence | Sequence |
subSequence | Sequence |
Defined in
clearAllBreakpoints
▸ clearAllBreakpoints(includeSubsequences?
): Sequence
Clear all breakpoints on items in this sequence
Parameters
Name | Type | Description |
---|---|---|
includeSubsequences? | boolean | Whether to clear breakpoints in subsequences (default false) |
Returns
Defined in
isAction
▸ isAction(): this is SequenceAction
Returns
this is SequenceAction
Inherited from
Defined in
isCondition
▸ isCondition(): this is SequenceCondition
Returns
this is SequenceCondition
Inherited from
Defined in
isEvent
▸ isEvent(): this is SequenceEvent<Object>
Returns
this is SequenceEvent<Object>
Inherited from
Defined in
isSequence
▸ isSequence(): this is Sequence
Returns
this is Sequence
Inherited from
Defined in
isSequenceActionNode
▸ isSequenceActionNode(): this is SequenceAction | SequenceCondition
Returns
this is SequenceAction | SequenceCondition
Inherited from
Defined in
isSequenceItem
▸ isSequenceItem(): this is SequenceItemType
Returns
this is SequenceItemType
Inherited from
Defined in
isSequenceNode
▸ isSequenceNode(): this is SequenceAction | SequenceCondition | SequenceEvent<Object>
Returns
this is SequenceAction | SequenceCondition | SequenceEvent<Object>
Inherited from
Defined in
isVariable
▸ isVariable(): this is SequenceVariable
Returns
this is SequenceVariable
Inherited from
Defined in
resolve
▸ resolve(item
): null
| SequenceItemType
| Sequence
Parameters
Name | Type |
---|---|
item | SequenceResolvable |
Returns
null
| SequenceItemType
| Sequence
Defined in
resolveId
▸ resolveId(id
): null
| SequenceItemType
| Sequence
Resolve an id to an item in this sequence
Parameters
Name | Type | Description |
---|---|---|
id | string | ProcessId | The id to search |
Returns
null
| SequenceItemType
| Sequence
Defined in
setBreakpoint
▸ setBreakpoint(enabled
): Sequence
Set / remove a breakpoint on this sequence
Parameters
Name | Type |
---|---|
enabled | boolean |
Returns
Defined in
setDisabled
▸ setDisabled(): Sequence
Disable this sequence
Returns
Defined in
setName
▸ setName(name
): Sequence
Set a new name for this sequence. Cannot be set if this sequence is the main sequence.
Parameters
Name | Type |
---|---|
name | string |
Returns
Defined in
setView
▸ setView(options
): Sequence
Set view options for this sequence
Parameters
Name | Type | Description |
---|---|---|
options | SequenceViewOptions | The default view options |
Returns
Defined in
toJSON
▸ toJSON(): Record
<string
, KismetVariableValue
>
Returns
Record
<string
, KismetVariableValue
>
Defined in
toString
▸ toString(): string
Returns
string
Defined in
update
▸ update(item
): void
Parameters
Name | Type |
---|---|
item | SequenceItemType | Sequence |
Returns
void
Defined in
updateItem
▸ updateItem(item
, updatedItem
): void
Parameters
Name | Type |
---|---|
item | SequenceResolvable |
updatedItem | SequenceItemType | Sequence |
Returns
void
Defined in
updateItems
▸ updateItems(items
): void
Parameters
Name | Type |
---|---|
items | [SequenceResolvable , SequenceItemType | Sequence ][] |
Returns
void
Defined in
formatSequenceReference
▸ Static
formatSequenceReference(name
): string
Parameters
Name | Type |
---|---|
name | string |
Returns
string