inheriting for systems - r3-base template

master
Theunis J. Botha 2021-07-01 17:16:15 +02:00
parent 0d8242a0ec
commit 574a4d7c70
10 changed files with 96 additions and 18 deletions

View File

@ -1,9 +1,10 @@
r3 create R3 r3-base
r3 create Event normal
r3 create R3Object extends Event
r3 create Utils normal
r3 create Component extends R3Object
r3 create R3Object extends Event
r3 create Utils normal
r3 create Component extends R3Object
r3 create Project extends R3Object
r3 create System system-base
r3 create Test system
r3 create Linking system
r3 create Socket system
r3 create SystemSocket system
r3 create SystemLinking system
r3 create SystemTest system

View File

@ -1,4 +1,4 @@
const R3 = require('./r3.js');
const R3 = require('./r3-r3.js');
R3.System.Linking.start();
R3.System.Socket.start();

View File

@ -1,20 +1,24 @@
//GENERATED_IMPORTS_START
const {System, SystemLinking, SystemSocket} = require('./r3-system');
const R3Object = require('./r3-r3-object');
//GENERATED_IMPORTS_END
class R3 {
constructor() {
}
constructor() {
}
static version() {
return '__DATE__';
}
static version() {
return '__DATE__';
}
}
//GENERATED_DEFINES_START
R3.R3Object = R3Object;
R3.System = System;
R3.System.Linking = SystemLinking;
R3.System.Socket = SystemSocket;
//GENERATED_DEFINES_END
module.exports = R3;

View File

@ -5,6 +5,21 @@ const System = require('./r3-system.js');
/**
GENERATE_INHERITED_START
Inherited from System
Properties:
test
Methods:
test
Static Methods:
test
GENERATE_INHERITED_END
CUSTOM_OPTIONS_START

View File

@ -5,6 +5,21 @@ const System = require('./r3-system.js');
/**
GENERATE_INHERITED_START
Inherited from System
Properties:
test
Methods:
test
Static Methods:
test
GENERATE_INHERITED_END
CUSTOM_OPTIONS_START

View File

@ -5,6 +5,21 @@ const System = require('./r3-system.js');
/**
GENERATE_INHERITED_START
Inherited from System
Properties:
test
Methods:
test
Static Methods:
test
GENERATE_INHERITED_END
CUSTOM_OPTIONS_START

View File

@ -57,7 +57,8 @@ class System {
/**
* start() - Just calls System.Start(options)
* options
*
* @param options
*
*/
start(options) {
@ -76,7 +77,8 @@ class System {
/**
* stop() - Just calls System.Stop(options)
* options
*
* @param options
*
*/
stop(options) {
@ -92,7 +94,8 @@ class System {
/**
* Start() - Starts the system by registering subscriptions to events
* options
*
* @param options
*
*/
static Start(options) {
@ -105,7 +108,8 @@ class System {
/**
* Stop() - Stops the system by removing these subscriptions to events
* options
*
* @param options
*
*/
static Stop(options) {

View File

@ -0,0 +1,24 @@
//GENERATED_IMPORTS_START
const {System, SystemLinking, SystemSocket} = require('./r3-system');
const R3Object = require('./r3-r3-object');
//GENERATED_IMPORTS_END
class R3 {
constructor() {
}
static version() {
return '__DATE__';
}
}
//GENERATED_DEFINES_START
R3.R3Object = R3Object;
R3.System = System;
R3.System.Linking = SystemLinking;
R3.System.Socket = SystemSocket;
//GENERATED_DEFINES_END
module.exports = R3;

View File

@ -738,7 +738,7 @@ foreach ($files as $file) {
exit(1);
} else {
// deleteSavedFile($saveFile);
exit(0);
// exit(0);
}
} else if ($argv[2] == 'build-graph') {
buildNodeList($file);

View File

@ -30,7 +30,7 @@ if ($argv[1] == 'all') {
for ($i = 0; $i < sizeof($systemFiles); $i++) {
if (preg_match('/index\.js$/', $files[$i])) {
if (preg_match('/index\.js$/', $systemFiles[$i])) {
continue;
}