Compare commits

...

2 Commits

Author SHA1 Message Date
Theunis J. Botha d4c5e23f3a each one for his own 2021-09-10 14:03:19 +02:00
Theunis J. Botha c66c10b618 before all update 2021-09-10 13:38:58 +02:00
52 changed files with 2355 additions and 3169 deletions

View File

@ -1,37 +1,37 @@
r3 create Component extends R3Object ./r3-component/ r3 create Component component_extends R3Object ./r3-component/
r3 create ComponentCanvas extends ComponentDOM ./r3-component/ r3 create ComponentCanvas component_extends ComponentDOM ./r3-component/
r3 create ComponentDOM extends Component ./r3-component/ r3 create ComponentDOM component_extends Component ./r3-component/
r3 create ComponentGraphics extends Component ./r3-component/ r3 create ComponentGraphics component_extends Component ./r3-component/
r3 create ComponentImage extends ComponentGraphics ./r3-component/ r3 create ComponentImage component_extends ComponentGraphics ./r3-component/
r3 create ComponentInput extends Component ./r3-component/ r3 create ComponentInput component_extends Component ./r3-component/
r3 create ComponentMaterial extends ComponentGraphics ./r3-component/ r3 create ComponentMaterial component_extends ComponentGraphics ./r3-component/
r3 create ComponentMesh extends ComponentGraphics ./r3-component/ r3 create ComponentMesh component_extends ComponentGraphics ./r3-component/
r3 create ComponentTexture extends ComponentGraphics ./r3-component/ r3 create ComponentTexture component_extends ComponentGraphics ./r3-component/
r3 create ComponentTouch extends ComponentInput ./r3-component/ r3 create ComponentTouch component_extends ComponentInput ./r3-component/
r3 create Entity normal ./r3-entity/ r3 create Entity entity_base ./r3-entity/
r3 create EntitySlider extends Entity ./r3-entity/ r3 create EntitySlider entity_extends Entity ./r3-entity/
r3 create Event normal r3 create Event base ./
r3 create Project extends R3Object r3 create Project extends R3Object ./
r3 create R3 r3_base r3 create R3 r3_base ./
r3 create R3Object extends Event r3 create R3Object extends Event ./
r3 create Runtime extends Event ./r3-runtime/ r3 create Runtime runtime_base ./r3-runtime/
r3 create RuntimeBullet extends RuntimePhysics ./r3-runtime/ r3 create RuntimeBullet runtime_extends Runtime ./r3-runtime/
r3 create RuntimeCodeMirror extends RuntimeCoder ./r3-runtime/ r3 create RuntimeCodeMirror runtime_extends RuntimeCoder ./r3-runtime/
r3 create RuntimeCoder extends Runtime ./r3-runtime/ r3 create RuntimeCoder runtime_extends Runtime ./r3-runtime/
r3 create RuntimeControlKit extends RuntimeGUI ./r3-runtime/ r3 create RuntimeControlKit runtime_extends RuntimeGUI ./r3-runtime/
r3 create RuntimeDOM extends Runtime ./r3-runtime/ r3 create RuntimeDOM runtime_extends Runtime ./r3-runtime/
r3 create RuntimeDocument extends RuntimeDOM ./r3-runtime/ r3 create RuntimeDocument runtime_extends RuntimeDOM ./r3-runtime/
r3 create RuntimeGUI extends Runtime ./r3-runtime/ r3 create RuntimeGUI runtime_extends Runtime ./r3-runtime/
r3 create RuntimeGraphics extends Runtime ./r3-runtime/ r3 create RuntimeGraphics runtime_extends Runtime ./r3-runtime/
r3 create RuntimePhysics extends Runtime ./r3-runtime/ r3 create RuntimePhysics runtime_extends Runtime ./r3-runtime/
r3 create RuntimeSocket extends Runtime ./r3-runtime/ r3 create RuntimeSocket runtime_extends Runtime ./r3-runtime/
r3 create RuntimeStatistics extends Runtime ./r3-runtime/ r3 create RuntimeStatistics runtime_extends Runtime ./r3-runtime/
r3 create RuntimeStats extends RuntimeStatistics ./r3-runtime/ r3 create RuntimeStats runtime_extends RuntimeStatistics ./r3-runtime/
r3 create RuntimeThree extends RuntimeGraphics ./r3-runtime/ r3 create RuntimeThree runtime_extends RuntimeGraphics ./r3-runtime/
r3 create System system_base r3 create System system_base ./r3-system/
r3 create SystemDOM system r3 create SystemDOM system_extends System ./r3-system/
r3 create SystemInput system r3 create SystemInput system_extends System ./r3-system/
r3 create SystemLinking system r3 create SystemLinking system_extends System ./r3-system/
r3 create SystemRuntime system r3 create SystemRuntime system_extends System ./r3-system/
r3 create SystemSocket system r3 create SystemSocket system_extends System ./r3-system/
r3 create Utils normal r3 create Utils base ./

2630
dist/r3.js vendored

File diff suppressed because it is too large Load Diff

View File

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

37
r3.php
View File

