Repository navigation
Blueprint Objects
Mtax edited this page Mar 27, 2025
·
1 revision
Blueprint Objects are Object Assets with code operating Event Methods from their respective Instantiable Constructors when their Events execute. During execution of repeated Events, respective Event Methods are submitted into the Event Queue. In case of instant Events, they are executed immediately in the scope of their Instantiable Constructor. Each Blueprint Object either is or inherits the
1. Create a new Object Asset and name it using the same name pattern as Instantiable Constructor that will use it.
2. Set
3. Implement the Instantiable Constructor.
4. Add new Events or override existing ones to customize them, according to the code of its Instantiable Constructor constructor:
Object parent with its code, which operates instantiation and basic Step, Draw and Clean Up Events.
1. Create a new Object Asset and name it using the same name pattern as Instantiable Constructor that will use it.
2. Set
Object as the parent of this newly created Object Asset.3. Implement the Instantiable Constructor.
4. Add new Events or override existing ones to customize them, according to the code of its Instantiable Constructor constructor:
- If the Event is repeatable, fill its code with the following code pattern submitting an appropriate Event Method into the Event Queue:
EventQueue.priorityQueueName.add(base.priority, [base, base.eventMethodName]);
- If the Event is instant, fill its code with the following code pattern to execute it in the scope of its Instantiable Constructor:
with (base)
{
eventMethodName();
}
Contents
The Hierarchy
● Event Queue● Blueprint Objects
● Instantiable Constructors
● Constructors inheriting Instantiable Constructors
Concepts