Skip to main content

LoveNode

Description:

  A Dora scene node that owns and runs one isolated Love Lua state.

Class Object: LoveNode Class.

bootFile

Type: Field.

Description:

  The boot file or package path used to create this LoveNode.

Signature:

bootFile: string

sourceRoot

Type: Field.

Description:

  The root directory used to resolve this LoveNode's project files.

Signature:

sourceRoot: string

lastError

Type: Field.

Description:

  The most recent error reported while loading or running the Love project. An empty string means no error has been reported.

Signature:

lastError: string

running

Type: Field.

Description:

  Whether this LoveNode currently owns a running Love Lua state.

Signature:

running: boolean

restart

Type: Function.

Description:

  Destroys the old Love state, reloads the boot file, and starts a new state.

Signature:

restart: function(self: LoveNode): boolean

Returns:

Return TypeDescription
booleanWhether the Love project was restarted successfully.