also for systems

master
Theunis J. Botha 2021-09-08 05:44:51 +02:00
parent 855f964bff
commit 90fd143da4
11 changed files with 36 additions and 30 deletions

9
dist/r3.js vendored
View File

@ -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) {

View File

@ -1,6 +1,6 @@
{
"name": "r3",
"version" : "2.0.202",
"version" : "2.0.203",
"description": "",
"private": true,
"dependencies": {

27
r3.php
View File

@ -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'
]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1 +1 @@
2.0.202
2.0.203