Skip to content

Class: Script

Script allows to add a script to be executed on a trigger. This is attached to an entity that will be available to the script at runtime.

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new Script(script: string, trigger: UPDATE): Script

Parameters:

Name Type
script string
trigger UPDATE

Returns: Script

Inherited from: Component

Properties

key

key: string

Inherited from: Component.key


script

script: string

script is the name of the script to execute.


trigger

trigger: UPDATE

trigger is the script trigger to cause the script to execute.


KEY

Readonly Static KEY: script= "script"


MESSAGE_ADD

Readonly Static MESSAGE_ADD: component_add= "component_add"

Inherited from: Component.MESSAGE_ADD


MESSAGE_REMOVE

Readonly Static MESSAGE_REMOVE: component_remove= "component_remove"

Inherited from: Component.MESSAGE_REMOVE

Methods

Free

Free(): void

Returns: void

Inherited from: Component