Skip to content

Constructors inheriting Instantiable Constructors

Mtax edited this page Mar 27, 2025 · 1 revision

Description

Constructors inheriting Instantiable Constructors are Script Assets containing constructors, which inherit either the Instance constructor or other constructor that inherits it. This provides them ability to access createInstance() and destroyInstance() methods to operate Instances and to declare Event Methods they will execute in scope of the constructor during Events. These are executed either at instant or are submitted into and repeated by the Event Queue, the execution order of which is configurable through the inherited priority property. Creating as many inheriting constructors as the project requires and calling their createInstance() method is the primary way of interacting with the concept of Instantiable Constructors. Otherwise, these constructors behave as normal constructors and can have their own properties and methods. As such, if a constructor is intended to solely operate through Event Methods, it is recommended to organize its properties other than priority by declaring them inside createEvent() Event Method, as it would be done through Object Asset code.

Clone this wiki locally