each one for his own

master
Theunis J. Botha 2021-09-10 14:03:19 +02:00
parent c66c10b618
commit d4c5e23f3a
35 changed files with 2424 additions and 1658 deletions

2642
dist/r3.js vendored

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -133,7 +133,11 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
Methods:
<no methods>
- updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods:
@ -154,6 +158,8 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentCanvas extends ComponentDOM {
//GENERATED_CONSTRUCTOR_EXTENDS_END
//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_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods:
<no methods>
- updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentImage extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END
//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_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods:
<no methods>
- updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentMaterial extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END
//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_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods:
<no methods>
- updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentMesh extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END
//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_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
Methods:
<no methods>
- updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods:
@ -154,6 +158,8 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentTexture extends ComponentGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_END
//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_STATIC_METHODS_START

View File

@ -133,7 +133,11 @@ const ComponentInput = require('.././r3-component-input.js');
Methods:
<no methods>
- updateInstance()
No comment
- updateFromInstance()
No comment
Static Methods:
@ -154,6 +158,8 @@ const ComponentInput = require('.././r3-component-input.js');
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
updateInstance()
updateFromInstance()
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
@ -205,6 +211,47 @@ class ComponentTouch extends ComponentInput {
//GENERATED_CONSTRUCTOR_EXTENDS_END
//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_STATIC_METHODS_START

View File

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

View File

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

View File

@ -1,5 +1,6 @@
//GENERATED_IMPORTS_START
const Runtime = require('./r3-runtime.js');
const RuntimeBullet = require('./r3-runtime-bullet.js');
const RuntimeCoder = require('./r3-runtime-coder.js');
const RuntimeCodeMirror = require('./r3-runtime-code-mirror.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 RuntimeThree = require('./r3-runtime-three.js');
const RuntimePhysics = require('./r3-runtime-physics.js');
const RuntimeBullet = require('./r3-runtime-bullet.js');
const RuntimeSocket = require('./r3-runtime-socket.js');
const RuntimeStatistics = require('./r3-runtime-statistics.js');
const RuntimeStats = require('./r3-runtime-stats.js');
//GENERATED_IMPORTS_END
//GENERATED_INDEX_BODY_START
Runtime.Bullet = RuntimeBullet;
Runtime.Coder = RuntimeCoder;
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
Runtime.DOM = RuntimeDOM;
@ -27,7 +28,6 @@ Runtime.GUI.ControlKit = RuntimeControlKit;
Runtime.Graphics = RuntimeGraphics;
Runtime.Graphics.Three = RuntimeThree;
Runtime.Physics = RuntimePhysics;
Runtime.Physics.Bullet = RuntimeBullet;
Runtime.Socket = RuntimeSocket;
Runtime.Statistics = RuntimeStatistics;
Runtime.Statistics.Stats = RuntimeStats;

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.Bullet
[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>
[Belonging to RuntimeBullet]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeBullet extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,63 @@ const RuntimeCoder = require('./r3-runtime-coder.js');
GENERATED_INHERITED_START
Class R3.Runtime.Coder.CodeMirror
[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 RuntimeCoder]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeCodeMirror]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Overrides for R3.Runtime.RuntimeCoder.createInstance()
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +74,34 @@ const RuntimeCoder = require('./r3-runtime-coder.js');
class RuntimeCodeMirror extends RuntimeCoder {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.Coder
[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>
[Belonging to RuntimeCoder]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeCoder extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,63 @@ const RuntimeGUI = require('./r3-runtime-g-u-i.js');
GENERATED_INHERITED_START
Class R3.Runtime.GUI.ControlKit
[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 RuntimeGUI]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeControlKit]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Overrides for R3.Runtime.RuntimeGUI.createInstance()
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +74,34 @@ const RuntimeGUI = require('./r3-runtime-g-u-i.js');
class RuntimeControlKit extends RuntimeGUI {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.DOM
[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>
[Belonging to RuntimeDOM]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeDOM extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,46 +6,7 @@ const Runtime = require('.././r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Event.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
Class R3.Runtime.Default
[Inherited from Runtime]
Inherited Properties:

View File

@ -6,6 +6,63 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js');
GENERATED_INHERITED_START
Class R3.Runtime.DOM.Document
[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 RuntimeDOM]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeDocument]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Overrides for R3.Runtime.RuntimeDOM.createInstance()
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +74,34 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js');
class RuntimeDocument extends RuntimeDOM {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.GUI
[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>
[Belonging to RuntimeGUI]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeGUI extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.Graphics
[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>
[Belonging to RuntimeGraphics]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeGraphics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.Physics
[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>
[Belonging to RuntimePhysics]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimePhysics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.Socket
[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>
[Belonging to RuntimeSocket]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeSocket extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,44 @@ const Runtime = require('./r3-runtime.js');
GENERATED_INHERITED_START
Class R3.Runtime.Statistics
[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>
[Belonging to RuntimeStatistics]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +55,34 @@ const Runtime = require('./r3-runtime.js');
class RuntimeStatistics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,63 @@ const RuntimeStatistics = require('./r3-runtime-statistics.js');
GENERATED_INHERITED_START
Class R3.Runtime.Statistics.Stats
[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 RuntimeStatistics]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeStats]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Overrides for R3.Runtime.RuntimeStatistics.createInstance()
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +74,34 @@ const RuntimeStatistics = require('./r3-runtime-statistics.js');
class RuntimeStats extends RuntimeStatistics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -6,6 +6,63 @@ const RuntimeGraphics = require('./r3-runtime-graphics.js');
GENERATED_INHERITED_START
Class R3.Runtime.Graphics.Three
[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 RuntimeGraphics]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- createInstance(component)
Creates an instance of R3.Component based on this Runtime.
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeThree]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- createInstance(component)
Overrides for R3.Runtime.RuntimeGraphics.createInstance()
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_METHODS_START
@ -17,9 +74,34 @@ const RuntimeGraphics = require('./r3-runtime-graphics.js');
class RuntimeThree extends RuntimeGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor() {
super();
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* 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

View File

@ -14,6 +14,9 @@ const Utils = require('.././r3-utils');
class Runtime {
//GENERATED_CONSTRUCTOR_START
constructor() {
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_METHODS_START
@ -25,6 +28,21 @@ class Runtime {
}
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
Runtime.RUNTIME_BULLET = 0x0;
Runtime.RUNTIME_CODER = 0x1;
Runtime.RUNTIME_CODE_MIRROR = 0x2;
Runtime.RUNTIME_DOM = 0x3;
Runtime.RUNTIME_DOCUMENT = 0x4;
Runtime.RUNTIME_DEFAULT = 0x5;
Runtime.RUNTIME_GUI = 0x6;
Runtime.RUNTIME_CONTROL_KIT = 0x7;
Runtime.RUNTIME_GRAPHICS = 0x8;
Runtime.RUNTIME_THREE = 0x9;
Runtime.RUNTIME_PHYSICS = 0xa;
Runtime.RUNTIME_SOCKET = 0xb;
Runtime.RUNTIME_STATISTICS = 0xc;
Runtime.RUNTIME_STATS = 0xd;
Runtime.MAX_RUNTIME = 0xe;
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
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
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_START
console.log('DOM Component Initialized');
object.createInstance();
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
@ -193,7 +191,6 @@ class SystemDOM extends System {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
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_END
}
//GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
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_END
}
//GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
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)
- 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:
@ -56,6 +64,14 @@ const System = require('./r3-system.js');
CUSTOM_STATIC_OPTIONS_START
Started=false
Subscriptions={}
Projects=[]
CurrentProject=null
RuntimeCoder={}
RuntimeDOM={}
RuntimeGUI={}
RuntimeGraphics={}
RuntimePhysics={}
RuntimeStatistics={}
CUSTOM_STATIC_OPTIONS_END
CUSTOM_EVENT_LISTENERS_START
@ -63,6 +79,7 @@ const System = require('./r3-system.js');
CUSTOM_STATIC_EVENT_LISTENERS_START
Event.GET_RUNTIME
Event.PROJECT_CREATED
CUSTOM_STATIC_EVENT_LISTENERS_END
CUSTOM_METHODS_START
@ -122,6 +139,11 @@ class SystemRuntime extends System {
SystemRuntime.OnGetRuntime
);
SystemRuntime.Subscriptions['PROJECT_CREATED'] = Event.Subscribe(
Event.PROJECT_CREATED,
SystemRuntime.OnProjectCreated
);
//GENERATED_STATIC_EVENT_LISTENERS_START_END
//CUSTOM_BEFORE_STATIC_SYSTEM_START_START
@ -151,6 +173,9 @@ class SystemRuntime extends System {
SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
delete SystemRuntime.Subscriptions['GET_RUNTIME'];
SystemRuntime.Subscriptions['PROJECT_CREATED'].remove();
delete SystemRuntime.Subscriptions['PROJECT_CREATED'];
//GENERATED_STATIC_EVENT_LISTENERS_STOP_END
//CUSTOM_BEFORE_STATIC_SYSTEM_STOP_START
@ -186,21 +211,50 @@ class SystemRuntime extends System {
//CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_START
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
}
/**
* 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
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_STATIC_OPTIONS_INIT_START
SystemRuntime.Started = false;
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_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
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_END
}
//GENERATED_STATIC_OPTIONS_INIT_START

View File

@ -26,6 +26,26 @@ const Utils = require('.././r3-utils');
class System {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
if (typeof options === 'undefined') {
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
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_METHODS_START
@ -49,6 +69,12 @@ class System {
//GENERATED_STATIC_OPTIONS_INIT_END
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
System.SYSTEM_DOM = 0x0;
System.SYSTEM_INPUT = 0x1;
System.SYSTEM_LINKING = 0x2;
System.SYSTEM_RUNTIME = 0x3;
System.SYSTEM_SOCKET = 0x4;
System.MAX_SYSTEM = 0x5;
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -43,10 +43,19 @@ class CLASS_NAME extends EXTEND_CLASS {
//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

View File

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

View File

@ -1 +1 @@
2.0.522
2.0.533