Compare commits
No commits in common. "3ad313b4914c313f21311ea92dd2c618273c554f" and "8d6a1d9d36b64ab7378d8026798ce2e986959017" have entirely different histories.
3ad313b491
...
8d6a1d9d36
|
@ -1,14 +1,8 @@
|
|||
class R3 {
|
||||
static version = '2.0.136';
|
||||
static compileDate = '2021 Sep 06 - 09:13:00 am';
|
||||
static version = '2.0.128';
|
||||
static compileDate = '2021 Sep 06 - 07:58:41 am';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Started=false
|
||||
|
||||
**/
|
||||
|
||||
class System {
|
||||
|
||||
constructor(options) {
|
||||
|
@ -19,10 +13,6 @@ class System {
|
|||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.started === 'undefined') {
|
||||
options.started = false;
|
||||
}
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
Event.Emit(Event.OBJECT_INITIALIZED, this);
|
||||
|
@ -73,12 +63,14 @@ class System {
|
|||
*/
|
||||
static Stop() {
|
||||
|
||||
console.log('Stopped System');
|
||||
|
||||
if ('System' !== 'System') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
System.Started = false;
|
||||
|
||||
console.log('Stopped System');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1622,7 +1614,7 @@ class Utils {
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -1648,19 +1640,19 @@ class Utils {
|
|||
|
||||
Methods:
|
||||
|
||||
- start()
|
||||
Overrides for R3.System.start()
|
||||
- start(options = {})
|
||||
Just calls System.Start(options)
|
||||
|
||||
- stop()
|
||||
Overrides for R3.System.stop()
|
||||
- stop(options = {})
|
||||
Just calls System.Stop(options)
|
||||
|
||||
Static Methods:
|
||||
|
||||
- Start()
|
||||
Overrides for R3.System.Start()
|
||||
- Start(options = {})
|
||||
Starts the system by registering subscriptions to events
|
||||
|
||||
- Stop()
|
||||
Overrides for R3.System.Stop()
|
||||
- Stop(options = {})
|
||||
Stops the system by removing these subscriptions to events
|
||||
|
||||
**/
|
||||
|
||||
|
@ -1684,9 +1676,10 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* start()
|
||||
* - Just calls System.Start()
|
||||
* - Just calls System.Start(options)
|
||||
* @param options = {}
|
||||
*/
|
||||
start() {
|
||||
start(options = {}) {
|
||||
|
||||
SystemInput.Start();
|
||||
this.started = true;
|
||||
|
@ -1695,9 +1688,10 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* stop()
|
||||
* - Just calls System.Stop()
|
||||
* - Just calls System.Stop(options)
|
||||
* @param options = {}
|
||||
*/
|
||||
stop() {
|
||||
stop(options = {}) {
|
||||
|
||||
SystemInput.Stop();
|
||||
this.started = false;
|
||||
|
@ -1706,9 +1700,10 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* Start()
|
||||
* - Starts the system by registering subscriptions to events
|
||||
* - Starts the system by registering subscriptions to events
|
||||
* @param options = {}
|
||||
*/
|
||||
static Start() {
|
||||
static Start(options = {}) {
|
||||
|
||||
if ('System' !== 'SystemInput') {
|
||||
System.Start();
|
||||
|
@ -1783,116 +1778,119 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* Stop()
|
||||
* - Stops the system by removing these subscriptions to events
|
||||
* - Stops the system by removing these subscriptions to events
|
||||
* @param 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');
|
||||
static Stop(options = {}) {
|
||||
|
||||
if ('System' !== 'SystemInput') {
|
||||
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');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2004,7 +2002,7 @@ class SystemInput extends System {
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -2125,32 +2123,34 @@ class SystemLinking extends System {
|
|||
*/
|
||||
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') {
|
||||
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');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2182,7 +2182,7 @@ class SystemLinking extends System {
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -2294,12 +2294,14 @@ class SystemSocket extends System {
|
|||
*/
|
||||
static Stop(options) {
|
||||
|
||||
console.log('Stopped SystemSocket');
|
||||
|
||||
if ('System' !== 'SystemSocket') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
SystemSocket.Started = false;
|
||||
|
||||
console.log('Stopped SystemSocket');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2311,7 +2313,7 @@ class SystemSocket extends System {
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -2419,12 +2421,14 @@ class SystemTest extends System {
|
|||
*/
|
||||
static Stop(options) {
|
||||
|
||||
console.log('Stopped SystemTest');
|
||||
|
||||
if ('System' !== 'SystemTest') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
SystemTest.Started = false;
|
||||
|
||||
console.log('Stopped SystemTest');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2496,7 +2500,7 @@ class R3Object extends Event {
|
|||
|
||||
this.emit(Event.OBJECT_CREATED, this);
|
||||
|
||||
if (typeof options.register === 'undefined') {
|
||||
if (typeof options.register === 'undefined')) {
|
||||
options.register = true;
|
||||
}
|
||||
|
||||
|
@ -2677,7 +2681,7 @@ class Component extends R3Object {
|
|||
|
||||
this.emit(Event.OBJECT_CREATED, this);
|
||||
|
||||
if (typeof options.runtime === 'undefined') {
|
||||
if (typeof options.runtime === 'undefined')) {
|
||||
options.runtime = R3.Runtime.DEFAULT;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "r3",
|
||||
"version" : "2.0.136",
|
||||
"version" : "2.0.128",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
|
35
r3.php
35
r3.php
|
@ -437,37 +437,6 @@ function generateInitOptions($file, $tokens)
|
|||
updateSection($file, 'GENERATED_OPTIONS_INIT' , $updates);
|
||||
}
|
||||
|
||||
function generateInitStaticOptions($file, $tokens)
|
||||
{
|
||||
$token = 'CUSTOM_STATIC_OPTIONS';
|
||||
$store = getTokenStore($token, $tokens);
|
||||
|
||||
if (sizeof($store) <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
echo "Will be building static options for $token\n";
|
||||
|
||||
$template = file_get_contents('src/templates/generated_custom_static_options_init.template');
|
||||
|
||||
$updates = '';
|
||||
|
||||
foreach ($store as $item) {
|
||||
$item = trim($item);
|
||||
$key_value = preg_split('/=/', $item);
|
||||
if ($key_value === false) {
|
||||
continue;
|
||||
}
|
||||
$key = $key_value[0];
|
||||
$value = $key_value[1];
|
||||
$updated = str_replace('KEY', $key, $template);
|
||||
$updated = str_replace('VALUE', $value, $updated);
|
||||
$updates .= $updated;
|
||||
}
|
||||
|
||||
updateSection($file, 'GENERATED_STATIC_OPTIONS_INIT' , $updates);
|
||||
}
|
||||
|
||||
function getTokenStore($tokenName, $tokens)
|
||||
{
|
||||
if (is_array($tokens) && array_key_exists($tokenName, $tokens)) {
|
||||
|
@ -1379,6 +1348,8 @@ $nodeList = [];
|
|||
/**
|
||||
* @throws ErrorException
|
||||
*/
|
||||
|
||||
|
||||
foreach ($files as $file) {
|
||||
|
||||
$saveFile = null;
|
||||
|
@ -1447,8 +1418,6 @@ foreach ($files as $file) {
|
|||
|
||||
generateInitOptions($file, $tokens);
|
||||
|
||||
generateInitStaticOptions($file, $tokens);
|
||||
|
||||
generateCreateInstanceOptions($file, $tokens);
|
||||
|
||||
generateUpdateInstanceOptions($file, $tokens);
|
||||
|
|
|
@ -120,7 +120,7 @@ class Component extends R3Object {
|
|||
this.emit(Event.OBJECT_CREATED, this);
|
||||
|
||||
//GENERATED_OPTIONS_INIT_START
|
||||
if (typeof options.runtime === 'undefined') {
|
||||
if (typeof options.runtime === 'undefined')) {
|
||||
options.runtime = R3.Runtime.DEFAULT;
|
||||
}
|
||||
//GENERATED_OPTIONS_INIT_END
|
||||
|
|
|
@ -91,7 +91,7 @@ class R3Object extends Event {
|
|||
this.emit(Event.OBJECT_CREATED, this);
|
||||
|
||||
//GENERATED_OPTIONS_INIT_START
|
||||
if (typeof options.register === 'undefined') {
|
||||
if (typeof options.register === 'undefined')) {
|
||||
options.register = true;
|
||||
}
|
||||
//GENERATED_OPTIONS_INIT_END
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.136';
|
||||
static compileDate = '2021 Sep 06 - 09:13:00 am';
|
||||
static version = '2.0.128';
|
||||
static compileDate = '2021 Sep 06 - 07:58:41 am';
|
||||
}
|
||||
|
||||
//GENERATED_IMPORTS_START
|
||||
|
|
|
@ -11,7 +11,7 @@ const System = require('./r3-system.js');
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -37,28 +37,25 @@ const System = require('./r3-system.js');
|
|||
|
||||
Methods:
|
||||
|
||||
- start()
|
||||
Overrides for R3.System.start()
|
||||
- start(options = {})
|
||||
Just calls System.Start(options)
|
||||
|
||||
- stop()
|
||||
Overrides for R3.System.stop()
|
||||
- stop(options = {})
|
||||
Just calls System.Stop(options)
|
||||
|
||||
Static Methods:
|
||||
|
||||
- Start()
|
||||
Overrides for R3.System.Start()
|
||||
- Start(options = {})
|
||||
Starts the system by registering subscriptions to events
|
||||
|
||||
- Stop()
|
||||
Overrides for R3.System.Stop()
|
||||
- Stop(options = {})
|
||||
Stops the system by removing these subscriptions to events
|
||||
|
||||
GENERATED_INHERITED_END
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_EVENT_LISTENERS_START
|
||||
Event.TOUCH_START
|
||||
Event.TOUCH_END
|
||||
|
@ -73,13 +70,13 @@ const System = require('./r3-system.js');
|
|||
CUSTOM_EVENT_LISTENERS_END
|
||||
|
||||
CUSTOM_METHODS_START
|
||||
start() - Just calls System.Start()
|
||||
stop() - Just calls System.Stop()
|
||||
start(options = {}) - Just calls System.Start(options)
|
||||
stop(options = {}) - Just calls System.Stop(options)
|
||||
CUSTOM_METHODS_END
|
||||
|
||||
CUSTOM_STATIC_METHODS_START
|
||||
Start() - Starts the system by registering subscriptions to events
|
||||
Stop() - Stops the system by removing these subscriptions to events
|
||||
Start(options = {}) - Starts the system by registering subscriptions to events
|
||||
Stop(options = {}) - Stops the system by removing these subscriptions to events
|
||||
CUSTOM_STATIC_METHODS_END
|
||||
|
||||
**/
|
||||
|
@ -119,9 +116,10 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* start()
|
||||
* - Just calls System.Start()
|
||||
* - Just calls System.Start(options)
|
||||
* @param options = {}
|
||||
*/
|
||||
start() {
|
||||
start(options = {}) {
|
||||
|
||||
//GENERATED_START_METHOD_START
|
||||
SystemInput.Start();
|
||||
|
@ -135,9 +133,10 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* stop()
|
||||
* - Just calls System.Stop()
|
||||
* - Just calls System.Stop(options)
|
||||
* @param options = {}
|
||||
*/
|
||||
stop() {
|
||||
stop(options = {}) {
|
||||
|
||||
//GENERATED_STOP_METHOD_START
|
||||
SystemInput.Stop();
|
||||
|
@ -154,9 +153,10 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* Start()
|
||||
* - Starts the system by registering subscriptions to events
|
||||
* - Starts the system by registering subscriptions to events
|
||||
* @param options = {}
|
||||
*/
|
||||
static Start() {
|
||||
static Start(options = {}) {
|
||||
|
||||
//GENERATED_STATIC_START_METHOD_START
|
||||
|
||||
|
@ -240,12 +240,17 @@ class SystemInput extends System {
|
|||
|
||||
/**
|
||||
* Stop()
|
||||
* - Stops the system by removing these subscriptions to events
|
||||
* - Stops the system by removing these subscriptions to events
|
||||
* @param options = {}
|
||||
*/
|
||||
static Stop() {
|
||||
static Stop(options = {}) {
|
||||
|
||||
//GENERATED_STATIC_STOP_METHOD_START
|
||||
|
||||
if ('System' !== 'SystemInput') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
|
||||
SystemInput.Subscriptions = SystemInput.Subscriptions.reduce(
|
||||
|
@ -349,11 +354,9 @@ class SystemInput extends System {
|
|||
);
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
console.log('Stopped SystemInput');
|
||||
SystemInput.Started = false;
|
||||
|
||||
if ('System' !== 'SystemInput') {
|
||||
System.Stop();
|
||||
}
|
||||
console.log('Stopped SystemInput');
|
||||
|
||||
//GENERATED_STATIC_STOP_METHOD_END
|
||||
|
||||
|
@ -531,9 +534,6 @@ 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_END
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ const System = require('./r3-system.js');
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -56,9 +56,6 @@ const System = require('./r3-system.js');
|
|||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_EVENT_LISTENERS_START
|
||||
Event.OBJECT_CREATED
|
||||
Event.INSTANCE_CREATED
|
||||
|
@ -194,6 +191,10 @@ class SystemLinking extends System {
|
|||
|
||||
//GENERATED_STATIC_STOP_METHOD_START
|
||||
|
||||
if ('System' !== 'SystemLinking') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
|
||||
SystemLinking.Subscriptions = SystemLinking.Subscriptions.reduce(
|
||||
|
@ -217,11 +218,9 @@ class SystemLinking extends System {
|
|||
);
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
console.log('Stopped SystemLinking');
|
||||
SystemLinking.Started = false;
|
||||
|
||||
if ('System' !== 'SystemLinking') {
|
||||
System.Stop();
|
||||
}
|
||||
console.log('Stopped SystemLinking');
|
||||
|
||||
//GENERATED_STATIC_STOP_METHOD_END
|
||||
|
||||
|
@ -271,9 +270,6 @@ 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_END
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ const System = require('./r3-system.js');
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -56,9 +56,6 @@ const System = require('./r3-system.js');
|
|||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_EVENT_LISTENERS_START
|
||||
CUSTOM_EVENT_LISTENERS_END
|
||||
|
||||
|
@ -182,15 +179,17 @@ class SystemSocket extends System {
|
|||
|
||||
//GENERATED_STATIC_STOP_METHOD_START
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
console.log('Stopped SystemSocket');
|
||||
|
||||
if ('System' !== 'SystemSocket') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
SystemSocket.Started = false;
|
||||
|
||||
console.log('Stopped SystemSocket');
|
||||
|
||||
//GENERATED_STATIC_STOP_METHOD_END
|
||||
|
||||
//CUSTOM_STATIC_STOP_METHOD_START
|
||||
|
@ -207,9 +206,6 @@ 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_END
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ const System = require('./r3-system.js');
|
|||
|
||||
Properties:
|
||||
|
||||
- started (Default value false)
|
||||
<no inherited properties>
|
||||
|
||||
Methods:
|
||||
|
||||
|
@ -56,9 +56,6 @@ const System = require('./r3-system.js');
|
|||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_EVENT_LISTENERS_START
|
||||
CUSTOM_EVENT_LISTENERS_END
|
||||
|
||||
|
@ -180,15 +177,17 @@ class SystemTest extends System {
|
|||
|
||||
//GENERATED_STATIC_STOP_METHOD_START
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
console.log('Stopped SystemTest');
|
||||
|
||||
if ('System' !== 'SystemTest') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
SystemTest.Started = false;
|
||||
|
||||
console.log('Stopped SystemTest');
|
||||
|
||||
//GENERATED_STATIC_STOP_METHOD_END
|
||||
|
||||
//CUSTOM_STATIC_STOP_METHOD_START
|
||||
|
@ -205,9 +204,6 @@ 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_END
|
||||
|
||||
|
|
|
@ -4,13 +4,8 @@ const Utils = require('.././r3-utils');
|
|||
/**
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
started=false
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
Started=false
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_METHODS_START
|
||||
start() - Just calls System.Start()
|
||||
stop() - Just calls System.Stop()
|
||||
|
@ -35,9 +30,6 @@ class System {
|
|||
}
|
||||
|
||||
//GENERATED_OPTIONS_INIT_START
|
||||
if (typeof options.started === 'undefined') {
|
||||
options.started = false;
|
||||
}
|
||||
//GENERATED_OPTIONS_INIT_END
|
||||
|
||||
//CUSTOM_OPTIONS_INIT_START
|
||||
|
@ -126,15 +118,17 @@ class System {
|
|||
|
||||
//GENERATED_STATIC_STOP_METHOD_START
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
console.log('Stopped System');
|
||||
|
||||
if ('System' !== 'System') {
|
||||
System.Stop();
|
||||
}
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
System.Started = false;
|
||||
|
||||
console.log('Stopped System');
|
||||
|
||||
//GENERATED_STATIC_STOP_METHOD_END
|
||||
|
||||
//CUSTOM_STATIC_STOP_METHOD_START
|
||||
|
@ -148,11 +142,8 @@ class System {
|
|||
|
||||
}
|
||||
|
||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
System.Started = false;
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
System.Started = false;
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
module.exports = System;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
if (typeof options.KEY === 'undefined') {
|
||||
if (typeof options.KEY === 'undefined')) {
|
||||
options.KEY = VALUE;
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CLASS_NAME.KEY = VALUE;
|
|
@ -1,9 +1,11 @@
|
|||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
console.log('Stopped CLASS_NAME');
|
||||
|
||||
if ('PARENT_SYSTEM' !== 'CLASS_NAME') {
|
||||
PARENT_SYSTEM.Stop();
|
||||
}
|
||||
|
||||
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||
|
||||
CLASS_NAME.Started = false;
|
||||
|
||||
console.log('Stopped CLASS_NAME');
|
||||
|
|
|
@ -4,13 +4,8 @@ const Utils = require('INCLUDE_PATH/r3-utils');
|
|||
/**
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
started=false
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
Started=false
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_METHODS_START
|
||||
start() - Just calls System.Start()
|
||||
stop() - Just calls System.Stop()
|
||||
|
@ -39,10 +34,8 @@ class CLASS_NAME {
|
|||
|
||||
}
|
||||
|
||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
CLASS_NAME.Started = false;
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
module.exports = CLASS_NAME;
|
||||
|
|
|
@ -11,9 +11,6 @@ const EXTEND_CLASS = require('./EXTEND_CLASS_FILE_NAME');
|
|||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_STATIC_OPTIONS_START
|
||||
CUSTOM_STATIC_OPTIONS_END
|
||||
|
||||
CUSTOM_EVENT_LISTENERS_START
|
||||
CUSTOM_EVENT_LISTENERS_END
|
||||
|
||||
|
@ -48,9 +45,6 @@ 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_END
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ GENERATED_STATIC_ON_TOUCH_CANCEL_METHOD
|
|||
GENERATED_STATIC_ON_TOUCH_END_METHOD
|
||||
GENERATED_STATIC_ON_TOUCH_MOVE_METHOD
|
||||
GENERATED_STATIC_ON_TOUCH_START_METHOD
|
||||
GENERATED_STATIC_OPTIONS_INIT
|
||||
GENERATED_STATIC_START_METHOD
|
||||
GENERATED_STATIC_STOP_METHOD
|
||||
GENERATED_STATIC_SUBSCRIBE_METHOD
|
||||
|
@ -81,7 +80,6 @@ CUSTOM_STATIC_ON_TOUCH_CANCEL_METHOD
|
|||
CUSTOM_STATIC_ON_TOUCH_END_METHOD
|
||||
CUSTOM_STATIC_ON_TOUCH_MOVE_METHOD
|
||||
CUSTOM_STATIC_ON_TOUCH_START_METHOD
|
||||
CUSTOM_STATIC_OPTIONS
|
||||
CUSTOM_STATIC_START_METHOD
|
||||
CUSTOM_STATIC_STOP_METHOD
|
||||
CUSTOM_STATIC_SUBSCRIBE_METHOD
|
||||
|
|
Loading…
Reference in New Issue