@kismet.ts/parsers-node / Exports / LocalClassesParser

Class: LocalClassesParser

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LocalClassesParser(options)

Parameters

NameType
optionsLocalClassesCreateOptions

Defined in

classes/extractor/parser.ts:15open in new window

Properties

options

options: LocalClassesCreateOptions

Defined in

classes/extractor/parser.ts:13open in new window

Methods

createLocalClasses

createLocalClasses(): Promise<void>

Create / update custom class files with the set options

Returns

Promise<void>

Defined in

classes/extractor/parser.ts:42open in new window


resolvePath

resolvePath(path): undefined | string

Parameters

NameType
pathstring

Returns

undefined | string

Defined in

classes/extractor/parser.ts:33open in new window


setBlenderOptions

setBlenderOptions(options): LocalClassesParser

Customize the generated addon for kismet nodes in Blender

Parameters

NameTypeDescription
optionsBlenderAddonGeneratorOptionsThe blender addon creator options

Returns

LocalClassesParser

Defined in

classes/extractor/parser.ts:52open in new window


setClassPackages

setClassPackages(names): LocalClassesParser

Only include classes from the packages. If no packages are set, all packages will be read.

Parameters

NameTypeDescription
namesstring[]The names of the class packages (without file extension)

Returns

LocalClassesParser

Defined in

classes/extractor/parser.ts:123open in new window


setDebugOptions

setDebugOptions(enabled): LocalClassesParser

Enable debugging while the classes are read

Parameters

NameType
enabledboolean

Returns

LocalClassesParser

Defined in

classes/extractor/parser.ts:67open in new window


setExportOptions

setExportOptions(options?): LocalClassesParser

Set all export options for extracting the custom classes

Parameters

NameType
options?LocalClassesCreateOptions

Returns

LocalClassesParser

Defined in

classes/extractor/parser.ts:77open in new window


setExportPath

setExportPath(path, options?): LocalClassesParser

Set the export path which will hold the exported classes and more

Parameters

NameTypeDescription
pathstringThe absolute (or relative) path to the export folder
options?PathCreateOptionsPath options: - check: whether to check if the path is valid

Returns

LocalClassesParser

Defined in

classes/extractor/parser.ts:108open in new window


setImportPath

setImportPath(path, options?): LocalClassesParser

Set the import path of the directory that holds the JSON files with information about the custom classes.

Parameters

NameTypeDescription
pathstringThe absolute path of the folder
options?PathCreateOptions-

Returns

LocalClassesParser

Defined in

classes/extractor/parser.ts:91open in new window


validatePath

Protected validatePath(path, options?): void

Parameters

NameType
pathundefined | null | string
options?Object
options.onlyAbsolute?boolean

Returns

void

Defined in

classes/extractor/parser.ts:19open in new window


validatePaths

validatePaths(): void

Returns

void

Defined in

classes/extractor/parser.ts:28open in new window