@kismet.ts/core / Exports / KismetFile

Class: KismetFile

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new KismetFile(options)

Parameters

NameType
optionsprojectOptions<SchemaItemNames>

Defined in

project.ts:46open in new window

Properties

id

Readonly id: ProcessId

Defined in

project.ts:23open in new window


layout

Optional layout: SequencePositionOptions<SchemaItemNames>

Layout options for positioning kismet nodes

Defined in

project.ts:39open in new window


mainSequence

mainSequence: Sequence

The main sequence that is attached to this project

Defined in

project.ts:28open in new window


projectName

projectName: string

The name of the kismet project. Can be found as the .udk name / map name.

Defined in

project.ts:34open in new window


streamedLevels

Optional streamedLevels: KismetFile[]

The sequences of streamed levels in this project that will be connected to this file.

Defined in

project.ts:44open in new window

Methods

debug

debug(input): void

Log text to the console if the 'debug' option in this project is enabled

Parameters

NameType
inputstring

Returns

void

Defined in

project.ts:130open in new window


debugSequences

Private debugSequences(): void

Returns

void

Defined in

project.ts:134open in new window


Private search(input, type, scope): void

Parameters

NameType
inputstring
typestring
scope"sequence" | "level" | "all"

Returns

void

Defined in

project.ts:140open in new window


toString

toString(): string

Returns

string

Defined in

project.ts:149open in new window


debug

Static debug(input, project): boolean

Log data in a project to the console

Parameters

NameType
inputstring
projectKismetFile

Returns

boolean

if the input was logged

Defined in

project.ts:122open in new window


listItems

Static listItems<T>(input): SequenceItemTypeof[]

Convert nodes to an array of items

See

KismetFile.listDefaultItems to list the default items

Example

const items = KismetFile.listItems({
 Actions: {
     MyAction
 }
}) // [MyAction]

Example

const items = KismetFile.listItems({
 Actions: {
     MyAction,
     MyCategory: {
         TestAction
     }
 }
}) // [MyAction]

Type parameters

NameType
Textends SequenceItemTypeof

Parameters

NameTypeDescription
inputPartial<Record<"Actions" | "Conditions" | "Events" | "Variables", IStore<SequenceItemTypeof>>>An object that holds the custom items

Returns

SequenceItemTypeof[]

The converted array of items

Defined in

project.ts:83open in new window