@ -435,21 +435,48 @@ function generateConstructors($file, $command)
$constructor = null; $constructor = null;
$token = 'GENERATED_CONSTRUCTOR'; $token = 'GENERATED_CONSTRUCTOR';
if (preg_match('/system_base/', $command)) { if (preg_match('/\bsystem_base\b/', $command)) {
$constructor = file_get_contents('src/templates/system_base_constructor.template'); $constructor = file_get_contents('src/templates/system_base_constructor.template');
} }
if (preg_match('/\bsystem\b/', $command)) { if (preg_match('/\bsystem_extends\b/', $command)) {
$constructor = file_get_contents('src/templates/system_extends_constructor.template'); $constructor = file_get_contents('src/templates/system_extends_constructor.template');
$token = 'GENERATED_CONSTRUCTOR_EXTENDS'; $token = 'GENERATED_CONSTRUCTOR_EXTENDS';
} }
if (preg_match('/\bnormal\b/', $command)) { if (preg_match('/\bruntime_base\b/', $command)) {
$constructor = file_get_contents('src/templates/constructor.template'); $constructor = file_get_contents('src/templates/runtime_base_constructor.template');
}
if (preg_match('/\bruntime_extends\b/', $command)) {
$constructor = file_get_contents('src/templates/runtime_extends_constructor.template');
$token = 'GENERATED_CONSTRUCTOR_EXTENDS';
}
if (preg_match('/\bcomponent_base\b/', $command)) {
$constructor = file_get_contents('src/templates/component_base_constructor.template');
}
if (preg_match('/\bcomponent_extends\b/', $command)) {
$constructor = file_get_contents('src/templates/component_extends_constructor.template');
$token = 'GENERATED_CONSTRUCTOR_EXTENDS';
}
if (preg_match('/\bentity_base\b/', $command)) {
$constructor = file_get_contents('src/templates/entity_base_constructor.template');
}
if (preg_match('/\bentity_extends\b/', $command)) {
$constructor = file_get_contents('src/templates/entity_extends_constructor.template');
$token = 'GENERATED_CONSTRUCTOR_EXTENDS';
}
if (preg_match('/\bbase\b/', $command)) {
$constructor = file_get_contents('src/templates/base_constructor.template');
} }
if (preg_match('/\bextends\b/', $command)) { if (preg_match('/\bextends\b/', $command)) {
$constructor = file_get_contents('src/templates/constructor_extends.template'); $constructor = file_get_contents('src/templates/extends_constructor.template');
$token = 'GENERATED_CONSTRUCTOR_EXTENDS'; $token = 'GENERATED_CONSTRUCTOR_EXTENDS';
} }

View File

