runtimes get names
parent
5e1141a70a
commit
7ee2b9f5ea
|
@ -17,12 +17,12 @@ class R3 {
|
||||||
/**
|
/**
|
||||||
* static Version - Current R3 version
|
* static Version - Current R3 version
|
||||||
*/
|
*/
|
||||||
R3.Version = '3.0.203';
|
R3.Version = '3.0.207';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* static CompileDate - Current compile date of R3
|
* static CompileDate - Current compile date of R3
|
||||||
*/
|
*/
|
||||||
R3.CompileDate = '2021 Oct 01 - 12:43:55 pm';
|
R3.CompileDate = '2021 Oct 02 - 06:27:56 am';
|
||||||
|
|
||||||
class System {
|
class System {
|
||||||
|
|
||||||
|
@ -1001,6 +1001,11 @@ class SystemRuntime extends System {
|
||||||
*/
|
*/
|
||||||
static Start(options) {
|
static Start(options) {
|
||||||
|
|
||||||
|
SystemRuntime.Subscriptions['RUNTIME_CREATED'] = Event.Subscribe(
|
||||||
|
Event.RUNTIME_CREATED,
|
||||||
|
SystemRuntime.OnRuntimeCreated
|
||||||
|
);
|
||||||
|
|
||||||
SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe(
|
SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe(
|
||||||
Event.GET_RUNTIME,
|
Event.GET_RUNTIME,
|
||||||
SystemRuntime.OnGetRuntime
|
SystemRuntime.OnGetRuntime
|
||||||
|
@ -1029,6 +1034,9 @@ class SystemRuntime extends System {
|
||||||
*/
|
*/
|
||||||
static Stop(options) {
|
static Stop(options) {
|
||||||
|
|
||||||
|
SystemRuntime.Subscriptions['RUNTIME_CREATED'].remove();
|
||||||
|
delete SystemRuntime.Subscriptions['RUNTIME_CREATED'];
|
||||||
|
|
||||||
SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
|
SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
|
||||||
delete SystemRuntime.Subscriptions['GET_RUNTIME'];
|
delete SystemRuntime.Subscriptions['GET_RUNTIME'];
|
||||||
|
|
||||||
|
@ -1044,6 +1052,18 @@ class SystemRuntime extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OnRuntimeCreated()
|
||||||
|
* - Listens to events of type Event.RUNTIME_CREATED and executes this function.
|
||||||
|
* @param object (The event data passed as argument - typically an R3Object)
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
static OnRuntimeCreated(object) {
|
||||||
|
|
||||||
|
console.log('Runtime created : ' + object.name);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OnGetRuntime()
|
* OnGetRuntime()
|
||||||
* - Listens to events of type Event.GET_RUNTIME and executes this function.
|
* - Listens to events of type Event.GET_RUNTIME and executes this function.
|
||||||
|
@ -1425,7 +1445,16 @@ class RuntimeCoder extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1524,7 +1553,16 @@ class RuntimeDOM extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1631,7 +1669,16 @@ class RuntimeGUI extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1730,7 +1777,16 @@ class RuntimeGraphics extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1829,7 +1885,16 @@ class RuntimeImage extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2019,7 +2084,16 @@ class RuntimePhysics extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2118,7 +2192,16 @@ class RuntimeSocket extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2133,7 +2216,16 @@ class RuntimeStatistics extends Runtime {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2479,20 +2571,21 @@ Event.OBJECT_PROPERTY_UPDATED = 0x1e;
|
||||||
Event.PAUSE = 0x1f;
|
Event.PAUSE = 0x1f;
|
||||||
Event.PROJECT_INITIALIZED = 0x20;
|
Event.PROJECT_INITIALIZED = 0x20;
|
||||||
Event.RESTART = 0x21;
|
Event.RESTART = 0x21;
|
||||||
Event.SLIDER_ENTITY_INITIALIZED = 0x22;
|
Event.RUNTIME_CREATED = 0x22;
|
||||||
Event.START = 0x23;
|
Event.SLIDER_ENTITY_INITIALIZED = 0x23;
|
||||||
Event.TOUCH_CANCEL = 0x24;
|
Event.START = 0x24;
|
||||||
Event.TOUCH_COMPONENT_INITIALIZED = 0x25;
|
Event.TOUCH_CANCEL = 0x25;
|
||||||
Event.TOUCH_END = 0x26;
|
Event.TOUCH_COMPONENT_INITIALIZED = 0x26;
|
||||||
Event.TOUCH_MOVE = 0x27;
|
Event.TOUCH_END = 0x27;
|
||||||
Event.TOUCH_START = 0x28;
|
Event.TOUCH_MOVE = 0x28;
|
||||||
Event.UPDATE_FROM_INSTANCE_AFTER = 0x29;
|
Event.TOUCH_START = 0x29;
|
||||||
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x2a;
|
Event.UPDATE_FROM_INSTANCE_AFTER = 0x2a;
|
||||||
Event.UPDATE_INSTANCE_AFTER = 0x2b;
|
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x2b;
|
||||||
Event.UPDATE_INSTANCE_BEFORE = 0x2c;
|
Event.UPDATE_INSTANCE_AFTER = 0x2c;
|
||||||
Event.UPDATE_INSTANCE_PROPERTY = 0x2d;
|
Event.UPDATE_INSTANCE_BEFORE = 0x2d;
|
||||||
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x2e;
|
Event.UPDATE_INSTANCE_PROPERTY = 0x2e;
|
||||||
Event.MAX_EVENTS = 0x2f;
|
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x2f;
|
||||||
|
Event.MAX_EVENTS = 0x30;
|
||||||
|
|
||||||
Event.GetEventName = function(eventId) {
|
Event.GetEventName = function(eventId) {
|
||||||
|
|
||||||
|
@ -2530,19 +2623,20 @@ Event.GetEventName = function(eventId) {
|
||||||
case 0x1f : return 'pause';
|
case 0x1f : return 'pause';
|
||||||
case 0x20 : return 'project_initialized';
|
case 0x20 : return 'project_initialized';
|
||||||
case 0x21 : return 'restart';
|
case 0x21 : return 'restart';
|
||||||
case 0x22 : return 'slider_entity_initialized';
|
case 0x22 : return 'runtime_created';
|
||||||
case 0x23 : return 'start';
|
case 0x23 : return 'slider_entity_initialized';
|
||||||
case 0x24 : return 'touch_cancel';
|
case 0x24 : return 'start';
|
||||||
case 0x25 : return 'touch_component_initialized';
|
case 0x25 : return 'touch_cancel';
|
||||||
case 0x26 : return 'touch_end';
|
case 0x26 : return 'touch_component_initialized';
|
||||||
case 0x27 : return 'touch_move';
|
case 0x27 : return 'touch_end';
|
||||||
case 0x28 : return 'touch_start';
|
case 0x28 : return 'touch_move';
|
||||||
case 0x29 : return 'update_from_instance_after';
|
case 0x29 : return 'touch_start';
|
||||||
case 0x2a : return 'update_from_instance_before';
|
case 0x2a : return 'update_from_instance_after';
|
||||||
case 0x2b : return 'update_instance_after';
|
case 0x2b : return 'update_from_instance_before';
|
||||||
case 0x2c : return 'update_instance_before';
|
case 0x2c : return 'update_instance_after';
|
||||||
case 0x2d : return 'update_instance_property';
|
case 0x2d : return 'update_instance_before';
|
||||||
case 0x2e : return 'update_property_from_instance';
|
case 0x2e : return 'update_instance_property';
|
||||||
|
case 0x2f : return 'update_property_from_instance';
|
||||||
default :
|
default :
|
||||||
throw new Error('Event type not defined : ' + eventId);
|
throw new Error('Event type not defined : ' + eventId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version": "3.0.203",
|
"version": "3.0.207",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -383,20 +383,21 @@ Event.OBJECT_PROPERTY_UPDATED = 0x1e;
|
||||||
Event.PAUSE = 0x1f;
|
Event.PAUSE = 0x1f;
|
||||||
Event.PROJECT_INITIALIZED = 0x20;
|
Event.PROJECT_INITIALIZED = 0x20;
|
||||||
Event.RESTART = 0x21;
|
Event.RESTART = 0x21;
|
||||||
Event.SLIDER_ENTITY_INITIALIZED = 0x22;
|
Event.RUNTIME_CREATED = 0x22;
|
||||||
Event.START = 0x23;
|
Event.SLIDER_ENTITY_INITIALIZED = 0x23;
|
||||||
Event.TOUCH_CANCEL = 0x24;
|
Event.START = 0x24;
|
||||||
Event.TOUCH_COMPONENT_INITIALIZED = 0x25;
|
Event.TOUCH_CANCEL = 0x25;
|
||||||
Event.TOUCH_END = 0x26;
|
Event.TOUCH_COMPONENT_INITIALIZED = 0x26;
|
||||||
Event.TOUCH_MOVE = 0x27;
|
Event.TOUCH_END = 0x27;
|
||||||
Event.TOUCH_START = 0x28;
|
Event.TOUCH_MOVE = 0x28;
|
||||||
Event.UPDATE_FROM_INSTANCE_AFTER = 0x29;
|
Event.TOUCH_START = 0x29;
|
||||||
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x2a;
|
Event.UPDATE_FROM_INSTANCE_AFTER = 0x2a;
|
||||||
Event.UPDATE_INSTANCE_AFTER = 0x2b;
|
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x2b;
|
||||||
Event.UPDATE_INSTANCE_BEFORE = 0x2c;
|
Event.UPDATE_INSTANCE_AFTER = 0x2c;
|
||||||
Event.UPDATE_INSTANCE_PROPERTY = 0x2d;
|
Event.UPDATE_INSTANCE_BEFORE = 0x2d;
|
||||||
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x2e;
|
Event.UPDATE_INSTANCE_PROPERTY = 0x2e;
|
||||||
Event.MAX_EVENTS = 0x2f;
|
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x2f;
|
||||||
|
Event.MAX_EVENTS = 0x30;
|
||||||
|
|
||||||
Event.GetEventName = function(eventId) {
|
Event.GetEventName = function(eventId) {
|
||||||
|
|
||||||
|
@ -434,19 +435,20 @@ Event.GetEventName = function(eventId) {
|
||||||
case 0x1f : return 'pause';
|
case 0x1f : return 'pause';
|
||||||
case 0x20 : return 'project_initialized';
|
case 0x20 : return 'project_initialized';
|
||||||
case 0x21 : return 'restart';
|
case 0x21 : return 'restart';
|
||||||
case 0x22 : return 'slider_entity_initialized';
|
case 0x22 : return 'runtime_created';
|
||||||
case 0x23 : return 'start';
|
case 0x23 : return 'slider_entity_initialized';
|
||||||
case 0x24 : return 'touch_cancel';
|
case 0x24 : return 'start';
|
||||||
case 0x25 : return 'touch_component_initialized';
|
case 0x25 : return 'touch_cancel';
|
||||||
case 0x26 : return 'touch_end';
|
case 0x26 : return 'touch_component_initialized';
|
||||||
case 0x27 : return 'touch_move';
|
case 0x27 : return 'touch_end';
|
||||||
case 0x28 : return 'touch_start';
|
case 0x28 : return 'touch_move';
|
||||||
case 0x29 : return 'update_from_instance_after';
|
case 0x29 : return 'touch_start';
|
||||||
case 0x2a : return 'update_from_instance_before';
|
case 0x2a : return 'update_from_instance_after';
|
||||||
case 0x2b : return 'update_instance_after';
|
case 0x2b : return 'update_from_instance_before';
|
||||||
case 0x2c : return 'update_instance_before';
|
case 0x2c : return 'update_instance_after';
|
||||||
case 0x2d : return 'update_instance_property';
|
case 0x2d : return 'update_instance_before';
|
||||||
case 0x2e : return 'update_property_from_instance';
|
case 0x2e : return 'update_instance_property';
|
||||||
|
case 0x2f : return 'update_property_from_instance';
|
||||||
default :
|
default :
|
||||||
throw new Error('Event type not defined : ' + eventId);
|
throw new Error('Event type not defined : ' + eventId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeCoder extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeDOM extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeGUI extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeGraphics extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeImage extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimePhysics extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeSocket extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
@ -42,12 +48,20 @@ class RuntimeStatistics extends Runtime {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
/**
|
||||||
|
* name - Name of the runtime
|
||||||
|
*/
|
||||||
|
if (typeof options.name === 'undefined') {
|
||||||
|
options.name = this.constructor.name;
|
||||||
|
}
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ const System = require('./r3-system.js');
|
||||||
CUSTOM_EVENT_LISTENERS_END
|
CUSTOM_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_START
|
CUSTOM_STATIC_EVENT_LISTENERS_START
|
||||||
|
Event.RUNTIME_CREATED
|
||||||
Event.GET_RUNTIME
|
Event.GET_RUNTIME
|
||||||
Event.PROJECT_INITIALIZED
|
Event.PROJECT_INITIALIZED
|
||||||
Event.GET_API_URL
|
Event.GET_API_URL
|
||||||
|
@ -149,6 +150,11 @@ class SystemRuntime extends System {
|
||||||
//GENERATED_STATIC_START_METHOD_START
|
//GENERATED_STATIC_START_METHOD_START
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENERS_START_START
|
//GENERATED_STATIC_EVENT_LISTENERS_START_START
|
||||||
|
SystemRuntime.Subscriptions['RUNTIME_CREATED'] = Event.Subscribe(
|
||||||
|
Event.RUNTIME_CREATED,
|
||||||
|
SystemRuntime.OnRuntimeCreated
|
||||||
|
);
|
||||||
|
|
||||||
SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe(
|
SystemRuntime.Subscriptions['GET_RUNTIME'] = Event.Subscribe(
|
||||||
Event.GET_RUNTIME,
|
Event.GET_RUNTIME,
|
||||||
SystemRuntime.OnGetRuntime
|
SystemRuntime.OnGetRuntime
|
||||||
|
@ -190,6 +196,9 @@ class SystemRuntime extends System {
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENERS_STOP_START
|
//GENERATED_STATIC_EVENT_LISTENERS_STOP_START
|
||||||
|
SystemRuntime.Subscriptions['RUNTIME_CREATED'].remove();
|
||||||
|
delete SystemRuntime.Subscriptions['RUNTIME_CREATED'];
|
||||||
|
|
||||||
SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
|
SystemRuntime.Subscriptions['GET_RUNTIME'].remove();
|
||||||
delete SystemRuntime.Subscriptions['GET_RUNTIME'];
|
delete SystemRuntime.Subscriptions['GET_RUNTIME'];
|
||||||
|
|
||||||
|
@ -224,6 +233,23 @@ class SystemRuntime extends System {
|
||||||
|
|
||||||
//GENERATED_STATIC_EVENT_LISTENER_METHODS_START
|
//GENERATED_STATIC_EVENT_LISTENER_METHODS_START
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OnRuntimeCreated()
|
||||||
|
* - Listens to events of type Event.RUNTIME_CREATED and executes this function.
|
||||||
|
* @param object (The event data passed as argument - typically an R3Object)
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
static OnRuntimeCreated(object) {
|
||||||
|
|
||||||
|
//GENERATED_STATIC_ON_RUNTIME_CREATED_METHOD_START
|
||||||
|
//GENERATED_STATIC_ON_RUNTIME_CREATED_METHOD_END
|
||||||
|
|
||||||
|
//CUSTOM_STATIC_ON_RUNTIME_CREATED_METHOD_START
|
||||||
|
console.log('Runtime created : ' + object.name);
|
||||||
|
//CUSTOM_STATIC_ON_RUNTIME_CREATED_METHOD_END
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OnGetRuntime()
|
* OnGetRuntime()
|
||||||
* - Listens to events of type Event.GET_RUNTIME and executes this function.
|
* - Listens to events of type Event.GET_RUNTIME and executes this function.
|
||||||
|
|
|
@ -90,12 +90,12 @@ class R3 {
|
||||||
/**
|
/**
|
||||||
* static Version - Current R3 version
|
* static Version - Current R3 version
|
||||||
*/
|
*/
|
||||||
R3.Version = '3.0.203';
|
R3.Version = '3.0.207';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* static CompileDate - Current compile date of R3
|
* static CompileDate - Current compile date of R3
|
||||||
*/
|
*/
|
||||||
R3.CompileDate = '2021 Oct 01 - 12:43:55 pm';
|
R3.CompileDate = '2021 Oct 02 - 06:27:56 am';
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
//GENERATED_IMPORTS_START
|
||||||
|
//GENERATED_IMPORTS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPORTS_START
|
||||||
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('INCLUDE_PATH/r3-event');
|
const Event = require('INCLUDE_PATH/r3-event');
|
||||||
const Utils = require('INCLUDE_PATH/r3-utils');
|
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
TEMPLATE_OPTIONS_START
|
||||||
|
name=this.constructor.name - Name of the runtime
|
||||||
TEMPLATE_OPTIONS_END
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
|
|
@ -13,4 +13,6 @@
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
Event.Emit(Event.RUNTIME_CREATED, this);
|
||||||
}
|
}
|
|
@ -68,6 +68,7 @@ GENERATED_STATIC_ON_OBJECT_CREATED_METHOD
|
||||||
GENERATED_STATIC_ON_OBJECT_PROPERTY_UPDATED_METHOD
|
GENERATED_STATIC_ON_OBJECT_PROPERTY_UPDATED_METHOD
|
||||||
GENERATED_STATIC_ON_OBJECT_PROPERTY_UPDATE_METHOD
|
GENERATED_STATIC_ON_OBJECT_PROPERTY_UPDATE_METHOD
|
||||||
GENERATED_STATIC_ON_PROJECT_INITIALIZED_METHOD
|
GENERATED_STATIC_ON_PROJECT_INITIALIZED_METHOD
|
||||||
|
GENERATED_STATIC_ON_RUNTIME_CREATED_METHOD
|
||||||
GENERATED_STATIC_ON_SLIDER_ENTITY_INITIALIZED_METHOD
|
GENERATED_STATIC_ON_SLIDER_ENTITY_INITIALIZED_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
|
||||||
|
@ -150,6 +151,7 @@ CUSTOM_STATIC_ON_OBJECT_CREATED_METHOD
|
||||||
CUSTOM_STATIC_ON_OBJECT_PROPERTY_UPDATED_METHOD
|
CUSTOM_STATIC_ON_OBJECT_PROPERTY_UPDATED_METHOD
|
||||||
CUSTOM_STATIC_ON_OBJECT_PROPERTY_UPDATE_METHOD
|
CUSTOM_STATIC_ON_OBJECT_PROPERTY_UPDATE_METHOD
|
||||||
CUSTOM_STATIC_ON_PROJECT_INITIALIZED_METHOD
|
CUSTOM_STATIC_ON_PROJECT_INITIALIZED_METHOD
|
||||||
|
CUSTOM_STATIC_ON_RUNTIME_CREATED_METHOD
|
||||||
CUSTOM_STATIC_ON_SLIDER_ENTITY_INITIALIZED_METHOD
|
CUSTOM_STATIC_ON_SLIDER_ENTITY_INITIALIZED_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
|
||||||
|
|
Loading…
Reference in New Issue