From cdcad35256f5571b5c89d885a151a5c4ac66d962 Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Mon, 13 Sep 2021 10:14:09 +0200 Subject: [PATCH] fixed runtimes --- dist/r3.js | 624 +++++++++++------- package.json | 2 +- src/r3/r3-event.js | 148 ++--- src/r3/r3-r3.js | 4 +- src/r3/r3-runtime/index.js | 2 - src/r3/r3-runtime/r3-runtime-bullet.js | 61 +- src/r3/r3-runtime/r3-runtime-code-mirror.js | 64 +- src/r3/r3-runtime/r3-runtime-coder.js | 61 +- src/r3/r3-runtime/r3-runtime-control-kit.js | 64 +- src/r3/r3-runtime/r3-runtime-d-o-m.js | 61 +- src/r3/r3-runtime/r3-runtime-default.js | 127 ---- src/r3/r3-runtime/r3-runtime-document.js | 64 +- src/r3/r3-runtime/r3-runtime-g-u-i.js | 61 +- src/r3/r3-runtime/r3-runtime-graphics.js | 61 +- src/r3/r3-runtime/r3-runtime-physics.js | 61 +- src/r3/r3-runtime/r3-runtime-socket.js | 61 +- src/r3/r3-runtime/r3-runtime-statistics.js | 61 +- src/r3/r3-runtime/r3-runtime-stats.js | 64 +- src/r3/r3-runtime/r3-runtime-three.js | 64 +- src/r3/r3-runtime/r3-runtime.js | 19 +- src/templates/runtime_extends.template | 38 +- .../runtime_extends_constructor.template | 18 +- version | 2 +- 23 files changed, 1260 insertions(+), 532 deletions(-) delete mode 100644 src/r3/r3-runtime/r3-runtime-default.js diff --git a/dist/r3.js b/dist/r3.js index 4840f71..61ff916 100644 --- a/dist/r3.js +++ b/dist/r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '2.0.654'; - static compileDate = '2021 Sep 13 - 09:56:59 am'; + static version = '2.0.655'; + static compileDate = '2021 Sep 13 - 10:04:31 am'; } /** @@ -37,16 +37,15 @@ Runtime.RUNTIME_CODER = 0x1; Runtime.RUNTIME_CODE_MIRROR = 0x2; Runtime.RUNTIME_DOM = 0x3; Runtime.RUNTIME_DOCUMENT = 0x4; -Runtime.RUNTIME_DEFAULT = 0x5; -Runtime.RUNTIME_GUI = 0x6; -Runtime.RUNTIME_CONTROL_KIT = 0x7; -Runtime.RUNTIME_GRAPHICS = 0x8; -Runtime.RUNTIME_THREE = 0x9; -Runtime.RUNTIME_PHYSICS = 0xa; -Runtime.RUNTIME_SOCKET = 0xb; -Runtime.RUNTIME_STATISTICS = 0xc; -Runtime.RUNTIME_STATS = 0xd; -Runtime.MAX_RUNTIME = 0xe; +Runtime.RUNTIME_GUI = 0x5; +Runtime.RUNTIME_CONTROL_KIT = 0x6; +Runtime.RUNTIME_GRAPHICS = 0x7; +Runtime.RUNTIME_THREE = 0x8; +Runtime.RUNTIME_PHYSICS = 0x9; +Runtime.RUNTIME_SOCKET = 0xa; +Runtime.RUNTIME_STATISTICS = 0xb; +Runtime.RUNTIME_STATS = 0xc; +Runtime.MAX_RUNTIME = 0xd; class System { @@ -325,85 +324,83 @@ class Event { } -Event.BEFORE_RENDER = 0x1; -Event.COMPONENT_CREATED = 0x2; -Event.COMPONENT_INITIALIZED = 0x3; -Event.CREATE_INSTANCE_BEFORE = 0x4; -Event.DISPOSE_INSTANCE = 0x5; -Event.DISPOSE_OBJECT = 0x6; -Event.DOM_COMPONENT_INITIALIZED = 0x7; -Event.ENTITY_CREATED = 0x8; -Event.ENTITY_INITIALIZED = 0x9; -Event.GET_RUNTIME = 0xa; -Event.GET_WINDOW_SIZE = 0xb; -Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc; -Event.INPUT_COMPONENT_INITIALIZED = 0xd; -Event.INSTANCE_CREATED = 0xe; -Event.INSTANCE_DISPOSED = 0xf; -Event.KEYBOARD_DOWN = 0x10; -Event.KEYBOARD_UP = 0x11; -Event.MOUSE_DOWN = 0x12; -Event.MOUSE_MOVE = 0x13; -Event.MOUSE_UP = 0x14; -Event.MOUSE_WHEEL = 0x15; -Event.OBJECT_CREATED = 0x16; -Event.OBJECT_INITIALIZED = 0x17; -Event.PAUSE = 0x18; -Event.PROJECT_INITIALIZED = 0x19; -Event.RESTART = 0x1a; -Event.START = 0x1b; -Event.TOUCH_CANCEL = 0x1c; -Event.TOUCH_END = 0x1d; -Event.TOUCH_MOVE = 0x1e; -Event.TOUCH_START = 0x1f; -Event.UPDATE_FROM_INSTANCE_AFTER = 0x20; -Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21; -Event.UPDATE_INSTANCE_AFTER = 0x22; -Event.UPDATE_INSTANCE_BEFORE = 0x23; -Event.UPDATE_INSTANCE_PROPERTY = 0x24; -Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25; -Event.MAX_EVENTS = 0x26; +Event.COMPONENT_CREATED = 0x1; +Event.COMPONENT_INITIALIZED = 0x2; +Event.CREATE_INSTANCE_BEFORE = 0x3; +Event.DISPOSE_INSTANCE = 0x4; +Event.DISPOSE_OBJECT = 0x5; +Event.DOM_COMPONENT_INITIALIZED = 0x6; +Event.ENTITY_CREATED = 0x7; +Event.ENTITY_INITIALIZED = 0x8; +Event.GET_RUNTIME = 0x9; +Event.GET_WINDOW_SIZE = 0xa; +Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb; +Event.INPUT_COMPONENT_INITIALIZED = 0xc; +Event.INSTANCE_CREATED = 0xd; +Event.INSTANCE_DISPOSED = 0xe; +Event.KEYBOARD_DOWN = 0xf; +Event.KEYBOARD_UP = 0x10; +Event.MOUSE_DOWN = 0x11; +Event.MOUSE_MOVE = 0x12; +Event.MOUSE_UP = 0x13; +Event.MOUSE_WHEEL = 0x14; +Event.OBJECT_CREATED = 0x15; +Event.OBJECT_INITIALIZED = 0x16; +Event.PAUSE = 0x17; +Event.PROJECT_INITIALIZED = 0x18; +Event.RESTART = 0x19; +Event.START = 0x1a; +Event.TOUCH_CANCEL = 0x1b; +Event.TOUCH_END = 0x1c; +Event.TOUCH_MOVE = 0x1d; +Event.TOUCH_START = 0x1e; +Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f; +Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20; +Event.UPDATE_INSTANCE_AFTER = 0x21; +Event.UPDATE_INSTANCE_BEFORE = 0x22; +Event.UPDATE_INSTANCE_PROPERTY = 0x23; +Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x24; +Event.MAX_EVENTS = 0x25; Event.GetEventName = function(eventId) { switch(eventId) { - case 0x1 : return 'before_render'; - case 0x2 : return 'component_created'; - case 0x3 : return 'component_initialized'; - case 0x4 : return 'create_instance_before'; - case 0x5 : return 'dispose_instance'; - case 0x6 : return 'dispose_object'; - case 0x7 : return 'dom_component_initialized'; - case 0x8 : return 'entity_created'; - case 0x9 : return 'entity_initialized'; - case 0xa : return 'get_runtime'; - case 0xb : return 'get_window_size'; - case 0xc : return 'graphics_component_initialized'; - case 0xd : return 'input_component_initialized'; - case 0xe : return 'instance_created'; - case 0xf : return 'instance_disposed'; - case 0x10 : return 'keyboard_down'; - case 0x11 : return 'keyboard_up'; - case 0x12 : return 'mouse_down'; - case 0x13 : return 'mouse_move'; - case 0x14 : return 'mouse_up'; - case 0x15 : return 'mouse_wheel'; - case 0x16 : return 'object_created'; - case 0x17 : return 'object_initialized'; - case 0x18 : return 'pause'; - case 0x19 : return 'project_initialized'; - case 0x1a : return 'restart'; - case 0x1b : return 'start'; - case 0x1c : return 'touch_cancel'; - case 0x1d : return 'touch_end'; - case 0x1e : return 'touch_move'; - case 0x1f : return 'touch_start'; - case 0x20 : return 'update_from_instance_after'; - case 0x21 : return 'update_from_instance_before'; - case 0x22 : return 'update_instance_after'; - case 0x23 : return 'update_instance_before'; - case 0x24 : return 'update_instance_property'; - case 0x25 : return 'update_property_from_instance'; + case 0x1 : return 'component_created'; + case 0x2 : return 'component_initialized'; + case 0x3 : return 'create_instance_before'; + case 0x4 : return 'dispose_instance'; + case 0x5 : return 'dispose_object'; + case 0x6 : return 'dom_component_initialized'; + case 0x7 : return 'entity_created'; + case 0x8 : return 'entity_initialized'; + case 0x9 : return 'get_runtime'; + case 0xa : return 'get_window_size'; + case 0xb : return 'graphics_component_initialized'; + case 0xc : return 'input_component_initialized'; + case 0xd : return 'instance_created'; + case 0xe : return 'instance_disposed'; + case 0xf : return 'keyboard_down'; + case 0x10 : return 'keyboard_up'; + case 0x11 : return 'mouse_down'; + case 0x12 : return 'mouse_move'; + case 0x13 : return 'mouse_up'; + case 0x14 : return 'mouse_wheel'; + case 0x15 : return 'object_created'; + case 0x16 : return 'object_initialized'; + case 0x17 : return 'pause'; + case 0x18 : return 'project_initialized'; + case 0x19 : return 'restart'; + case 0x1a : return 'start'; + case 0x1b : return 'touch_cancel'; + case 0x1c : return 'touch_end'; + case 0x1d : return 'touch_move'; + case 0x1e : return 'touch_start'; + case 0x1f : return 'update_from_instance_after'; + case 0x20 : return 'update_from_instance_before'; + case 0x21 : return 'update_instance_after'; + case 0x22 : return 'update_instance_before'; + case 0x23 : return 'update_instance_property'; + case 0x24 : return 'update_property_from_instance'; default : throw new Error('Event type not defined : ' + eventId); } @@ -1716,19 +1713,39 @@ class Utils { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeBullet extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -1775,19 +1792,39 @@ class RuntimeBullet extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeCoder extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -1834,19 +1871,39 @@ class RuntimeCoder extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeDOM extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -1860,79 +1917,6 @@ class RuntimeDOM extends Runtime { } -/** - - Class R3.Runtime.Default - [Inherited from Runtime] - - Inherited Properties: - - - - Inherited Static Properties: - - - - Inherited Methods: - - - - Inherited Static Methods: - - - - [Belonging to RuntimeDefault] - - Properties: - - - - Static Properties: - - - - Methods: - - - - Static Methods: - - - - **/ - -class RuntimeDefault extends Runtime { - - constructor(options) { - - if (typeof options === 'undefined') { - options = {}; - } - - if (typeof options.initialized === 'undefined') { - options.initialized = false; - } - - if (typeof options.callDepth === 'undefined') { - options.callDepth = 0; - } else { - options.callDepth++; - } - - super(options); - - Object.assign(this, options); - - if (options.callDepth === 0) { - this.initialize(); - } else { - options.callDepth--; - } - - } - -} - /** Class R3.Runtime.GUI @@ -1966,19 +1950,39 @@ class RuntimeDefault extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeGUI extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -2025,19 +2029,39 @@ class RuntimeGUI extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeGraphics extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -2084,19 +2108,39 @@ class RuntimeGraphics extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimePhysics extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -2143,19 +2187,39 @@ class RuntimePhysics extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeSocket extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -2202,19 +2266,39 @@ class RuntimeSocket extends Runtime { Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeStatistics extends Runtime { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -3370,8 +3454,7 @@ class R3Object extends Event { Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -3389,19 +3472,39 @@ class R3Object extends Event { Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeCoder.buildInstance() + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeCodeMirror extends RuntimeCoder { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -3448,8 +3551,7 @@ class RuntimeCodeMirror extends RuntimeCoder { Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -3467,19 +3569,39 @@ class RuntimeCodeMirror extends RuntimeCoder { Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeDOM.buildInstance() + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeDocument extends RuntimeDOM { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -3534,8 +3656,7 @@ class RuntimeDocument extends RuntimeDOM { Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -3553,19 +3674,39 @@ class RuntimeDocument extends RuntimeDOM { Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeGUI.buildInstance() + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeControlKit extends RuntimeGUI { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -3612,8 +3753,7 @@ class RuntimeControlKit extends RuntimeGUI { Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -3631,19 +3771,39 @@ class RuntimeControlKit extends RuntimeGUI { Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeGraphics.buildInstance() + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeThree extends RuntimeGraphics { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -3690,8 +3850,7 @@ class RuntimeThree extends RuntimeGraphics { Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -3709,19 +3868,39 @@ class RuntimeThree extends RuntimeGraphics { Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeStatistics.buildInstance() + Static Methods: + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START + buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + **/ class RuntimeStats extends RuntimeStatistics { - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + Object.assign(this, options); + } /** @@ -6879,7 +7058,6 @@ Runtime.Coder = RuntimeCoder; Runtime.Coder.CodeMirror = RuntimeCodeMirror; Runtime.DOM = RuntimeDOM; Runtime.DOM.Document = RuntimeDocument; -Runtime.Default = RuntimeDefault; Runtime.GUI = RuntimeGUI; Runtime.GUI.ControlKit = RuntimeControlKit; Runtime.Graphics = RuntimeGraphics; diff --git a/package.json b/package.json index e09113d..f695d1d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "r3", - "version" : "2.0.654", + "version" : "2.0.655", "description": "", "private": true, "dependencies": { diff --git a/src/r3/r3-event.js b/src/r3/r3-event.js index 7adb92a..1b4dbdd 100644 --- a/src/r3/r3-event.js +++ b/src/r3/r3-event.js @@ -342,85 +342,83 @@ class Event { //CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_EVENTS_START -Event.BEFORE_RENDER = 0x1; -Event.COMPONENT_CREATED = 0x2; -Event.COMPONENT_INITIALIZED = 0x3; -Event.CREATE_INSTANCE_BEFORE = 0x4; -Event.DISPOSE_INSTANCE = 0x5; -Event.DISPOSE_OBJECT = 0x6; -Event.DOM_COMPONENT_INITIALIZED = 0x7; -Event.ENTITY_CREATED = 0x8; -Event.ENTITY_INITIALIZED = 0x9; -Event.GET_RUNTIME = 0xa; -Event.GET_WINDOW_SIZE = 0xb; -Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc; -Event.INPUT_COMPONENT_INITIALIZED = 0xd; -Event.INSTANCE_CREATED = 0xe; -Event.INSTANCE_DISPOSED = 0xf; -Event.KEYBOARD_DOWN = 0x10; -Event.KEYBOARD_UP = 0x11; -Event.MOUSE_DOWN = 0x12; -Event.MOUSE_MOVE = 0x13; -Event.MOUSE_UP = 0x14; -Event.MOUSE_WHEEL = 0x15; -Event.OBJECT_CREATED = 0x16; -Event.OBJECT_INITIALIZED = 0x17; -Event.PAUSE = 0x18; -Event.PROJECT_INITIALIZED = 0x19; -Event.RESTART = 0x1a; -Event.START = 0x1b; -Event.TOUCH_CANCEL = 0x1c; -Event.TOUCH_END = 0x1d; -Event.TOUCH_MOVE = 0x1e; -Event.TOUCH_START = 0x1f; -Event.UPDATE_FROM_INSTANCE_AFTER = 0x20; -Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21; -Event.UPDATE_INSTANCE_AFTER = 0x22; -Event.UPDATE_INSTANCE_BEFORE = 0x23; -Event.UPDATE_INSTANCE_PROPERTY = 0x24; -Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25; -Event.MAX_EVENTS = 0x26; +Event.COMPONENT_CREATED = 0x1; +Event.COMPONENT_INITIALIZED = 0x2; +Event.CREATE_INSTANCE_BEFORE = 0x3; +Event.DISPOSE_INSTANCE = 0x4; +Event.DISPOSE_OBJECT = 0x5; +Event.DOM_COMPONENT_INITIALIZED = 0x6; +Event.ENTITY_CREATED = 0x7; +Event.ENTITY_INITIALIZED = 0x8; +Event.GET_RUNTIME = 0x9; +Event.GET_WINDOW_SIZE = 0xa; +Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb; +Event.INPUT_COMPONENT_INITIALIZED = 0xc; +Event.INSTANCE_CREATED = 0xd; +Event.INSTANCE_DISPOSED = 0xe; +Event.KEYBOARD_DOWN = 0xf; +Event.KEYBOARD_UP = 0x10; +Event.MOUSE_DOWN = 0x11; +Event.MOUSE_MOVE = 0x12; +Event.MOUSE_UP = 0x13; +Event.MOUSE_WHEEL = 0x14; +Event.OBJECT_CREATED = 0x15; +Event.OBJECT_INITIALIZED = 0x16; +Event.PAUSE = 0x17; +Event.PROJECT_INITIALIZED = 0x18; +Event.RESTART = 0x19; +Event.START = 0x1a; +Event.TOUCH_CANCEL = 0x1b; +Event.TOUCH_END = 0x1c; +Event.TOUCH_MOVE = 0x1d; +Event.TOUCH_START = 0x1e; +Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f; +Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20; +Event.UPDATE_INSTANCE_AFTER = 0x21; +Event.UPDATE_INSTANCE_BEFORE = 0x22; +Event.UPDATE_INSTANCE_PROPERTY = 0x23; +Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x24; +Event.MAX_EVENTS = 0x25; Event.GetEventName = function(eventId) { switch(eventId) { - case 0x1 : return 'before_render'; - case 0x2 : return 'component_created'; - case 0x3 : return 'component_initialized'; - case 0x4 : return 'create_instance_before'; - case 0x5 : return 'dispose_instance'; - case 0x6 : return 'dispose_object'; - case 0x7 : return 'dom_component_initialized'; - case 0x8 : return 'entity_created'; - case 0x9 : return 'entity_initialized'; - case 0xa : return 'get_runtime'; - case 0xb : return 'get_window_size'; - case 0xc : return 'graphics_component_initialized'; - case 0xd : return 'input_component_initialized'; - case 0xe : return 'instance_created'; - case 0xf : return 'instance_disposed'; - case 0x10 : return 'keyboard_down'; - case 0x11 : return 'keyboard_up'; - case 0x12 : return 'mouse_down'; - case 0x13 : return 'mouse_move'; - case 0x14 : return 'mouse_up'; - case 0x15 : return 'mouse_wheel'; - case 0x16 : return 'object_created'; - case 0x17 : return 'object_initialized'; - case 0x18 : return 'pause'; - case 0x19 : return 'project_initialized'; - case 0x1a : return 'restart'; - case 0x1b : return 'start'; - case 0x1c : return 'touch_cancel'; - case 0x1d : return 'touch_end'; - case 0x1e : return 'touch_move'; - case 0x1f : return 'touch_start'; - case 0x20 : return 'update_from_instance_after'; - case 0x21 : return 'update_from_instance_before'; - case 0x22 : return 'update_instance_after'; - case 0x23 : return 'update_instance_before'; - case 0x24 : return 'update_instance_property'; - case 0x25 : return 'update_property_from_instance'; + case 0x1 : return 'component_created'; + case 0x2 : return 'component_initialized'; + case 0x3 : return 'create_instance_before'; + case 0x4 : return 'dispose_instance'; + case 0x5 : return 'dispose_object'; + case 0x6 : return 'dom_component_initialized'; + case 0x7 : return 'entity_created'; + case 0x8 : return 'entity_initialized'; + case 0x9 : return 'get_runtime'; + case 0xa : return 'get_window_size'; + case 0xb : return 'graphics_component_initialized'; + case 0xc : return 'input_component_initialized'; + case 0xd : return 'instance_created'; + case 0xe : return 'instance_disposed'; + case 0xf : return 'keyboard_down'; + case 0x10 : return 'keyboard_up'; + case 0x11 : return 'mouse_down'; + case 0x12 : return 'mouse_move'; + case 0x13 : return 'mouse_up'; + case 0x14 : return 'mouse_wheel'; + case 0x15 : return 'object_created'; + case 0x16 : return 'object_initialized'; + case 0x17 : return 'pause'; + case 0x18 : return 'project_initialized'; + case 0x19 : return 'restart'; + case 0x1a : return 'start'; + case 0x1b : return 'touch_cancel'; + case 0x1c : return 'touch_end'; + case 0x1d : return 'touch_move'; + case 0x1e : return 'touch_start'; + case 0x1f : return 'update_from_instance_after'; + case 0x20 : return 'update_from_instance_before'; + case 0x21 : return 'update_instance_after'; + case 0x22 : return 'update_instance_before'; + case 0x23 : return 'update_instance_property'; + case 0x24 : return 'update_property_from_instance'; default : throw new Error('Event type not defined : ' + eventId); } diff --git a/src/r3/r3-r3.js b/src/r3/r3-r3.js index afcdb75..bb0fc7d 100644 --- a/src/r3/r3-r3.js +++ b/src/r3/r3-r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '2.0.654'; - static compileDate = '2021 Sep 13 - 09:56:59 am'; + static version = '2.0.655'; + static compileDate = '2021 Sep 13 - 10:04:31 am'; } //GENERATED_IMPORTS_START diff --git a/src/r3/r3-runtime/index.js b/src/r3/r3-runtime/index.js index 46b6cda..6ec6e75 100644 --- a/src/r3/r3-runtime/index.js +++ b/src/r3/r3-runtime/index.js @@ -5,7 +5,6 @@ const RuntimeCoder = require('./r3-runtime-coder.js'); const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js'); const RuntimeDOM = require('./r3-runtime-d-o-m.js'); const RuntimeDocument = require('./r3-runtime-document.js'); -const RuntimeDefault = require('./r3-runtime-default.js'); const RuntimeGUI = require('./r3-runtime-g-u-i.js'); const RuntimeControlKit = require('./r3-runtime-control-kit.js'); const RuntimeGraphics = require('./r3-runtime-graphics.js'); @@ -22,7 +21,6 @@ Runtime.Coder = RuntimeCoder; Runtime.Coder.CodeMirror = RuntimeCodeMirror; Runtime.DOM = RuntimeDOM; Runtime.DOM.Document = RuntimeDocument; -Runtime.Default = RuntimeDefault; Runtime.GUI = RuntimeGUI; Runtime.GUI.ControlKit = RuntimeControlKit; Runtime.Graphics = RuntimeGraphics; diff --git a/src/r3/r3-runtime/r3-runtime-bullet.js b/src/r3/r3-runtime/r3-runtime-bullet.js index 8cf9992..4f2a129 100644 --- a/src/r3/r3-runtime/r3-runtime-bullet.js +++ b/src/r3/r3-runtime/r3-runtime-bullet.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeBullet extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeBullet extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-code-mirror.js b/src/r3/r3-runtime/r3-runtime-code-mirror.js index 253491b..7d7269e 100644 --- a/src/r3/r3-runtime/r3-runtime-code-mirror.js +++ b/src/r3/r3-runtime/r3-runtime-code-mirror.js @@ -37,8 +37,7 @@ const RuntimeCoder = require('./r3-runtime-coder.js'); Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -56,8 +55,7 @@ const RuntimeCoder = require('./r3-runtime-coder.js'); Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeCoder.buildInstance() + Static Methods: @@ -65,21 +63,56 @@ const RuntimeCoder = require('./r3-runtime-coder.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeCodeMirror extends RuntimeCoder { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -95,13 +128,28 @@ class RuntimeCodeMirror extends RuntimeCoder { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-coder.js b/src/r3/r3-runtime/r3-runtime-coder.js index a9b0108..a0d67f0 100644 --- a/src/r3/r3-runtime/r3-runtime-coder.js +++ b/src/r3/r3-runtime/r3-runtime-coder.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeCoder extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeCoder extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-control-kit.js b/src/r3/r3-runtime/r3-runtime-control-kit.js index fb4ed45..b688f0b 100644 --- a/src/r3/r3-runtime/r3-runtime-control-kit.js +++ b/src/r3/r3-runtime/r3-runtime-control-kit.js @@ -37,8 +37,7 @@ const RuntimeGUI = require('./r3-runtime-g-u-i.js'); Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -56,8 +55,7 @@ const RuntimeGUI = require('./r3-runtime-g-u-i.js'); Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeGUI.buildInstance() + Static Methods: @@ -65,21 +63,56 @@ const RuntimeGUI = require('./r3-runtime-g-u-i.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeControlKit extends RuntimeGUI { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -95,13 +128,28 @@ class RuntimeControlKit extends RuntimeGUI { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-d-o-m.js b/src/r3/r3-runtime/r3-runtime-d-o-m.js index 4781950..c29b55a 100644 --- a/src/r3/r3-runtime/r3-runtime-d-o-m.js +++ b/src/r3/r3-runtime/r3-runtime-d-o-m.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeDOM extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeDOM extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-default.js b/src/r3/r3-runtime/r3-runtime-default.js deleted file mode 100644 index e910683..0000000 --- a/src/r3/r3-runtime/r3-runtime-default.js +++ /dev/null @@ -1,127 +0,0 @@ -const Event = require('.././r3-event'); -const Utils = require('.././r3-utils'); -const Runtime = require('.././r3-runtime.js'); - -/** - - GENERATED_INHERITED_START - - Class R3.Runtime.Default - [Inherited from Runtime] - - Inherited Properties: - - - - Inherited Static Properties: - - - - Inherited Methods: - - - - Inherited Static Methods: - - - - [Belonging to RuntimeDefault] - - Properties: - - - - Static Properties: - - - - Methods: - - - - Static Methods: - - - - GENERATED_INHERITED_END - - CUSTOM_OPTIONS_START - CUSTOM_OPTIONS_END - - CUSTOM_INSTANCE_OPTIONS_MAPPING_START - CUSTOM_INSTANCE_OPTIONS_MAPPING_END - - CUSTOM_LINKED_OBJECTS_START - CUSTOM_LINKED_OBJECTS_END - - CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START - CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END - - CUSTOM_METHODS_START - CUSTOM_METHODS_END - - CUSTOM_STATIC_METHODS_START - CUSTOM_STATIC_METHODS_END - - **/ - -class RuntimeDefault extends Runtime { - - //GENERATED_CONSTRUCTOR_START - constructor(options) { - - if (typeof options === 'undefined') { - options = {}; - } - - if (typeof options.initialized === 'undefined') { - options.initialized = false; - } - - if (typeof options.callDepth === 'undefined') { - options.callDepth = 0; - } else { - options.callDepth++; - } - - super(options); - - //GENERATED_OPTIONS_INIT_START - //GENERATED_OPTIONS_INIT_END - - //CUSTOM_OPTIONS_INIT_START - //CUSTOM_OPTIONS_INIT_END - - Object.assign(this, options); - - //CUSTOM_BEFORE_INIT_START - //CUSTOM_BEFORE_INIT_END - - if (options.callDepth === 0) { - this.initialize(); - } else { - options.callDepth--; - } - - //CUSTOM_AFTER_INIT_START - //CUSTOM_AFTER_INIT_END - } - //GENERATED_CONSTRUCTOR_END - - //GENERATED_METHODS_START - //GENERATED_METHODS_END - - //GENERATED_STATIC_METHODS_START - //GENERATED_STATIC_METHODS_END - - //CUSTOM_IMPLEMENTATION_START - //CUSTOM_IMPLEMENTATION_END -} - -//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START -//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END - -//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START -//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END - -module.exports = RuntimeDefault; diff --git a/src/r3/r3-runtime/r3-runtime-document.js b/src/r3/r3-runtime/r3-runtime-document.js index 810f956..55a91fa 100644 --- a/src/r3/r3-runtime/r3-runtime-document.js +++ b/src/r3/r3-runtime/r3-runtime-document.js @@ -37,8 +37,7 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js'); Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -56,8 +55,7 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js'); Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeDOM.buildInstance() + Static Methods: @@ -65,21 +63,56 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeDocument extends RuntimeDOM { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -102,13 +135,28 @@ class RuntimeDocument extends RuntimeDOM { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-g-u-i.js b/src/r3/r3-runtime/r3-runtime-g-u-i.js index f4f0f53..f330dea 100644 --- a/src/r3/r3-runtime/r3-runtime-g-u-i.js +++ b/src/r3/r3-runtime/r3-runtime-g-u-i.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeGUI extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeGUI extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-graphics.js b/src/r3/r3-runtime/r3-runtime-graphics.js index 4bd22ae..9e724bf 100644 --- a/src/r3/r3-runtime/r3-runtime-graphics.js +++ b/src/r3/r3-runtime/r3-runtime-graphics.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeGraphics extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeGraphics extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-physics.js b/src/r3/r3-runtime/r3-runtime-physics.js index 46f6fb6..1bdb871 100644 --- a/src/r3/r3-runtime/r3-runtime-physics.js +++ b/src/r3/r3-runtime/r3-runtime-physics.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimePhysics extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimePhysics extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-socket.js b/src/r3/r3-runtime/r3-runtime-socket.js index 0c66611..c51f32b 100644 --- a/src/r3/r3-runtime/r3-runtime-socket.js +++ b/src/r3/r3-runtime/r3-runtime-socket.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeSocket extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeSocket extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-statistics.js b/src/r3/r3-runtime/r3-runtime-statistics.js index af1e399..580c7b4 100644 --- a/src/r3/r3-runtime/r3-runtime-statistics.js +++ b/src/r3/r3-runtime/r3-runtime-statistics.js @@ -37,8 +37,7 @@ const Runtime = require('./r3-runtime.js'); Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Static Methods: @@ -46,21 +45,56 @@ const Runtime = require('./r3-runtime.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeStatistics extends Runtime { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -76,13 +110,28 @@ class RuntimeStatistics extends Runtime { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-stats.js b/src/r3/r3-runtime/r3-runtime-stats.js index d8f0926..60e5d58 100644 --- a/src/r3/r3-runtime/r3-runtime-stats.js +++ b/src/r3/r3-runtime/r3-runtime-stats.js @@ -37,8 +37,7 @@ const RuntimeStatistics = require('./r3-runtime-statistics.js'); Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -56,8 +55,7 @@ const RuntimeStatistics = require('./r3-runtime-statistics.js'); Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeStatistics.buildInstance() + Static Methods: @@ -65,21 +63,56 @@ const RuntimeStatistics = require('./r3-runtime-statistics.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeStats extends RuntimeStatistics { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -95,13 +128,28 @@ class RuntimeStats extends RuntimeStatistics { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime-three.js b/src/r3/r3-runtime/r3-runtime-three.js index 74335c1..cd9ee3a 100644 --- a/src/r3/r3-runtime/r3-runtime-three.js +++ b/src/r3/r3-runtime/r3-runtime-three.js @@ -37,8 +37,7 @@ const RuntimeGraphics = require('./r3-runtime-graphics.js'); Inherited Methods: - - buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + Inherited Static Methods: @@ -56,8 +55,7 @@ const RuntimeGraphics = require('./r3-runtime-graphics.js'); Methods: - - buildInstance(component) - Overrides for R3.Runtime.RuntimeGraphics.buildInstance() + Static Methods: @@ -65,21 +63,56 @@ const RuntimeGraphics = require('./r3-runtime-graphics.js'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class RuntimeThree extends RuntimeGraphics { //GENERATED_CONSTRUCTOR_START - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } //GENERATED_CONSTRUCTOR_END - //GENERATED_METHODS_START + //GENERATED_TEMPLATE_METHODS_START /** * buildInstance() @@ -95,13 +128,28 @@ class RuntimeThree extends RuntimeGraphics { //CUSTOM_BUILD_INSTANCE_METHOD_END } + //GENERATED_TEMPLATE_METHODS_END + + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/r3/r3-runtime/r3-runtime.js b/src/r3/r3-runtime/r3-runtime.js index a1cf6e0..5dd52f1 100644 --- a/src/r3/r3-runtime/r3-runtime.js +++ b/src/r3/r3-runtime/r3-runtime.js @@ -76,16 +76,15 @@ Runtime.RUNTIME_CODER = 0x1; Runtime.RUNTIME_CODE_MIRROR = 0x2; Runtime.RUNTIME_DOM = 0x3; Runtime.RUNTIME_DOCUMENT = 0x4; -Runtime.RUNTIME_DEFAULT = 0x5; -Runtime.RUNTIME_GUI = 0x6; -Runtime.RUNTIME_CONTROL_KIT = 0x7; -Runtime.RUNTIME_GRAPHICS = 0x8; -Runtime.RUNTIME_THREE = 0x9; -Runtime.RUNTIME_PHYSICS = 0xa; -Runtime.RUNTIME_SOCKET = 0xb; -Runtime.RUNTIME_STATISTICS = 0xc; -Runtime.RUNTIME_STATS = 0xd; -Runtime.MAX_RUNTIME = 0xe; +Runtime.RUNTIME_GUI = 0x5; +Runtime.RUNTIME_CONTROL_KIT = 0x6; +Runtime.RUNTIME_GRAPHICS = 0x7; +Runtime.RUNTIME_THREE = 0x8; +Runtime.RUNTIME_PHYSICS = 0x9; +Runtime.RUNTIME_SOCKET = 0xa; +Runtime.RUNTIME_STATISTICS = 0xb; +Runtime.RUNTIME_STATS = 0xc; +Runtime.MAX_RUNTIME = 0xd; //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END //CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START diff --git a/src/templates/runtime_extends.template b/src/templates/runtime_extends.template index cfa30bc..afec412 100644 --- a/src/templates/runtime_extends.template +++ b/src/templates/runtime_extends.template @@ -8,10 +8,31 @@ const EXTEND_CLASS = require('./EXTEND_CLASS_FILE_NAME'); GENERATED_INHERITED_END - CUSTOM_METHODS_START + TEMPLATE_OPTIONS_START + TEMPLATE_OPTIONS_END + + CUSTOM_OPTIONS_START + CUSTOM_OPTIONS_END + + TEMPLATE_STATIC_OPTIONS_START + TEMPLATE_STATIC_OPTIONS_END + + CUSTOM_STATIC_OPTIONS_START + CUSTOM_STATIC_OPTIONS_END + + TEMPLATE_METHODS_START buildInstance(component) - Creates an instance of R3.Component based on this Runtime. + TEMPLATE_METHODS_END + + CUSTOM_METHODS_START CUSTOM_METHODS_END + TEMPLATE_STATIC_METHODS_START + TEMPLATE_STATIC_METHODS_END + + CUSTOM_STATIC_METHODS_START + CUSTOM_STATIC_METHODS_END + **/ class CLASS_NAME extends EXTEND_CLASS { @@ -19,14 +40,29 @@ class CLASS_NAME extends EXTEND_CLASS { //GENERATED_CONSTRUCTOR_START //GENERATED_CONSTRUCTOR_END + //GENERATED_TEMPLATE_METHODS_START + //GENERATED_TEMPLATE_METHODS_END + //GENERATED_METHODS_START //GENERATED_METHODS_END + //GENERATED_TEMPLATE_STATIC_METHODS_START + //GENERATED_TEMPLATE_STATIC_METHODS_END + + //GENERATED_STATIC_METHODS_START + //GENERATED_STATIC_METHODS_END + //CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_END } +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START +//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END + +//GENERATED_STATIC_OPTIONS_INIT_START +//GENERATED_STATIC_OPTIONS_INIT_END + //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END diff --git a/src/templates/runtime_extends_constructor.template b/src/templates/runtime_extends_constructor.template index 79f1ea8..2ecbe5c 100644 --- a/src/templates/runtime_extends_constructor.template +++ b/src/templates/runtime_extends_constructor.template @@ -1,3 +1,17 @@ - constructor() { - super(); + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + super(options); + + //GENERATED_TEMPLATE_OPTIONS_INIT_START + //GENERATED_TEMPLATE_OPTIONS_INIT_END + + //GENERATED_OPTIONS_INIT_START + //GENERATED_OPTIONS_INIT_END + + Object.assign(this, options); + } \ No newline at end of file diff --git a/version b/version index 9f36407..049e898 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.654 \ No newline at end of file +2.0.655 \ No newline at end of file