starting to introduce static options
parent
8d6a1d9d36
commit
26777f0446
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.128';
|
static version = '2.0.132';
|
||||||
static compileDate = '2021 Sep 06 - 07:58:41 am';
|
static compileDate = '2021 Sep 06 - 08:50:36 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
class System {
|
class System {
|
||||||
|
@ -63,14 +63,12 @@ class System {
|
||||||
*/
|
*/
|
||||||
static Stop() {
|
static Stop() {
|
||||||
|
|
||||||
|
console.log('Stopped System');
|
||||||
|
|
||||||
if ('System' !== 'System') {
|
if ('System' !== 'System') {
|
||||||
System.Stop();
|
System.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
System.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped System');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1640,19 +1638,19 @@ class Utils {
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- start(options = {})
|
- start()
|
||||||
Just calls System.Start(options)
|
Overrides for R3.System.start()
|
||||||
|
|
||||||
- stop(options = {})
|
- stop()
|
||||||
Just calls System.Stop(options)
|
Overrides for R3.System.stop()
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
- Start(options = {})
|
- Start()
|
||||||
Starts the system by registering subscriptions to events
|
Overrides for R3.System.Start()
|
||||||
|
|
||||||
- Stop(options = {})
|
- Stop()
|
||||||
Stops the system by removing these subscriptions to events
|
Overrides for R3.System.Stop()
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
@ -1676,10 +1674,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start()
|
* start()
|
||||||
* - Just calls System.Start(options)
|
* - Just calls System.Start()
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
start(options = {}) {
|
start() {
|
||||||
|
|
||||||
SystemInput.Start();
|
SystemInput.Start();
|
||||||
this.started = true;
|
this.started = true;
|
||||||
|
@ -1688,10 +1685,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop()
|
* stop()
|
||||||
* - Just calls System.Stop(options)
|
* - Just calls System.Stop()
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
stop(options = {}) {
|
stop() {
|
||||||
|
|
||||||
SystemInput.Stop();
|
SystemInput.Stop();
|
||||||
this.started = false;
|
this.started = false;
|
||||||
|
@ -1700,10 +1696,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start()
|
* Start()
|
||||||
* - Starts the system by registering subscriptions to events
|
* - Starts the system by registering subscriptions to events
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
static Start(options = {}) {
|
static Start() {
|
||||||
|
|
||||||
if ('System' !== 'SystemInput') {
|
if ('System' !== 'SystemInput') {
|
||||||
System.Start();
|
System.Start();
|
||||||
|
@ -1778,119 +1773,116 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stop()
|
* Stop()
|
||||||
* - Stops the system by removing these subscriptions to events
|
* - Stops the system by removing these subscriptions to events
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
static Stop(options = {}) {
|
static Stop() {
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log('Stopped SystemInput');
|
||||||
|
|
||||||
if ('System' !== 'SystemInput') {
|
if ('System' !== 'SystemInput') {
|
||||||
System.Stop();
|
System.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemInput.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemInput');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2123,34 +2115,32 @@ class SystemLinking extends System {
|
||||||
*/
|
*/
|
||||||
static Stop(options) {
|
static Stop(options) {
|
||||||
|
|
||||||
|
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
||||||
|
(result, subscription) => {
|
||||||
|
if (subscription.remove() !== true) {
|
||||||
|
result.push(subscription);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log('Stopped SystemLinking');
|
||||||
|
|
||||||
if ('System' !== 'SystemLinking') {
|
if ('System' !== 'SystemLinking') {
|
||||||
System.Stop();
|
System.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
|
||||||
(result, subscription) => {
|
|
||||||
if (subscription.remove() !== true) {
|
|
||||||
result.push(subscription);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
},
|
|
||||||
[]
|
|
||||||
);
|
|
||||||
|
|
||||||
SystemLinking.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemLinking');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2294,14 +2284,12 @@ class SystemSocket extends System {
|
||||||
*/
|
*/
|
||||||
static Stop(options) {
|
static Stop(options) {
|
||||||
|
|
||||||
|
console.log('Stopped SystemSocket');
|
||||||
|
|
||||||
if ('System' !== 'SystemSocket') {
|
if ('System' !== 'SystemSocket') {
|
||||||
System.Stop();
|
System.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemSocket.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemSocket');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2421,14 +2409,12 @@ class SystemTest extends System {
|
||||||
*/
|
*/
|
||||||
static Stop(options) {
|
static Stop(options) {
|
||||||
|
|
||||||
|
console.log('Stopped SystemTest');
|
||||||
|
|
||||||
if ('System' !== 'SystemTest') {
|
if ('System' !== 'SystemTest') {
|
||||||
System.Stop();
|
System.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
SystemTest.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemTest');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version" : "2.0.128",
|
"version" : "2.0.132",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.128';
|
static version = '2.0.132';
|
||||||
static compileDate = '2021 Sep 06 - 07:58:41 am';
|
static compileDate = '2021 Sep 06 - 08:50:36 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_IMPORTS_START
|
//GENERATED_IMPORTS_START
|
||||||
|
|
|
@ -37,25 +37,28 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- start(options = {})
|
- start()
|
||||||
Just calls System.Start(options)
|
Overrides for R3.System.start()
|
||||||
|
|
||||||
- stop(options = {})
|
- stop()
|
||||||
Just calls System.Stop(options)
|
Overrides for R3.System.stop()
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
- Start(options = {})
|
- Start()
|
||||||
Starts the system by registering subscriptions to events
|
Overrides for R3.System.Start()
|
||||||
|
|
||||||
- Stop(options = {})
|
- Stop()
|
||||||
Stops the system by removing these subscriptions to events
|
Overrides for R3.System.Stop()
|
||||||
|
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
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_START
|
||||||
Event.TOUCH_START
|
Event.TOUCH_START
|
||||||
Event.TOUCH_END
|
Event.TOUCH_END
|
||||||
|
@ -70,13 +73,13 @@ const System = require('./r3-system.js');
|
||||||
CUSTOM_EVENT_LISTENERS_END
|
CUSTOM_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
start(options = {}) - Just calls System.Start(options)
|
start() - Just calls System.Start()
|
||||||
stop(options = {}) - Just calls System.Stop(options)
|
stop() - Just calls System.Stop()
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
Start(options = {}) - Starts the system by registering subscriptions to events
|
Start() - Starts the system by registering subscriptions to events
|
||||||
Stop(options = {}) - Stops the system by removing these subscriptions to events
|
Stop() - Stops the system by removing these subscriptions to events
|
||||||
CUSTOM_STATIC_METHODS_END
|
CUSTOM_STATIC_METHODS_END
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -116,10 +119,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start()
|
* start()
|
||||||
* - Just calls System.Start(options)
|
* - Just calls System.Start()
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
start(options = {}) {
|
start() {
|
||||||
|
|
||||||
//GENERATED_START_METHOD_START
|
//GENERATED_START_METHOD_START
|
||||||
SystemInput.Start();
|
SystemInput.Start();
|
||||||
|
@ -133,10 +135,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop()
|
* stop()
|
||||||
* - Just calls System.Stop(options)
|
* - Just calls System.Stop()
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
stop(options = {}) {
|
stop() {
|
||||||
|
|
||||||
//GENERATED_STOP_METHOD_START
|
//GENERATED_STOP_METHOD_START
|
||||||
SystemInput.Stop();
|
SystemInput.Stop();
|
||||||
|
@ -153,10 +154,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start()
|
* Start()
|
||||||
* - Starts the system by registering subscriptions to events
|
* - Starts the system by registering subscriptions to events
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
static Start(options = {}) {
|
static Start() {
|
||||||
|
|
||||||
//GENERATED_STATIC_START_METHOD_START
|
//GENERATED_STATIC_START_METHOD_START
|
||||||
|
|
||||||
|
@ -240,17 +240,12 @@ class SystemInput extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stop()
|
* Stop()
|
||||||
* - Stops the system by removing these subscriptions to events
|
* - Stops the system by removing these subscriptions to events
|
||||||
* @param options = {}
|
|
||||||
*/
|
*/
|
||||||
static Stop(options = {}) {
|
static Stop() {
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
if ('System' !== 'SystemInput') {
|
|
||||||
System.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
|
|
||||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||||
|
@ -354,10 +349,12 @@ class SystemInput extends System {
|
||||||
);
|
);
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
SystemInput.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemInput');
|
console.log('Stopped SystemInput');
|
||||||
|
|
||||||
|
if ('System' !== 'SystemInput') {
|
||||||
|
System.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_END
|
//GENERATED_STATIC_STOP_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_STOP_METHOD_START
|
//CUSTOM_STATIC_STOP_METHOD_START
|
||||||
|
@ -534,6 +531,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,9 @@ const System = require('./r3-system.js');
|
||||||
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_START
|
||||||
Event.OBJECT_CREATED
|
Event.OBJECT_CREATED
|
||||||
Event.INSTANCE_CREATED
|
Event.INSTANCE_CREATED
|
||||||
|
@ -191,10 +194,6 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
if ('System' !== 'SystemLinking') {
|
|
||||||
System.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
|
|
||||||
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
||||||
|
@ -218,10 +217,12 @@ class SystemLinking extends System {
|
||||||
);
|
);
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
SystemLinking.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemLinking');
|
console.log('Stopped SystemLinking');
|
||||||
|
|
||||||
|
if ('System' !== 'SystemLinking') {
|
||||||
|
System.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_END
|
//GENERATED_STATIC_STOP_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_STOP_METHOD_START
|
//CUSTOM_STATIC_STOP_METHOD_START
|
||||||
|
@ -270,6 +271,9 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,9 @@ const System = require('./r3-system.js');
|
||||||
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_START
|
||||||
CUSTOM_EVENT_LISTENERS_END
|
CUSTOM_EVENT_LISTENERS_END
|
||||||
|
|
||||||
|
@ -179,17 +182,15 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
if ('System' !== 'SystemSocket') {
|
|
||||||
System.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
SystemSocket.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemSocket');
|
console.log('Stopped SystemSocket');
|
||||||
|
|
||||||
|
if ('System' !== 'SystemSocket') {
|
||||||
|
System.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_END
|
//GENERATED_STATIC_STOP_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_STOP_METHOD_START
|
//CUSTOM_STATIC_STOP_METHOD_START
|
||||||
|
@ -206,6 +207,9 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,9 @@ const System = require('./r3-system.js');
|
||||||
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_START
|
||||||
CUSTOM_EVENT_LISTENERS_END
|
CUSTOM_EVENT_LISTENERS_END
|
||||||
|
|
||||||
|
@ -177,17 +180,15 @@ class SystemTest extends System {
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
if ('System' !== 'SystemTest') {
|
|
||||||
System.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
SystemTest.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped SystemTest');
|
console.log('Stopped SystemTest');
|
||||||
|
|
||||||
|
if ('System' !== 'SystemTest') {
|
||||||
|
System.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_END
|
//GENERATED_STATIC_STOP_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_STOP_METHOD_START
|
//CUSTOM_STATIC_STOP_METHOD_START
|
||||||
|
@ -204,6 +205,9 @@ class SystemTest extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,9 @@ const Utils = require('.././r3-utils');
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
start() - Just calls System.Start()
|
start() - Just calls System.Start()
|
||||||
stop() - Just calls System.Stop()
|
stop() - Just calls System.Stop()
|
||||||
|
@ -118,17 +121,15 @@ class System {
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_START
|
//GENERATED_STATIC_STOP_METHOD_START
|
||||||
|
|
||||||
if ('System' !== 'System') {
|
|
||||||
System.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
System.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped System');
|
console.log('Stopped System');
|
||||||
|
|
||||||
|
if ('System' !== 'System') {
|
||||||
|
System.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_STOP_METHOD_END
|
//GENERATED_STATIC_STOP_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_STOP_METHOD_START
|
//CUSTOM_STATIC_STOP_METHOD_START
|
||||||
|
@ -142,6 +143,9 @@ class System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
System.Started = false;
|
System.Started = false;
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
|
|
||||||
if ('PARENT_SYSTEM' !== 'CLASS_NAME') {
|
|
||||||
PARENT_SYSTEM.Stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
CLASS_NAME.Started = false;
|
|
||||||
|
|
||||||
console.log('Stopped CLASS_NAME');
|
console.log('Stopped CLASS_NAME');
|
||||||
|
|
||||||
|
if ('PARENT_SYSTEM' !== 'CLASS_NAME') {
|
||||||
|
PARENT_SYSTEM.Stop();
|
||||||
|
}
|
||||||
|
|
|
@ -6,6 +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_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
start() - Just calls System.Start()
|
start() - Just calls System.Start()
|
||||||
stop() - Just calls System.Stop()
|
stop() - Just calls System.Stop()
|
||||||
|
@ -34,6 +37,9 @@ class CLASS_NAME {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
CLASS_NAME.Started = false;
|
CLASS_NAME.Started = false;
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
|
@ -11,6 +11,9 @@ const EXTEND_CLASS = require('./EXTEND_CLASS_FILE_NAME');
|
||||||
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_START
|
||||||
CUSTOM_EVENT_LISTENERS_END
|
CUSTOM_EVENT_LISTENERS_END
|
||||||
|
|
||||||
|
@ -45,6 +48,9 @@ class CLASS_NAME extends EXTEND_CLASS {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ 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
|
||||||
GENERATED_STATIC_ON_TOUCH_START_METHOD
|
GENERATED_STATIC_ON_TOUCH_START_METHOD
|
||||||
|
GENERATED_STATIC_OPTIONS_INIT
|
||||||
GENERATED_STATIC_START_METHOD
|
GENERATED_STATIC_START_METHOD
|
||||||
GENERATED_STATIC_STOP_METHOD
|
GENERATED_STATIC_STOP_METHOD
|
||||||
GENERATED_STATIC_SUBSCRIBE_METHOD
|
GENERATED_STATIC_SUBSCRIBE_METHOD
|
||||||
|
@ -80,6 +81,7 @@ 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
|
||||||
CUSTOM_STATIC_ON_TOUCH_START_METHOD
|
CUSTOM_STATIC_ON_TOUCH_START_METHOD
|
||||||
|
CUSTOM_STATIC_OPTIONS
|
||||||
CUSTOM_STATIC_START_METHOD
|
CUSTOM_STATIC_START_METHOD
|
||||||
CUSTOM_STATIC_STOP_METHOD
|
CUSTOM_STATIC_STOP_METHOD
|
||||||
CUSTOM_STATIC_SUBSCRIBE_METHOD
|
CUSTOM_STATIC_SUBSCRIBE_METHOD
|
||||||
|
|
Loading…
Reference in New Issue