introducing callDepth

master
Theunis J. Botha 2021-09-08 04:59:31 +02:00
parent 0688a885d3
commit 914e03c8e4
34 changed files with 761 additions and 62 deletions

382
dist/r3.js vendored
View File

@ -1,6 +1,6 @@
class R3 {
static version = '2.0.196';
static compileDate = '2021 Sep 07 - 09:07:08 am';
static version = '2.0.199';
static compileDate = '2021 Sep 08 - 04:57:21 am';
}
/**
@ -20,6 +20,12 @@ class System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
if (typeof options.started === 'undefined') {
options.started = false;
}
@ -29,6 +35,13 @@ class System {
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -46,8 +59,21 @@ class Event {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
/**
@ -278,16 +304,17 @@ Event.MOUSE_MOVE = 0xd;
Event.MOUSE_UP = 0xe;
Event.MOUSE_WHEEL = 0xf;
Event.OBJECT_CREATED = 0x10;
Event.PAUSE = 0x11;
Event.RESTART = 0x12;
Event.START = 0x13;
Event.TOUCH_CANCEL = 0x14;
Event.TOUCH_END = 0x15;
Event.TOUCH_MOVE = 0x16;
Event.TOUCH_START = 0x17;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x18;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x19;
Event.MAX_EVENTS = 0x1a;
Event.OBJECT_INITIALIZED = 0x11;
Event.PAUSE = 0x12;
Event.RESTART = 0x13;
Event.START = 0x14;
Event.TOUCH_CANCEL = 0x15;
Event.TOUCH_END = 0x16;
Event.TOUCH_MOVE = 0x17;
Event.TOUCH_START = 0x18;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x19;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x1a;
Event.MAX_EVENTS = 0x1b;
Event.GetEventName = function(eventId) {
@ -308,15 +335,16 @@ Event.GetEventName = function(eventId) {
case 0xe : return 'mouse_up';
case 0xf : return 'mouse_wheel';
case 0x10 : return 'object_created';
case 0x11 : return 'pause';
case 0x12 : return 'restart';
case 0x13 : return 'start';
case 0x14 : return 'touch_cancel';
case 0x15 : return 'touch_end';
case 0x16 : return 'touch_move';
case 0x17 : return 'touch_start';
case 0x18 : return 'update_from_instance_after';
case 0x19 : return 'update_from_instance_before';
case 0x11 : return 'object_initialized';
case 0x12 : return 'pause';
case 0x13 : return 'restart';
case 0x14 : return 'start';
case 0x15 : return 'touch_cancel';
case 0x16 : return 'touch_end';
case 0x17 : return 'touch_move';
case 0x18 : return 'touch_start';
case 0x19 : return 'update_from_instance_after';
case 0x1a : return 'update_from_instance_before';
default :
throw new Error('Event type not defined : ' + eventId);
}
@ -333,8 +361,21 @@ class Utils {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
static GetFirstParent(object, constructor) {
@ -1628,10 +1669,23 @@ class SystemInput extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
/**
@ -1925,10 +1979,23 @@ class SystemLinking extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
/**
@ -2080,10 +2147,23 @@ class SystemSocket extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
/**
@ -2203,10 +2283,23 @@ class SystemTest extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
/**
@ -2330,10 +2423,23 @@ class Runtime extends Event {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2405,6 +2511,12 @@ class R3Object extends Event {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
if (typeof options.register === 'undefined') {
@ -2413,6 +2525,13 @@ class R3Object extends Event {
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2502,10 +2621,23 @@ class Coder extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2595,10 +2727,23 @@ class Default extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2688,10 +2833,23 @@ class GUI extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2781,10 +2939,23 @@ class Graphics extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2874,10 +3045,23 @@ class Physics extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -2967,10 +3151,23 @@ class Socket extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3060,10 +3257,23 @@ class Statistics extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3166,10 +3376,23 @@ class Component extends R3Object {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
this.emit(Event.COMPONENT_CREATED, this);
}
@ -3335,10 +3558,23 @@ class Project extends R3Object {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3446,10 +3682,23 @@ class CodeMirror extends Coder {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3557,10 +3806,23 @@ class ControlKit extends GUI {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3668,10 +3930,23 @@ class Three extends Graphics {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3779,10 +4054,23 @@ class Bullet extends Physics {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -3890,10 +4178,23 @@ class Stats extends Statistics {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -4014,10 +4315,23 @@ class Image extends Component {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}
@ -4138,10 +4452,23 @@ class Input extends Component {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
this.emit(Event.INPUT_COMPONENT_INITIALIZED);
}
@ -4281,10 +4608,23 @@ class Touch extends Input {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
Object.assign(this, options);
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "r3",
"version" : "2.0.196",
"version" : "2.0.199",
"description": "",
"private": true,
"dependencies": {

28
r3.php
View File

@ -1241,30 +1241,24 @@ function generateEvents()
$line = fgets($fn);
$matches = [];
$eventMatchRegex = '/Event\.[A-Z]{2}[A-Z0-9_]+/';
if (
preg_match('/Event\./', $line) &&
!preg_match('/Emit|Subscribe|.call|GetEventName|Async|prototype/', $line)
preg_match($eventMatchRegex, $line) &&
preg_match_all($eventMatchRegex, $line, $matches) &&
$matches[0] && $matches[0][0]
) {
$matches = [];
preg_match_all('/(Event\..*?)(\s+|,|;|$|\))/', $line, $matches);
if ($matches[1] && $matches[1][0]) {
$event = $matches[1][0];
if (in_array($event, $events)) {
// Do nothing
} else {
array_push($events, $event);
}
$event = $matches[0][0];
if (in_array($event, $events)) {
// Do nothing
} else {
array_push($events, $event);
}
}
}
fclose($fn);

View File

@ -128,6 +128,12 @@ class Component extends R3Object {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -141,6 +147,13 @@ class Component extends R3Object {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
this.emit(Event.COMPONENT_CREATED, this);
//CUSTOM_AFTER_INIT_END

View File

@ -141,6 +141,12 @@ class Image extends Component {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -154,6 +160,13 @@ class Image extends Component {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -141,6 +141,12 @@ class Input extends Component {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -154,6 +160,13 @@ class Input extends Component {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
this.emit(Event.INPUT_COMPONENT_INITIALIZED);
//CUSTOM_AFTER_INIT_END

View File

@ -159,6 +159,12 @@ class Touch extends Input {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -172,6 +178,13 @@ class Touch extends Input {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -34,6 +34,12 @@ class Event {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
@ -45,6 +51,13 @@ class Event {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
@ -324,16 +337,17 @@ Event.MOUSE_MOVE = 0xd;
Event.MOUSE_UP = 0xe;
Event.MOUSE_WHEEL = 0xf;
Event.OBJECT_CREATED = 0x10;
Event.PAUSE = 0x11;
Event.RESTART = 0x12;
Event.START = 0x13;
Event.TOUCH_CANCEL = 0x14;
Event.TOUCH_END = 0x15;
Event.TOUCH_MOVE = 0x16;
Event.TOUCH_START = 0x17;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x18;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x19;
Event.MAX_EVENTS = 0x1a;
Event.OBJECT_INITIALIZED = 0x11;
Event.PAUSE = 0x12;
Event.RESTART = 0x13;
Event.START = 0x14;
Event.TOUCH_CANCEL = 0x15;
Event.TOUCH_END = 0x16;
Event.TOUCH_MOVE = 0x17;
Event.TOUCH_START = 0x18;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x19;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x1a;
Event.MAX_EVENTS = 0x1b;
Event.GetEventName = function(eventId) {
@ -354,15 +368,16 @@ Event.GetEventName = function(eventId) {
case 0xe : return 'mouse_up';
case 0xf : return 'mouse_wheel';
case 0x10 : return 'object_created';
case 0x11 : return 'pause';
case 0x12 : return 'restart';
case 0x13 : return 'start';
case 0x14 : return 'touch_cancel';
case 0x15 : return 'touch_end';
case 0x16 : return 'touch_move';
case 0x17 : return 'touch_start';
case 0x18 : return 'update_from_instance_after';
case 0x19 : return 'update_from_instance_before';
case 0x11 : return 'object_initialized';
case 0x12 : return 'pause';
case 0x13 : return 'restart';
case 0x14 : return 'start';
case 0x15 : return 'touch_cancel';
case 0x16 : return 'touch_end';
case 0x17 : return 'touch_move';
case 0x18 : return 'touch_start';
case 0x19 : return 'update_from_instance_after';
case 0x1a : return 'update_from_instance_before';
default :
throw new Error('Event type not defined : ' + eventId);
}

View File

@ -110,6 +110,12 @@ class Project extends R3Object {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Project extends R3Object {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -92,6 +92,12 @@ class R3Object extends Event {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -108,6 +114,13 @@ class R3Object extends Event {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -1,6 +1,6 @@
class R3 {
static version = '2.0.196';
static compileDate = '2021 Sep 07 - 09:07:08 am';
static version = '2.0.199';
static compileDate = '2021 Sep 08 - 04:57:21 am';
}
//GENERATED_IMPORTS_START

View File

@ -128,6 +128,12 @@ class Bullet extends Physics {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -141,6 +147,13 @@ class Bullet extends Physics {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -128,6 +128,12 @@ class CodeMirror extends Coder {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -141,6 +147,13 @@ class CodeMirror extends Coder {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class Coder extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Coder extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -128,6 +128,12 @@ class ControlKit extends GUI {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -141,6 +147,13 @@ class ControlKit extends GUI {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class Default extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Default extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class GUI extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class GUI extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class Graphics extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Graphics extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class Physics extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Physics extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -91,6 +91,12 @@ class Runtime extends Event {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -104,6 +110,13 @@ class Runtime extends Event {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class Socket extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Socket extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -110,6 +110,12 @@ class Statistics extends Runtime {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -123,6 +129,13 @@ class Statistics extends Runtime {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -128,6 +128,12 @@ class Stats extends Statistics {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -141,6 +147,13 @@ class Stats extends Statistics {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -128,6 +128,12 @@ class Three extends Graphics {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -141,6 +147,13 @@ class Three extends Graphics {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -98,6 +98,12 @@ class SystemInput extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -111,6 +117,13 @@ class SystemInput extends System {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -90,6 +90,12 @@ class SystemLinking extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -103,6 +109,13 @@ class SystemLinking extends System {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -88,6 +88,12 @@ class SystemSocket extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -101,6 +107,13 @@ class SystemSocket extends System {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -88,6 +88,12 @@ class SystemTest extends System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -101,6 +107,13 @@ class SystemTest extends System {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -38,6 +38,12 @@ class System {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
//GENERATED_OPTIONS_INIT_START
if (typeof options.started === 'undefined') {
options.started = false;
@ -55,6 +61,13 @@ class System {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -28,6 +28,12 @@ class Utils {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
@ -39,6 +45,13 @@ class Utils {
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -6,6 +6,12 @@
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
@ -17,6 +23,13 @@
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -4,6 +4,12 @@
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
@ -17,6 +23,13 @@
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
Event.Emit(Event.OBJECT_INITIALIZED);
} else {
delete this.callDepth;
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}

View File

@ -1,7 +1,6 @@
GENERATED_ASYNC_METHOD
GENERATED_CONSTRUCTOR
GENERATED_CONSTRUCTOR_EXTENDS
GENERATED_CONVENIENT_DEFINES
GENERATED_CREATE_INSTANCE_METHOD
GENERATED_CREATE_INSTANCE_OPTIONS
GENERATED_DEFINES

View File

@ -1 +1 @@
2.0.196
2.0.199