@ -133,7 +133,11 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
Methods: Methods:
<no methods> - updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods: Static Methods:
@ -154,6 +158,8 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentCanvas extends ComponentDOM {
//GENERATED_CONSTRUCTOR_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
/**
* updateInstance()
* - No comment
*/
updateInstance() {
//GENERATED_UPDATE_INSTANCE_METHOD_START
this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this);
//GENERATED_UPDATE_INSTANCE_METHOD_END
//CUSTOM_UPDATE_INSTANCE_METHOD_START
//CUSTOM_UPDATE_INSTANCE_METHOD_END
}
/**
* updateFromInstance()
* - No comment
*/
updateFromInstance() {
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_START
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_END
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_START
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods: Methods:
<no methods> - updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods: Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentImage extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
/**
* updateInstance()
* - No comment
*/
updateInstance() {
//GENERATED_UPDATE_INSTANCE_METHOD_START
this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this);
//GENERATED_UPDATE_INSTANCE_METHOD_END
//CUSTOM_UPDATE_INSTANCE_METHOD_START
//CUSTOM_UPDATE_INSTANCE_METHOD_END
}
/**
* updateFromInstance()
* - No comment
*/
updateFromInstance() {
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_START
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_END
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_START
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods: Methods:
<no methods> - updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods: Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentMaterial extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
/**
* updateInstance()
* - No comment
*/
updateInstance() {
//GENERATED_UPDATE_INSTANCE_METHOD_START
this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this);
//GENERATED_UPDATE_INSTANCE_METHOD_END
//CUSTOM_UPDATE_INSTANCE_METHOD_START
//CUSTOM_UPDATE_INSTANCE_METHOD_END
}
/**
* updateFromInstance()
* - No comment
*/
updateFromInstance() {
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_START
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_END
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_START
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods: Methods:
<no methods> - updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods: Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentMesh extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
/**
* updateInstance()
* - No comment
*/
updateInstance() {
//GENERATED_UPDATE_INSTANCE_METHOD_START
this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this);
//GENERATED_UPDATE_INSTANCE_METHOD_END
//CUSTOM_UPDATE_INSTANCE_METHOD_START
//CUSTOM_UPDATE_INSTANCE_METHOD_END
}
/**
* updateFromInstance()
* - No comment
*/
updateFromInstance() {
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_START
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_END
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_START
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods: Methods:
<no methods> - updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods: Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentTexture extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
/**
* updateInstance()
* - No comment
*/
updateInstance() {
//GENERATED_UPDATE_INSTANCE_METHOD_START
this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this);
//GENERATED_UPDATE_INSTANCE_METHOD_END
//CUSTOM_UPDATE_INSTANCE_METHOD_START
//CUSTOM_UPDATE_INSTANCE_METHOD_END
}
/**
* updateFromInstance()
* - No comment
*/
updateFromInstance() {
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_START
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_END
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_START
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentInput = require('.././r3-component-input.js');
Methods: Methods:
<no methods> - updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods: Static Methods:
@ -154,6 +158,8 @@ const ComponentInput = require('.././r3-component-input.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentTouch extends ComponentInput {
//GENERATED_CONSTRUCTOR_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
/**
* updateInstance()
* - No comment
*/
updateInstance() {
//GENERATED_UPDATE_INSTANCE_METHOD_START
this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this);
//GENERATED_UPDATE_INSTANCE_METHOD_END
//CUSTOM_UPDATE_INSTANCE_METHOD_START
//CUSTOM_UPDATE_INSTANCE_METHOD_END
}
/**
* updateFromInstance()
* - No comment
*/
updateFromInstance() {
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_START
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_START
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
//GENERATED_UPDATE_FROM_INSTANCE_METHOD_END
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_START
//CUSTOM_UPDATE_FROM_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START

View File

@ -366,16 +366,19 @@ Event.MOUSE_WHEEL = 0x14;
Event.OBJECT_CREATED = 0x15; Event.OBJECT_CREATED = 0x15;
Event.OBJECT_INITIALIZED = 0x16; Event.OBJECT_INITIALIZED = 0x16;
Event.PAUSE = 0x17; Event.PAUSE = 0x17;
Event.PROJECT_INITIALIZED = 0x18; Event.PROJECT_CREATED = 0x18;
Event.RESTART = 0x19; Event.PROJECT_INITIALIZED = 0x19;
Event.START = 0x1a; Event.RESTART = 0x1a;
Event.TOUCH_CANCEL = 0x1b; Event.START = 0x1b;
Event.TOUCH_END = 0x1c; Event.TOUCH_CANCEL = 0x1c;
Event.TOUCH_MOVE = 0x1d; Event.TOUCH_END = 0x1d;
Event.TOUCH_START = 0x1e; Event.TOUCH_MOVE = 0x1e;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f; Event.TOUCH_START = 0x1f;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20; Event.UPDATE_FROM_INSTANCE_AFTER = 0x20;
Event.MAX_EVENTS = 0x21; Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21;
Event.UPDATE_INSTANCE_AFTER = 0x22;
Event.UPDATE_INSTANCE_BEFORE = 0x23;
Event.MAX_EVENTS = 0x24;
Event.GetEventName = function(eventId) { Event.GetEventName = function(eventId) {
@ -403,15 +406,18 @@ Event.GetEventName = function(eventId) {
case 0x15 : return 'object_created'; case 0x15 : return 'object_created';
case 0x16 : return 'object_initialized'; case 0x16 : return 'object_initialized';
case 0x17 : return 'pause'; case 0x17 : return 'pause';
case 0x18 : return 'project_initialized'; case 0x18 : return 'project_created';
case 0x19 : return 'restart'; case 0x19 : return 'project_initialized';
case 0x1a : return 'start'; case 0x1a : return 'restart';
case 0x1b : return 'touch_cancel'; case 0x1b : return 'start';
case 0x1c : return 'touch_end'; case 0x1c : return 'touch_cancel';
case 0x1d : return 'touch_move'; case 0x1d : return 'touch_end';
case 0x1e : return 'touch_start'; case 0x1e : return 'touch_move';
case 0x1f : return 'update_from_instance_after'; case 0x1f : return 'touch_start';
case 0x20 : return 'update_from_instance_before'; 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';
default : default :
throw new Error('Event type not defined : ' + eventId); throw new Error('Event type not defined : ' + eventId);
} }

View File

@ -1,14 +1,14 @@
class R3 { class R3 {
static version = '2.0.522'; static version = '2.0.533';
static compileDate = '2021 Sep 10 - 11:12:39 am'; static compileDate = '2021 Sep 10 - 14:01:56 pm';
} }
//GENERATED_IMPORTS_START //GENERATED_IMPORTS_START
const Entity = require('./r3-entity/'); const Entity = require('./r3-entity/');
const Runtime = require('./r3-runtime/');
const System = require('./r3-system/'); const System = require('./r3-system/');
const Event = require('./r3-event.js'); const Event = require('./r3-event.js');
const Utils = require('./r3-utils.js'); const Utils = require('./r3-utils.js');
const Runtime = require('./r3-runtime/');
const R3Object = require('./r3-r3-object.js'); const R3Object = require('./r3-r3-object.js');
const Component = require('./r3-component/'); const Component = require('./r3-component/');
const Project = require('./r3-project.js'); const Project = require('./r3-project.js');
@ -16,10 +16,10 @@ const Project = require('./r3-project.js');
//GENERATED_DEFINES_START //GENERATED_DEFINES_START
R3.Entity = Entity; R3.Entity = Entity;
R3.Runtime = Runtime;
R3.System = System; R3.System = System;
R3.Event = Event; R3.Event = Event;
R3.Utils = Utils; R3.Utils = Utils;
R3.Runtime = Runtime;
R3.Object = R3Object; R3.Object = R3Object;
R3.Component = Component; R3.Component = Component;
R3.Project = Project; R3.Project = Project;

View File

@ -1,5 +1,6 @@
//GENERATED_IMPORTS_START //GENERATED_IMPORTS_START
const Runtime = require('./r3-runtime.js'); const Runtime = require('./r3-runtime.js');
const RuntimeBullet = require('./r3-runtime-bullet.js');
const RuntimeCoder = require('./r3-runtime-coder.js'); const RuntimeCoder = require('./r3-runtime-coder.js');
const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js'); const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js');
const RuntimeDOM = require('./r3-runtime-d-o-m.js'); const RuntimeDOM = require('./r3-runtime-d-o-m.js');
@ -10,13 +11,13 @@ const RuntimeControlKit = require('./r3-runtime-control-kit.js');
const RuntimeGraphics = require('./r3-runtime-graphics.js'); const RuntimeGraphics = require('./r3-runtime-graphics.js');
const RuntimeThree = require('./r3-runtime-three.js'); const RuntimeThree = require('./r3-runtime-three.js');
const RuntimePhysics = require('./r3-runtime-physics.js'); const RuntimePhysics = require('./r3-runtime-physics.js');
const RuntimeBullet = require('./r3-runtime-bullet.js');
const RuntimeSocket = require('./r3-runtime-socket.js'); const RuntimeSocket = require('./r3-runtime-socket.js');
const RuntimeStatistics = require('./r3-runtime-statistics.js'); const RuntimeStatistics = require('./r3-runtime-statistics.js');
const RuntimeStats = require('./r3-runtime-stats.js'); const RuntimeStats = require('./r3-runtime-stats.js');
//GENERATED_IMPORTS_END //GENERATED_IMPORTS_END
//GENERATED_INDEX_BODY_START //GENERATED_INDEX_BODY_START
Runtime.Bullet = RuntimeBullet;
Runtime.Coder = RuntimeCoder; Runtime.Coder = RuntimeCoder;
Runtime.Coder.CodeMirror = RuntimeCodeMirror; Runtime.Coder.CodeMirror = RuntimeCodeMirror;
Runtime.DOM = RuntimeDOM; Runtime.DOM = RuntimeDOM;
@ -27,7 +28,6 @@ Runtime.GUI.ControlKit = RuntimeControlKit;
Runtime.Graphics = RuntimeGraphics; Runtime.Graphics = RuntimeGraphics;
Runtime.Graphics.Three = RuntimeThree; Runtime.Graphics.Three = RuntimeThree;
Runtime.Physics = RuntimePhysics; Runtime.Physics = RuntimePhysics;
Runtime.Physics.Bullet = RuntimeBullet;
Runtime.Socket = RuntimeSocket; Runtime.Socket = RuntimeSocket;
Runtime.Statistics = RuntimeStatistics; Runtime.Statistics = RuntimeStatistics;
Runtime.Statistics.Stats = RuntimeStats; Runtime.Statistics.Stats = RuntimeStats;

View File

@ -1,71 +1,14 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const RuntimePhysics = require('.././r3-runtime-physics.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Physics.Bullet Class R3.Runtime.Bullet
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Inherited from RuntimePhysics]
Inherited Properties: Inherited Properties:
<no inherited properties> <no inherited properties>
@ -94,7 +37,8 @@ const RuntimePhysics = require('.././r3-runtime-physics.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -102,77 +46,48 @@ const RuntimePhysics = require('.././r3-runtime-physics.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeBullet extends RuntimePhysics { class RuntimeBullet extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const RuntimeCoder = require('.././r3-runtime-coder.js'); const RuntimeCoder = require('./r3-runtime-coder.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Coder.CodeMirror Class R3.Runtime.Coder.CodeMirror
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const RuntimeCoder = require('.././r3-runtime-coder.js');
Inherited Methods: Inherited Methods:
<no inherited methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods: Inherited Static Methods:
@ -94,7 +56,8 @@ const RuntimeCoder = require('.././r3-runtime-coder.js');
Methods: Methods:
<no methods> - createInstance(component)
Overrides for R3.Runtime.RuntimeCoder.createInstance()
Static Methods: Static Methods:
@ -102,77 +65,48 @@ const RuntimeCoder = require('.././r3-runtime-coder.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeCodeMirror extends RuntimeCoder { class RuntimeCodeMirror extends RuntimeCoder {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Coder Class R3.Runtime.Coder
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeCoder extends Runtime { class RuntimeCoder extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const RuntimeGUI = require('.././r3-runtime-g-u-i.js'); const RuntimeGUI = require('./r3-runtime-g-u-i.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.GUI.ControlKit Class R3.Runtime.GUI.ControlKit
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const RuntimeGUI = require('.././r3-runtime-g-u-i.js');
Inherited Methods: Inherited Methods:
<no inherited methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods: Inherited Static Methods:
@ -94,7 +56,8 @@ const RuntimeGUI = require('.././r3-runtime-g-u-i.js');
Methods: Methods:
<no methods> - createInstance(component)
Overrides for R3.Runtime.RuntimeGUI.createInstance()
Static Methods: Static Methods:
@ -102,77 +65,48 @@ const RuntimeGUI = require('.././r3-runtime-g-u-i.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeControlKit extends RuntimeGUI { class RuntimeControlKit extends RuntimeGUI {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.DOM Class R3.Runtime.DOM
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeDOM extends Runtime { class RuntimeDOM extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -6,46 +6,7 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Default Class R3.Runtime.Default
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const RuntimeDOM = require('.././r3-runtime-d-o-m.js'); const RuntimeDOM = require('./r3-runtime-d-o-m.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.DOM.Document Class R3.Runtime.DOM.Document
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const RuntimeDOM = require('.././r3-runtime-d-o-m.js');
Inherited Methods: Inherited Methods:
<no inherited methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods: Inherited Static Methods:
@ -94,7 +56,8 @@ const RuntimeDOM = require('.././r3-runtime-d-o-m.js');
Methods: Methods:
<no methods> - createInstance(component)
Overrides for R3.Runtime.RuntimeDOM.createInstance()
Static Methods: Static Methods:
@ -102,77 +65,48 @@ const RuntimeDOM = require('.././r3-runtime-d-o-m.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeDocument extends RuntimeDOM { class RuntimeDocument extends RuntimeDOM {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.GUI Class R3.Runtime.GUI
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeGUI extends Runtime { class RuntimeGUI extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Graphics Class R3.Runtime.Graphics
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeGraphics extends Runtime { class RuntimeGraphics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Physics Class R3.Runtime.Physics
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimePhysics extends Runtime { class RuntimePhysics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Socket Class R3.Runtime.Socket
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeSocket extends Runtime { class RuntimeSocket extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Runtime = require('.././r3-runtime.js'); const Runtime = require('./r3-runtime.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Statistics Class R3.Runtime.Statistics
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const Runtime = require('.././r3-runtime.js');
Methods: Methods:
<no methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods: Static Methods:
@ -84,77 +46,48 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeStatistics extends Runtime { class RuntimeStatistics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const RuntimeStatistics = require('.././r3-runtime-statistics.js'); const RuntimeStatistics = require('./r3-runtime-statistics.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Statistics.Stats Class R3.Runtime.Statistics.Stats
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const RuntimeStatistics = require('.././r3-runtime-statistics.js');
Inherited Methods: Inherited Methods:
<no inherited methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods: Inherited Static Methods:
@ -94,7 +56,8 @@ const RuntimeStatistics = require('.././r3-runtime-statistics.js');
Methods: Methods:
<no methods> - createInstance(component)
Overrides for R3.Runtime.RuntimeStatistics.createInstance()
Static Methods: Static Methods:
@ -102,77 +65,48 @@ const RuntimeStatistics = require('.././r3-runtime-statistics.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeStats extends RuntimeStatistics { class RuntimeStats extends RuntimeStatistics {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,51 +1,12 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const RuntimeGraphics = require('.././r3-runtime-graphics.js'); const RuntimeGraphics = require('./r3-runtime-graphics.js');
/** /**
GENERATED_INHERITED_START GENERATED_INHERITED_START
Class R3.Event.Runtime.Graphics.Three Class R3.Runtime.Graphics.Three
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from Runtime] [Inherited from Runtime]
Inherited Properties: Inherited Properties:
@ -76,7 +37,8 @@ const RuntimeGraphics = require('.././r3-runtime-graphics.js');
Inherited Methods: Inherited Methods:
<no inherited methods> - createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods: Inherited Static Methods:
@ -94,7 +56,8 @@ const RuntimeGraphics = require('.././r3-runtime-graphics.js');
Methods: Methods:
<no methods> - createInstance(component)
Overrides for R3.Runtime.RuntimeGraphics.createInstance()
Static Methods: Static Methods:
@ -102,77 +65,48 @@ const RuntimeGraphics = require('.././r3-runtime-graphics.js');
GENERATED_INHERITED_END 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_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class RuntimeThree extends RuntimeGraphics { class RuntimeThree extends RuntimeGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) { constructor() {
super();
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_EXTENDS_END //GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START /**
//GENERATED_STATIC_METHODS_END * createInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
createInstance(component) {
//GENERATED_CREATE_INSTANCE_METHOD_START
this.emit(Event.CREATE_INSTANCE_BEFORE, this);
this.setRuntime();
this.runtime.createInstance(this);
this.emit(Event.INSTANCE_CREATED, this);
//GENERATED_CREATE_INSTANCE_METHOD_END
//CUSTOM_CREATE_INSTANCE_METHOD_START
//CUSTOM_CREATE_INSTANCE_METHOD_END
}
//GENERATED_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,155 +1,44 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const Event = require('.././r3-event.js');
/** /**
GENERATED_INHERITED_START
Class R3.Event.Runtime
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialize()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Belonging to Runtime]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END 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_START
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class Runtime extends Event { class Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START //GENERATED_CONSTRUCTOR_START
constructor(options) { constructor() {
if (typeof options === 'undefined') {
options = {};
} }
//GENERATED_CONSTRUCTOR_END
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_EXTENDS_END
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
Runtime.RUNTIME_CODER = 0x0; Runtime.RUNTIME_BULLET = 0x0;
Runtime.RUNTIME_CODE_MIRROR = 0x1; Runtime.RUNTIME_CODER = 0x1;
Runtime.RUNTIME_DOM = 0x2; Runtime.RUNTIME_CODE_MIRROR = 0x2;
Runtime.RUNTIME_DOCUMENT = 0x3; Runtime.RUNTIME_DOM = 0x3;
Runtime.RUNTIME_DEFAULT = 0x4; Runtime.RUNTIME_DOCUMENT = 0x4;
Runtime.RUNTIME_GUI = 0x5; Runtime.RUNTIME_DEFAULT = 0x5;
Runtime.RUNTIME_CONTROL_KIT = 0x6; Runtime.RUNTIME_GUI = 0x6;
Runtime.RUNTIME_GRAPHICS = 0x7; Runtime.RUNTIME_CONTROL_KIT = 0x7;
Runtime.RUNTIME_THREE = 0x8; Runtime.RUNTIME_GRAPHICS = 0x8;
Runtime.RUNTIME_PHYSICS = 0x9; Runtime.RUNTIME_THREE = 0x9;
Runtime.RUNTIME_BULLET = 0xa; Runtime.RUNTIME_PHYSICS = 0xa;
Runtime.RUNTIME_SOCKET = 0xb; Runtime.RUNTIME_SOCKET = 0xb;
Runtime.RUNTIME_STATISTICS = 0xc; Runtime.RUNTIME_STATISTICS = 0xc;
Runtime.RUNTIME_STATS = 0xd; Runtime.RUNTIME_STATS = 0xd;

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const System = require('./r3-system.js'); const System = require('.././r3-system.js');
/** /**
@ -183,8 +183,6 @@ class SystemDOM extends System {
//GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END //GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_START //CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_START
console.log('DOM Component Initialized');
object.createInstance(); object.createInstance();
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END //CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
@ -193,7 +191,6 @@ class SystemDOM extends System {
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START //GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const System = require('./r3-system.js'); const System = require('.././r3-system.js');
/** /**
@ -415,7 +415,6 @@ class SystemInput extends System {
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START //GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const System = require('./r3-system.js'); const System = require('.././r3-system.js');
/** /**
@ -244,7 +244,6 @@ class SystemLinking extends System {
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START //GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const System = require('./r3-system.js'); const System = require('.././r3-system.js');
/** /**
@ -35,6 +35,14 @@ const System = require('./r3-system.js');
- Started (Default value false) - Started (Default value false)
- Subscriptions (Default value {}) - Subscriptions (Default value {})
- Projects (Default value [])
- CurrentProject (Default value null)
- RuntimeCoder (Default value {})
- RuntimeDOM (Default value {})
- RuntimeGUI (Default value {})
- RuntimeGraphics (Default value {})
- RuntimePhysics (Default value {})
- RuntimeStatistics (Default value {})
Methods: Methods:
@ -56,6 +64,14 @@ const System = require('./r3-system.js');
CUSTOM_STATIC_OPTIONS_START CUSTOM_STATIC_OPTIONS_START
Started=false Started=false
Subscriptions={} Subscriptions={}
Projects=[]
CurrentProject=null
RuntimeCoder={}
RuntimeDOM={}
RuntimeGUI={}
RuntimeGraphics={}
RuntimePhysics={}
RuntimeStatistics={}
CUSTOM_STATIC_OPTIONS_END CUSTOM_STATIC_OPTIONS_END
CUSTOM_EVENT_LISTENERS_START CUSTOM_EVENT_LISTENERS_START
@ -63,6 +79,7 @@ const System = require('./r3-system.js');
CUSTOM_STATIC_EVENT_LISTENERS_START CUSTOM_STATIC_EVENT_LISTENERS_START
Event.GET_RUNTIME Event.GET_RUNTIME
Event.PROJECT_CREATED
CUSTOM_STATIC_EVENT_LISTENERS_END CUSTOM_STATIC_EVENT_LISTENERS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
@ -122,6 +139,11 @@ class SystemRuntime extends System {
SystemRuntime.OnGetRuntime SystemRuntime.OnGetRuntime
); );
SystemRuntime.Subscriptions['PROJECT_CREATED'] = Event.Subscribe(
Event.PROJECT_CREATED,
SystemRuntime.OnProjectCreated
);
//GENERATED_STATIC_EVENT_LISTENERS_START_END //GENERATED_STATIC_EVENT_LISTENERS_START_END
//CUSTOM_BEFORE_STATIC_SYSTEM_START_START //CUSTOM_BEFORE_STATIC_SYSTEM_START_START
@ -151,6 +173,9 @@ class SystemRuntime extends System {
SystemRuntime.Subscriptions['GET_RUNTIME'].remove(); SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
delete SystemRuntime.Subscriptions['GET_RUNTIME']; delete SystemRuntime.Subscriptions['GET_RUNTIME'];
SystemRuntime.Subscriptions['PROJECT_CREATED'].remove();
delete SystemRuntime.Subscriptions['PROJECT_CREATED'];
//GENERATED_STATIC_EVENT_LISTENERS_STOP_END //GENERATED_STATIC_EVENT_LISTENERS_STOP_END
//CUSTOM_BEFORE_STATIC_SYSTEM_STOP_START //CUSTOM_BEFORE_STATIC_SYSTEM_STOP_START
@ -186,21 +211,50 @@ class SystemRuntime extends System {
//CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_START //CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_START
if (object instanceof R3.Component.DOM) { if (object instanceof R3.Component.DOM) {
if (SystemRuntime.CurrentProject === null) {
console.log('There currently is no active project - using the default DOM runtime');
} else {
console.log('TODO: implement a project based DOM runtime');
}
} }
//CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_END //CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_END
}
/**
* OnProjectCreated()
* - Listens to events of type Event.PROJECT_CREATED and executes this function.
* @param object (The event data passed as argument - typically an R3Object)
* @return null
*/
static OnProjectCreated(object) {
//GENERATED_STATIC_ON_PROJECT_CREATED_METHOD_START
//GENERATED_STATIC_ON_PROJECT_CREATED_METHOD_END
//CUSTOM_STATIC_ON_PROJECT_CREATED_METHOD_START
Utils.PushUnique(SystemRuntime.Projects, object);
SystemRuntime.CurrentProject = object;
//CUSTOM_STATIC_ON_PROJECT_CREATED_METHOD_END
} }
//GENERATED_STATIC_EVENT_LISTENER_METHODS_END //GENERATED_STATIC_EVENT_LISTENER_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START //GENERATED_STATIC_OPTIONS_INIT_START
SystemRuntime.Started = false; SystemRuntime.Started = false;
SystemRuntime.Subscriptions = {}; SystemRuntime.Subscriptions = {};
SystemRuntime.Projects = [];
SystemRuntime.CurrentProject = null;
SystemRuntime.RuntimeCoder = {};
SystemRuntime.RuntimeDOM = {};
SystemRuntime.RuntimeGUI = {};
SystemRuntime.RuntimeGraphics = {};
SystemRuntime.RuntimePhysics = {};
SystemRuntime.RuntimeStatistics = {};
//GENERATED_STATIC_OPTIONS_INIT_END //GENERATED_STATIC_OPTIONS_INIT_END
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event'); const Event = require('.././r3-event');
const Utils = require('.././r3-utils'); const Utils = require('.././r3-utils');
const System = require('./r3-system.js'); const System = require('.././r3-system.js');
/** /**
@ -168,7 +168,6 @@ class SystemSocket extends System {
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START //GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -0,0 +1,44 @@
const Event = require('INCLUDE_PATH/r3-event');
const Utils = require('INCLUDE_PATH/r3-utils');
/**
GENERATED_INHERITED_START
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_METHODS_START
initialize() - Should raise an event(s) which indicates that this object initialized
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class CLASS_NAME {
//GENERATED_CONSTRUCTOR_START
//GENERATED_CONSTRUCTOR_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_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 = CLASS_NAME;

View File

@ -0,0 +1,34 @@
constructor(options) {
Event.Emit(Event.OBJECT_CREATED, this);
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
//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
}

View File

@ -0,0 +1,54 @@
const Event = require('INCLUDE_PATH/r3-event');
const Utils = require('INCLUDE_PATH/r3-utils');
const EXTEND_CLASS = require('INCLUDE_PATH/EXTEND_CLASS_FILE_NAME');
/**
GENERATED_INHERITED_START
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
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class CLASS_NAME extends EXTEND_CLASS {
//GENERATED_CONSTRUCTOR_EXTENDS_START
//GENERATED_CONSTRUCTOR_EXTENDS_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 = CLASS_NAME;

View File

@ -0,0 +1,44 @@
const Event = require('INCLUDE_PATH/r3-event');
const Utils = require('INCLUDE_PATH/r3-utils');
/**
GENERATED_INHERITED_START
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_METHODS_START
initialize() - Should raise an event(s) which indicates that this object initialized
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class CLASS_NAME {
//GENERATED_CONSTRUCTOR_START
//GENERATED_CONSTRUCTOR_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_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 = CLASS_NAME;

View File

@ -0,0 +1,34 @@
constructor(options) {
Event.Emit(Event.OBJECT_CREATED, this);
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
//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
}

View File

@ -0,0 +1,52 @@
const Event = require('INCLUDE_PATH/r3-event');
const Utils = require('INCLUDE_PATH/r3-utils');
const EXTEND_CLASS = require('INCLUDE_PATH/EXTEND_CLASS_FILE_NAME');
/**
GENERATED_INHERITED_START
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 CLASS_NAME extends EXTEND_CLASS {
//GENERATED_CONSTRUCTOR_EXTENDS_START
//GENERATED_CONSTRUCTOR_EXTENDS_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 = CLASS_NAME;

View File

@ -0,0 +1,38 @@
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
}

View File

@ -0,0 +1,38 @@
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
}

View File

@ -6,21 +6,9 @@ const Utils = require('INCLUDE_PATH/r3-utils');
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END CUSTOM_OPTIONS_END
CUSTOM_STATIC_OPTIONS_START
CUSTOM_STATIC_OPTIONS_END
CUSTOM_EVENT_LISTENERS_START
CUSTOM_EVENT_LISTENERS_END
CUSTOM_STATIC_EVENT_LISTENERS_START
CUSTOM_STATIC_EVENT_LISTENERS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/ **/
class CLASS_NAME { class CLASS_NAME {
@ -31,23 +19,11 @@ class CLASS_NAME {
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//GENERATED_EVENT_LISTENER_METHODS_START
//GENERATED_EVENT_LISTENER_METHODS_END
//GENERATED_STATIC_EVENT_LISTENER_METHODS_START
//GENERATED_STATIC_EVENT_LISTENER_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START
//GENERATED_STATIC_OPTIONS_INIT_END
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END

View File

@ -0,0 +1,3 @@
constructor() {
}

View File

@ -8,28 +8,10 @@ const EXTEND_CLASS = require('./EXTEND_CLASS_FILE_NAME');
GENERATED_INHERITED_END GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_STATIC_OPTIONS_START
Started=false
Subscriptions={}
CUSTOM_STATIC_OPTIONS_END
CUSTOM_EVENT_LISTENERS_START
CUSTOM_EVENT_LISTENERS_END
CUSTOM_STATIC_EVENT_LISTENERS_START
CUSTOM_STATIC_EVENT_LISTENERS_END
CUSTOM_METHODS_START CUSTOM_METHODS_START
createInstance(component) - Creates an instance of R3.Component based on this Runtime.
CUSTOM_METHODS_END CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
Start(options) - Starts the system by registering subscriptions to events
Stop(options) - Stops the system by removing these subscriptions to events
CUSTOM_STATIC_METHODS_END
**/ **/
class CLASS_NAME extends EXTEND_CLASS { class CLASS_NAME extends EXTEND_CLASS {
@ -40,23 +22,11 @@ class CLASS_NAME extends EXTEND_CLASS {
//GENERATED_METHODS_START //GENERATED_METHODS_START
//GENERATED_METHODS_END //GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//GENERATED_EVENT_LISTENER_METHODS_START
//GENERATED_EVENT_LISTENER_METHODS_END
//GENERATED_STATIC_EVENT_LISTENER_METHODS_START
//GENERATED_STATIC_EVENT_LISTENER_METHODS_END
//CUSTOM_IMPLEMENTATION_START //CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END //CUSTOM_IMPLEMENTATION_END
} }
//GENERATED_STATIC_OPTIONS_INIT_START
//GENERATED_STATIC_OPTIONS_INIT_END
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END //GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END

View File

@ -0,0 +1,3 @@
constructor() {
super();
}

View File

@ -8,7 +8,7 @@ const Utils = require('INCLUDE_PATH/r3-utils');
**/ **/
class CLASS_NAME { static class CLASS_NAME {
//GENERATED_STATIC_METHODS_START //GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END //GENERATED_STATIC_METHODS_END

View File

@ -0,0 +1,65 @@
const Event = require('INCLUDE_PATH/r3-event');
const Utils = require('INCLUDE_PATH/r3-utils');
const EXTEND_CLASS = require('INCLUDE_PATH/EXTEND_CLASS_FILE_NAME');
/**
GENERATED_INHERITED_START
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_STATIC_OPTIONS_START
Started=false
Subscriptions={}
CUSTOM_STATIC_OPTIONS_END
CUSTOM_EVENT_LISTENERS_START
CUSTOM_EVENT_LISTENERS_END
CUSTOM_STATIC_EVENT_LISTENERS_START
CUSTOM_STATIC_EVENT_LISTENERS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
Start(options) - Starts the system by registering subscriptions to events
Stop(options) - Stops the system by removing these subscriptions to events
CUSTOM_STATIC_METHODS_END
**/
class CLASS_NAME extends EXTEND_CLASS {
//GENERATED_CONSTRUCTOR_EXTENDS_START
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//GENERATED_EVENT_LISTENER_METHODS_START
//GENERATED_EVENT_LISTENER_METHODS_END
//GENERATED_STATIC_EVENT_LISTENER_METHODS_START
//GENERATED_STATIC_EVENT_LISTENER_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_STATIC_OPTIONS_INIT_START
//GENERATED_STATIC_OPTIONS_INIT_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 = CLASS_NAME;

View File

@ -38,6 +38,7 @@ GENERATED_STATIC_ON_MOUSE_UP_METHOD
GENERATED_STATIC_ON_MOUSE_WHEEL_METHOD GENERATED_STATIC_ON_MOUSE_WHEEL_METHOD
GENERATED_STATIC_ON_OBJECT_CREATED_METHOD GENERATED_STATIC_ON_OBJECT_CREATED_METHOD
GENERATED_STATIC_ON_OBJECT_INITIALIZED_METHOD GENERATED_STATIC_ON_OBJECT_INITIALIZED_METHOD
GENERATED_STATIC_ON_PROJECT_CREATED_METHOD
GENERATED_STATIC_ON_TOUCH_CANCEL_METHOD GENERATED_STATIC_ON_TOUCH_CANCEL_METHOD
GENERATED_STATIC_ON_TOUCH_END_METHOD GENERATED_STATIC_ON_TOUCH_END_METHOD
GENERATED_STATIC_ON_TOUCH_MOVE_METHOD GENERATED_STATIC_ON_TOUCH_MOVE_METHOD
@ -49,6 +50,7 @@ GENERATED_STATIC_SUBSCRIBE_METHOD
GENERATED_SUBSCRIBE_METHOD GENERATED_SUBSCRIBE_METHOD
GENERATED_UPDATE_FROM_INSTANCE_METHOD GENERATED_UPDATE_FROM_INSTANCE_METHOD
GENERATED_UPDATE_FROM_INSTANCE_OPTIONS GENERATED_UPDATE_FROM_INSTANCE_OPTIONS
GENERATED_UPDATE_INSTANCE_METHOD
GENERATED_UPDATE_INSTANCE_OPTIONS GENERATED_UPDATE_INSTANCE_OPTIONS
CUSTOM_AFTER_INIT CUSTOM_AFTER_INIT
CUSTOM_ASYNC_METHOD CUSTOM_ASYNC_METHOD
@ -90,6 +92,7 @@ CUSTOM_STATIC_ON_MOUSE_UP_METHOD
CUSTOM_STATIC_ON_MOUSE_WHEEL_METHOD CUSTOM_STATIC_ON_MOUSE_WHEEL_METHOD
CUSTOM_STATIC_ON_OBJECT_CREATED_METHOD CUSTOM_STATIC_ON_OBJECT_CREATED_METHOD
CUSTOM_STATIC_ON_OBJECT_INITIALIZED_METHOD CUSTOM_STATIC_ON_OBJECT_INITIALIZED_METHOD
CUSTOM_STATIC_ON_PROJECT_CREATED_METHOD
CUSTOM_STATIC_ON_TOUCH_CANCEL_METHOD CUSTOM_STATIC_ON_TOUCH_CANCEL_METHOD
CUSTOM_STATIC_ON_TOUCH_END_METHOD CUSTOM_STATIC_ON_TOUCH_END_METHOD
CUSTOM_STATIC_ON_TOUCH_MOVE_METHOD CUSTOM_STATIC_ON_TOUCH_MOVE_METHOD
@ -100,3 +103,4 @@ CUSTOM_STATIC_STOP_METHOD
CUSTOM_STATIC_SUBSCRIBE_METHOD CUSTOM_STATIC_SUBSCRIBE_METHOD
CUSTOM_SUBSCRIBE_METHOD CUSTOM_SUBSCRIBE_METHOD
CUSTOM_UPDATE_FROM_INSTANCE_METHOD CUSTOM_UPDATE_FROM_INSTANCE_METHOD
CUSTOM_UPDATE_INSTANCE_METHOD

View File

@ -1 +1 @@
2.0.522 2.0.533