also for systems
parent
855f964bff
commit
90fd143da4
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.202';
|
||||
static compileDate = '2021 Sep 08 - 05:32:17 am';
|
||||
static version = '2.0.203';
|
||||
static compileDate = '2021 Sep 08 - 05:42:56 am';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -50,6 +50,11 @@ class System {
|
|||
System.Started = false;
|
||||
System.Subscriptions = {};
|
||||
|
||||
System.SystemInput = 0x0;
|
||||
System.SystemLinking = 0x1;
|
||||
System.SystemSocket = 0x2;
|
||||
System.MAX_SYSTEMS = 0x3;
|
||||
|
||||
class Event {
|
||||
|
||||
constructor(options) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "r3",
|
||||
"version" : "2.0.202",
|
||||
"version" : "2.0.203",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
|
27
r3.php
27
r3.php
|
@ -1097,35 +1097,13 @@ function generateIndex($types)
|
|||
|
||||
$file = null;
|
||||
|
||||
if ($type === 'System') {
|
||||
$file = str_replace('src/r3/r3-system', '.', $child->file);
|
||||
}
|
||||
|
||||
if ($type === 'Component') {
|
||||
$file = str_replace('src/r3/r3-component', '.', $child->file);
|
||||
}
|
||||
|
||||
if ($type === 'Runtime') {
|
||||
$file = str_replace('src/r3/r3-runtime', '.', $child->file);
|
||||
}
|
||||
$file = str_replace('src/r3/r3-' . strtolower($type), '.', $child->file);
|
||||
|
||||
array_push($imports, "const " . $child->name . ' = require(\'' . $file . "');");
|
||||
array_push($exports, $child->name);
|
||||
}
|
||||
|
||||
$indexFile = null;
|
||||
|
||||
if ($type === 'System') {
|
||||
$indexFile = 'src/r3/r3-system/index.js';
|
||||
}
|
||||
|
||||
if ($type === 'Component') {
|
||||
$indexFile = 'src/r3/r3-component/index.js';
|
||||
}
|
||||
|
||||
if ($type === 'Runtime') {
|
||||
$indexFile = 'src/r3/r3-runtime/index.js';
|
||||
}
|
||||
$indexFile = 'src/r3/r3-'. strtolower($type) . '/index.js';
|
||||
|
||||
file_put_contents($indexFile, $template);
|
||||
|
||||
|
@ -1693,6 +1671,7 @@ if ($argv[2] == 'build-dist') {
|
|||
generateOutOfClassImplementationDefines(
|
||||
$graph,
|
||||
[
|
||||
'System',
|
||||
'Component',
|
||||
'Runtime'
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.202';
|
||||
static compileDate = '2021 Sep 08 - 05:32:17 am';
|
||||
static version = '2.0.203';
|
||||
static compileDate = '2021 Sep 08 - 05:42:56 am';
|
||||
}
|
||||
|
||||
//GENERATED_IMPORTS_START
|
||||
|
|
|
@ -488,6 +488,9 @@ class SystemInput extends System {
|
|||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -291,6 +291,9 @@ class SystemLinking extends System {
|
|||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -244,6 +244,9 @@ class SystemSocket extends System {
|
|||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -97,6 +97,13 @@ System.Started = false;
|
|||
System.Subscriptions = {};
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
System.SystemInput = 0x0;
|
||||
System.SystemLinking = 0x1;
|
||||
System.SystemSocket = 0x2;
|
||||
System.MAX_SYSTEMS = 0x3;
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -48,6 +48,9 @@ class CLASS_NAME {
|
|||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -53,6 +53,9 @@ class CLASS_NAME extends EXTEND_CLASS {
|
|||
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
Loading…
Reference in New Issue