@kismet.ts/core / Exports / SequenceCondition
Class: SequenceCondition
Hierarchy
↳
SequenceCondition
Table of contents
Constructors
Properties
Accessors
Methods
- addOutputConnection
- breakAllLinks
- equals
- getConnection
- hideUnusedConnections
- isAction
- isCondition
- isEvent
- isSequence
- isSequenceActionNode
- isSequenceItem
- isSequenceNode
- isVariable
- setBreakpoint
- setComment
- setPosition
- setProperty
- setSequence
- setTargets
- setVariable
- showAllConnections
- toJSON
- toString
- fromJSON
- fromRaw
Constructors
constructor
• new SequenceCondition(options
)
Parameters
Name | Type |
---|---|
options | BaseKismetActionOptions & KismetObjectCommentOptions & BaseKismetItemOptions |
Overrides
Defined in
Properties
commentOptions
• commentOptions: KismetComment
= {}
Inherited from
Defined in
connections
• connections: KismetConnections
Inherited from
Defined in
hasBreakpoint
• hasBreakpoint: boolean
= false
Inherited from
Defined in
id
• Readonly
id: ProcessId
Inherited from
Defined in
inputs
• Protected
inputs: Object
Type declaration
Name | Type |
---|---|
input? | string [] |
output? | string [] |
variable? | string [] |
Inherited from
Defined in
name
• name: string
Inherited from
Defined in
raw
• raw: [string
, KismetVariableValue
][] = []
Inherited from
Defined in
rawData
• rawData: BaseKismetItemRawData
Inherited from
Defined in
sequence
• sequence: string
Inherited from
Defined in
type
• Readonly
type: null
| SequenceItemTypeName
Inherited from
Defined in
Accessors
ClassData
• get
ClassData(): Record
<"Class"
| "ClassType"
| "Package"
, string
>
Returns
Record
<"Class"
| "ClassType"
| "Package"
, string
>
Inherited from
SequenceAction.ClassData
Defined in
baseJSON
• Private
get
baseJSON(): Record
<string
, KismetVariableValue
>
Returns
Record
<string
, KismetVariableValue
>
Inherited from
SequenceAction.baseJSON
Defined in
category
• get
category(): undefined
| string
Returns
undefined
| string
Inherited from
SequenceAction.category
Defined in
linkId
• get
linkId(): string
Returns
string
Inherited from
SequenceAction.linkId
Defined in
position
• get
position(): KismetPosition
Returns
Inherited from
SequenceAction.position
Defined in
rawName
• get
rawName(): string
Returns
string
Inherited from
SequenceAction.rawName
Defined in
Methods
addOutputConnection
▸ addOutputConnection(from
, to
): SequenceCondition
Adds a new output connection
Parameters
Name | Type | Description |
---|---|---|
from | Object | Data from this node |
from.name | string | - |
to | Object | The node to connect to |
to.item | SequenceNode | - |
to.name | string | - |
Returns
Inherited from
SequenceAction.addOutputConnection
Defined in
breakAllLinks
▸ 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
Defined in
equals
▸ equals(item
): boolean
Check whether another item is of the same type as this item
Parameters
Name | Type |
---|---|
item | SequenceItemType |
Returns
boolean
Inherited from
Defined in
getConnection
▸ getConnection(type
, connectionName?
): null
| BaseKismetConnection
| KismetConnection
Parameters
Name | Type |
---|---|
type | KismetConnectionType |
connectionName? | string |
Returns
null
| BaseKismetConnection
| KismetConnection
Inherited from
Defined in
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
SequenceAction.hideUnusedConnections
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
SequenceAction.isSequenceActionNode
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
setBreakpoint
▸ setBreakpoint(enabled
): SequenceCondition
Parameters
Name | Type |
---|---|
enabled | boolean |
Returns
Inherited from
Defined in
setComment
▸ setComment(comment
): SequenceCondition
Set a comment on this item. This comment will be visible in the editor
Parameters
Name | Type | Description |
---|---|---|
comment | string | { comment? : string ; outputCommentToScreen? : boolean ; supressAutoComment? : boolean } | The text of the comment or the text in combination with comment options |
Returns
Inherited from
Defined in
setPosition
▸ setPosition(position
, offset?
): SequenceCondition
Set a new position for this item
Parameters
Name | Type | Description |
---|---|---|
position | KismetPosition | The new position coordinates |
offset? | boolean | Whether to use the new position as an offset to the current position (default: false) |
Returns
Inherited from
Defined in
setProperty
▸ setProperty(...properties
): SequenceCondition
Set a variable if the variable has no variable connection. Used for properties you can set in the properties screen in the editor.
Parameters
Name | Type | Description |
---|---|---|
...properties | { name : string ; value : KismetVariableValue }[] | The properties to set. Will not overwrite currently set properties |
Returns
Inherited from
Defined in
setSequence
▸ setSequence(sequence
, addToSequence?
): SequenceCondition
Change the sequence of this item
Parameters
Name | Type | Description |
---|---|---|
sequence | string | Sequence | The new sequence of this item: the linkId or the sequence itself |
addToSequence? | boolean | If 'sequence' is the new sequence, whether to add the item to the sequence |
Returns
Inherited from
Defined in
setTargets
▸ setTargets(objects
): SequenceCondition
Set the targets for this node
Parameters
Name | Type | Description |
---|---|---|
objects | string [] | The object references to the targets |
Returns
Inherited from
Defined in
setVariable
▸ setVariable(variableName
, value
, hidden?
): SequenceCondition
Parameters
Name | Type |
---|---|
variableName | string |
value | string | number | SequenceVariable |
hidden? | boolean |
Returns
Inherited from
Defined in
showAllConnections
▸ showAllConnections(): void
Show all connection sockets.
Same as the editor right click > Show all connectors
Returns
void
Inherited from
SequenceAction.showAllConnections
Defined in
toJSON
▸ toJSON(): Record
<string
, KismetVariableValue
>
Returns
Record
<string
, KismetVariableValue
>
Inherited from
Defined in
toString
▸ toString(): string
Returns
string
Inherited from
Defined in
fromJSON
▸ Static
fromJSON(input
): BaseSequenceItem
Converts an object to an item ands sets all other variables on the item. Special object keys:
Parameters
Name | Type |
---|---|
input | Record <string , KismetVariableValue > |
Returns
Inherited from
Defined in
fromRaw
▸ Static
fromRaw(input
): BaseSequenceItem
Converts a two dimensional array of properties to an object. Then calls fromJSON with the object
Parameters
Name | Type |
---|---|
input | [string , KismetVariableValue ][] |