Class: Script

Script()

new Script()

Source:

Members

entity :Entity|null

Type:
  • Entity | null
Source:

world :World|null

Type:
  • World | null
Source:

Methods

onSetup()

Method the user can implement. Called when script is ready.
Source:

setup(entity, world)

called by the Scriptsystem when script is ready
Parameters:
Name Type Description
entity Entity
world World
Source:

update()

Method can be implemented by user. Here you can handle all the operations for the entity the component is attached to.
Source: