Compare commits

...

2 Commits

Author SHA1 Message Date
Theunis J. Botha ad817adf8e runtime updates 2021-09-17 14:42:26 +02:00
Theunis J. Botha b19075fde3 runtime updates 2021-09-17 14:42:18 +02:00
24 changed files with 770 additions and 1478 deletions

View File

@ -17,15 +17,15 @@ r3 create R3Object extends Event ./
r3 create Runtime runtime_base ./r3-runtime/
r3 create RuntimeBullet runtime_extends Runtime ./r3-runtime/
r3 create RuntimeCodeMirror runtime_extends RuntimeCoder ./r3-runtime/
r3 create RuntimeCoder runtime_extends Runtime ./r3-runtime/
r3 create RuntimeCoder runtime_base ./r3-runtime/
r3 create RuntimeControlKit runtime_extends RuntimeGUI ./r3-runtime/
r3 create RuntimeDOM runtime_extends Runtime ./r3-runtime/
r3 create RuntimeDOM runtime_base ./r3-runtime/
r3 create RuntimeDocument runtime_extends RuntimeDOM ./r3-runtime/
r3 create RuntimeGUI runtime_extends Runtime ./r3-runtime/
r3 create RuntimeGUI runtime_base ./r3-runtime/
r3 create RuntimeGraphics runtime_extends Runtime ./r3-runtime/
r3 create RuntimePhysics runtime_extends Runtime ./r3-runtime/
r3 create RuntimeSocket runtime_extends Runtime ./r3-runtime/
r3 create RuntimeStatistics runtime_extends Runtime ./r3-runtime/
r3 create RuntimePhysics runtime_base ./r3-runtime/
r3 create RuntimeSocket runtime_base ./r3-runtime/
r3 create RuntimeStatistics runtime_base ./r3-runtime/
r3 create RuntimeStats runtime_extends RuntimeStatistics ./r3-runtime/
r3 create RuntimeThree runtime_extends RuntimeGraphics ./r3-runtime/
r3 create System system_base ./r3-system/
@ -37,3 +37,4 @@ r3 create SystemSocket system_extends System ./r3-system/
r3 create Utils base ./
r3 create SystemRender system_extends System ./r3-system/
r3 create SystemStorage system_extends System ./r3-system/
r3 create RuntimeImage runtime_base ./r3-runtime/

1347
dist/r3.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -106,7 +106,7 @@ class Graph
/**
* @throws Exception
*/
protected function processOpen($searchMode = false, $property = null, $value = null)
protected function processOpen($searchMode = false, $property = null, $value = null, $regex = false)
{
/**
* Step 3. If OPEN is empty - throw Exception (we are actually done)
@ -130,9 +130,19 @@ class Graph
throw new ErrorException('Search mode cannot be true without a property specified');
}
if ($regex) {
if (preg_match($value, $node->$property)) {
return $node;
}
} else {
if ($node->$property === $value) {
return $node;
}
}
}
/**
@ -165,17 +175,18 @@ class Graph
/**
* Step 9. Go back to Step 3
*/
return $this->processOpen($searchMode, $property, $value);
return $this->processOpen($searchMode, $property, $value, $regex);
}
/**
* @param $property
* @param $value
* @param $regex
* @return Array | Node
* @throws ErrorException
*/
public function search($property, $value)
public function search($property, $value, $regex = false)
{
if (sizeof($this->nodes) <= 0) {
throw new ErrorException('This graph is not built yet');
@ -203,7 +214,7 @@ class Graph
/**
* Step 3. If OPEN is empty - we could not find the node
*/
return $this->processOpen(true, $property, $value);
return $this->processOpen(true, $property, $value, $regex);
} catch (Exception $e) {
return $this->searchNodes;
}
@ -245,6 +256,7 @@ class Graph
}
/**
* Returns all nodes in the graph
* @return []
*/
public function walk()
@ -294,6 +306,7 @@ class Node
public $nameSpace = '';
public $parent = null;
public $children = null;
public $isBaseClass = null;
function __construct(
$__file,
@ -301,7 +314,8 @@ class Node
$__nameSpace = '',
$__nameSpaceClassName = '',
$__parent = null,
$__children = null
$__children = null,
$__isBaseClass = null
)
{
$this->file = $__file;
@ -310,6 +324,7 @@ class Node
$this->nameSpaceClassName = $__nameSpaceClassName;
$this->parent = $__parent;
$this->children = $__children;
$this->isBaseClass = $__isBaseClass;
}
}

View File

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

43
r3.php
View File

@ -1602,8 +1602,12 @@ function buildNodeList($file)
'System'
];
$isBaseClass = true;
if ($extends) {
$isBaseClass = false;
$nameSpaceClassName = str_replace($extends, '', $class);
foreach ($needles as $needle) {
@ -1620,7 +1624,9 @@ function buildNodeList($file)
$class,
$nameSpace,
$nameSpaceClassName,
$extends
$extends,
null,
$isBaseClass
);
array_push($nodeList, $node);
@ -1638,13 +1644,38 @@ function generateOutOfClassImplementationDefines($graph, $types)
foreach ($types as $type) {
$parent = $graph->search('name', $type);
$children = $graph->flatten($parent);
$updateList = [];
$i = 0;
$parent = $graph->search('name', $type);
if ($type === 'Runtime') {
$nodes = $graph->walk();
foreach ($nodes as $node) {
if (preg_match('/Runtime\w+/', $node->name) && $node->isBaseClass) {
array_push($updateList, 'Runtime.BASE_' . strtoupper(from_camel_case($node->name)) . ' = 0x' . dechex($i) . ";\n");
$i++;
}
}
array_push($updateList, "\n");
$i = 0;
foreach ($nodes as $node) {
if (preg_match('/Runtime\w+/', $node->name) && !$node->isBaseClass) {
array_push($updateList, 'Runtime.' . strtoupper(from_camel_case($node->name)) . ' = 0x' . dechex($i) . ";\n");
$i++;
}
}
} else {
$children = $graph->flatten($parent);
foreach ($children as $child) {
array_push($updateList, $parent->name . '.' . strtoupper(from_camel_case($child->name)) . ' = 0x' . dechex($i) . ";\n");
$i++;
@ -1652,6 +1683,8 @@ function generateOutOfClassImplementationDefines($graph, $types)
array_push($updateList, $parent->name . '.MAX_' . strtoupper($parent->name) . ' = 0x' . dechex($i) . ";\n");
}
updateSection($parent->file, 'GENERATED_OUT_OF_CLASS_IMPLEMENTATION' , $updateList);
}

View File

@ -277,8 +277,8 @@ class ComponentCanvas extends ComponentDOM {
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : width,
instanceProperty : width
property : 'width',
instanceProperty : 'width'
}
);
if (property !== 'all') {
@ -291,8 +291,8 @@ class ComponentCanvas extends ComponentDOM {
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : height,
instanceProperty : height
property : 'height',
instanceProperty : 'height'
}
);
if (property !== 'all') {
@ -305,8 +305,8 @@ class ComponentCanvas extends ComponentDOM {
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : style,
instanceProperty : style
property : 'style',
instanceProperty : 'style'
}
);
if (property !== 'all') {
@ -343,8 +343,8 @@ class ComponentCanvas extends ComponentDOM {
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : width,
instanceProperty : width
property : 'width',
instanceProperty : 'width'
}
);
if (property !== 'all') {
@ -357,8 +357,8 @@ class ComponentCanvas extends ComponentDOM {
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : height,
instanceProperty : height
property : 'height',
instanceProperty : 'height'
}
);
if (property !== 'all') {
@ -371,8 +371,8 @@ class ComponentCanvas extends ComponentDOM {
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : style,
instanceProperty : style
property : 'style',
instanceProperty : 'style'
}
);
if (property !== 'all') {

View File

@ -235,8 +235,8 @@ class ComponentDOM extends Component {
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : instance,
instanceProperty : instance
property : 'instance',
instanceProperty : 'instance'
}
);
if (property !== 'all') {
@ -273,8 +273,8 @@ class ComponentDOM extends Component {
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : instance,
instanceProperty : instance
property : 'instance',
instanceProperty : 'instance'
}
);
if (property !== 'all') {

View File

@ -336,89 +336,87 @@ class Event {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//GENERATED_EVENTS_START
Event.BEFORE_RENDER = 0x1;
Event.COMPONENT_CREATED = 0x2;
Event.COMPONENT_INITIALIZED = 0x3;
Event.CREATE_INSTANCE_BEFORE = 0x4;
Event.DISPOSE_INSTANCE = 0x5;
Event.DISPOSE_OBJECT = 0x6;
Event.DOM_COMPONENT_INITIALIZED = 0x7;
Event.ENTITY_CREATED = 0x8;
Event.ENTITY_INITIALIZED = 0x9;
Event.GET_RUNTIME = 0xa;
Event.GET_WINDOW_SIZE = 0xb;
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc;
Event.IMAGE_COMPONENT_INITIALIZED = 0xd;
Event.IMAGE_INITIALIZED = 0xe;
Event.INPUT_COMPONENT_INITIALIZED = 0xf;
Event.INSTANCE_CREATED = 0x10;
Event.INSTANCE_DISPOSED = 0x11;
Event.KEYBOARD_DOWN = 0x12;
Event.KEYBOARD_UP = 0x13;
Event.MOUSE_DOWN = 0x14;
Event.MOUSE_MOVE = 0x15;
Event.MOUSE_UP = 0x16;
Event.MOUSE_WHEEL = 0x17;
Event.OBJECT_CREATED = 0x18;
Event.OBJECT_INITIALIZED = 0x19;
Event.PAUSE = 0x1a;
Event.PROJECT_INITIALIZED = 0x1b;
Event.RESTART = 0x1c;
Event.START = 0x1d;
Event.TOUCH_CANCEL = 0x1e;
Event.TOUCH_END = 0x1f;
Event.TOUCH_MOVE = 0x20;
Event.TOUCH_START = 0x21;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x22;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x23;
Event.UPDATE_INSTANCE_AFTER = 0x24;
Event.UPDATE_INSTANCE_BEFORE = 0x25;
Event.UPDATE_INSTANCE_PROPERTY = 0x26;
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x27;
Event.MAX_EVENTS = 0x28;
Event.COMPONENT_CREATED = 0x1;
Event.COMPONENT_INITIALIZED = 0x2;
Event.CREATE_INSTANCE_BEFORE = 0x3;
Event.DISPOSE_INSTANCE = 0x4;
Event.DISPOSE_OBJECT = 0x5;
Event.DOM_COMPONENT_INITIALIZED = 0x6;
Event.ENTITY_CREATED = 0x7;
Event.ENTITY_INITIALIZED = 0x8;
Event.GET_RUNTIME = 0x9;
Event.GET_WINDOW_SIZE = 0xa;
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
Event.IMAGE_COMPONENT_INITIALIZED = 0xc;
Event.IMAGE_INITIALIZED = 0xd;
Event.INPUT_COMPONENT_INITIALIZED = 0xe;
Event.INSTANCE_CREATED = 0xf;
Event.INSTANCE_DISPOSED = 0x10;
Event.KEYBOARD_DOWN = 0x11;
Event.KEYBOARD_UP = 0x12;
Event.MOUSE_DOWN = 0x13;
Event.MOUSE_MOVE = 0x14;
Event.MOUSE_UP = 0x15;
Event.MOUSE_WHEEL = 0x16;
Event.OBJECT_CREATED = 0x17;
Event.OBJECT_INITIALIZED = 0x18;
Event.PAUSE = 0x19;
Event.PROJECT_INITIALIZED = 0x1a;
Event.RESTART = 0x1b;
Event.START = 0x1c;
Event.TOUCH_CANCEL = 0x1d;
Event.TOUCH_END = 0x1e;
Event.TOUCH_MOVE = 0x1f;
Event.TOUCH_START = 0x20;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x21;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x22;
Event.UPDATE_INSTANCE_AFTER = 0x23;
Event.UPDATE_INSTANCE_BEFORE = 0x24;
Event.UPDATE_INSTANCE_PROPERTY = 0x25;
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x26;
Event.MAX_EVENTS = 0x27;
Event.GetEventName = function(eventId) {
switch(eventId) {
case 0x1 : return 'before_render';
case 0x2 : return 'component_created';
case 0x3 : return 'component_initialized';
case 0x4 : return 'create_instance_before';
case 0x5 : return 'dispose_instance';
case 0x6 : return 'dispose_object';
case 0x7 : return 'dom_component_initialized';
case 0x8 : return 'entity_created';
case 0x9 : return 'entity_initialized';
case 0xa : return 'get_runtime';
case 0xb : return 'get_window_size';
case 0xc : return 'graphics_component_initialized';
case 0xd : return 'image_component_initialized';
case 0xe : return 'image_initialized';
case 0xf : return 'input_component_initialized';
case 0x10 : return 'instance_created';
case 0x11 : return 'instance_disposed';
case 0x12 : return 'keyboard_down';
case 0x13 : return 'keyboard_up';
case 0x14 : return 'mouse_down';
case 0x15 : return 'mouse_move';
case 0x16 : return 'mouse_up';
case 0x17 : return 'mouse_wheel';
case 0x18 : return 'object_created';
case 0x19 : return 'object_initialized';
case 0x1a : return 'pause';
case 0x1b : return 'project_initialized';
case 0x1c : return 'restart';
case 0x1d : return 'start';
case 0x1e : return 'touch_cancel';
case 0x1f : return 'touch_end';
case 0x20 : return 'touch_move';
case 0x21 : return 'touch_start';
case 0x22 : return 'update_from_instance_after';
case 0x23 : return 'update_from_instance_before';
case 0x24 : return 'update_instance_after';
case 0x25 : return 'update_instance_before';
case 0x26 : return 'update_instance_property';
case 0x27 : return 'update_property_from_instance';
case 0x1 : return 'component_created';
case 0x2 : return 'component_initialized';
case 0x3 : return 'create_instance_before';
case 0x4 : return 'dispose_instance';
case 0x5 : return 'dispose_object';
case 0x6 : return 'dom_component_initialized';
case 0x7 : return 'entity_created';
case 0x8 : return 'entity_initialized';
case 0x9 : return 'get_runtime';
case 0xa : return 'get_window_size';
case 0xb : return 'graphics_component_initialized';
case 0xc : return 'image_component_initialized';
case 0xd : return 'image_initialized';
case 0xe : return 'input_component_initialized';
case 0xf : return 'instance_created';
case 0x10 : return 'instance_disposed';
case 0x11 : return 'keyboard_down';
case 0x12 : return 'keyboard_up';
case 0x13 : return 'mouse_down';
case 0x14 : return 'mouse_move';
case 0x15 : return 'mouse_up';
case 0x16 : return 'mouse_wheel';
case 0x17 : return 'object_created';
case 0x18 : return 'object_initialized';
case 0x19 : return 'pause';
case 0x1a : return 'project_initialized';
case 0x1b : return 'restart';
case 0x1c : return 'start';
case 0x1d : return 'touch_cancel';
case 0x1e : return 'touch_end';
case 0x1f : return 'touch_move';
case 0x20 : return 'touch_start';
case 0x21 : return 'update_from_instance_after';
case 0x22 : return 'update_from_instance_before';
case 0x23 : return 'update_instance_after';
case 0x24 : return 'update_instance_before';
case 0x25 : return 'update_instance_property';
case 0x26 : return 'update_property_from_instance';
default :
throw new Error('Event type not defined : ' + eventId);
}

View File

@ -1,9 +1,16 @@
class R3 {
static version = '2.0.708';
static compileDate = '2021 Sep 17 - 11:48:18 am';
static version = '2.0.729';
static compileDate = '2021 Sep 17 - 14:41:27 pm';
}
//GENERATED_IMPORTS_START
const RuntimeCoder = require('./r3-runtime/r3-runtime-coder.js');
const RuntimeDOM = require('./r3-runtime/r3-runtime-d-o-m.js');
const RuntimeGUI = require('./r3-runtime/r3-runtime-g-u-i.js');
const RuntimeImage = require('./r3-runtime/r3-runtime-image.js');
const RuntimePhysics = require('./r3-runtime/r3-runtime-physics.js');
const RuntimeSocket = require('./r3-runtime/r3-runtime-socket.js');
const RuntimeStatistics = require('./r3-runtime/r3-runtime-statistics.js');
const Runtime = require('./r3-runtime/');
const System = require('./r3-system/');
const Event = require('./r3-event.js');
@ -15,6 +22,13 @@ const Project = require('./r3-project.js');
//GENERATED_IMPORTS_END
//GENERATED_DEFINES_START
R3.RuntimeCoder = RuntimeCoder;
R3.RuntimeDOM = RuntimeDOM;
R3.RuntimeGUI = RuntimeGUI;
R3.RuntimeImage = RuntimeImage;
R3.RuntimePhysics = RuntimePhysics;
R3.RuntimeSocket = RuntimeSocket;
R3.RuntimeStatistics = RuntimeStatistics;
R3.Runtime = Runtime;
R3.System = System;
R3.Event = Event;

View File

@ -1,34 +1,14 @@
//GENERATED_IMPORTS_START
const Runtime = require('./r3-runtime.js');
const RuntimeBullet = require('./r3-runtime-bullet.js');
const RuntimeCoder = require('./r3-runtime-coder.js');
const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js');
const RuntimeDOM = require('./r3-runtime-d-o-m.js');
const RuntimeDocument = require('./r3-runtime-document.js');
const RuntimeGUI = require('./r3-runtime-g-u-i.js');
const RuntimeControlKit = require('./r3-runtime-control-kit.js');
const RuntimeGraphics = require('./r3-runtime-graphics.js');
const RuntimeThree = require('./r3-runtime-three.js');
const RuntimePhysics = require('./r3-runtime-physics.js');
const RuntimeSocket = require('./r3-runtime-socket.js');
const RuntimeStatistics = require('./r3-runtime-statistics.js');
const RuntimeStats = require('./r3-runtime-stats.js');
//GENERATED_IMPORTS_END
//GENERATED_INDEX_BODY_START
Runtime.Bullet = RuntimeBullet;
Runtime.Coder = RuntimeCoder;
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
Runtime.DOM = RuntimeDOM;
Runtime.DOM.Document = RuntimeDocument;
Runtime.GUI = RuntimeGUI;
Runtime.GUI.ControlKit = RuntimeControlKit;
Runtime.Graphics = RuntimeGraphics;
Runtime.Graphics.Three = RuntimeThree;
Runtime.Physics = RuntimePhysics;
Runtime.Socket = RuntimeSocket;
Runtime.Statistics = RuntimeStatistics;
Runtime.Statistics.Stats = RuntimeStats;
//GENERATED_INDEX_BODY_END
//GENERATED_EXPORTS_START

View File

@ -6,25 +6,7 @@ const RuntimeCoder = require('./r3-runtime-coder.js');
GENERATED_INHERITED_START
Class R3.Runtime.Coder.CodeMirror
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
Class R3.RuntimeCoder.CodeMirror
[Inherited from RuntimeCoder]
Inherited Properties:

View File

@ -1,50 +1,8 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Runtime = require('./r3-runtime.js');
/**
GENERATED_INHERITED_START
Class R3.Runtime.Coder
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeCoder]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
@ -58,7 +16,6 @@ const Runtime = require('./r3-runtime.js');
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
buildInstance(component) - Creates an instance of R3.Component based on this Runtime.
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
@ -72,7 +29,7 @@ const Runtime = require('./r3-runtime.js');
**/
class RuntimeCoder extends Runtime {
class RuntimeCoder {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
@ -81,8 +38,6 @@ class RuntimeCoder extends Runtime {
options = {};
}
super(options);
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
@ -90,26 +45,10 @@ class RuntimeCoder extends Runtime {
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
/**
* buildInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
buildInstance(component) {
//GENERATED_BUILD_INSTANCE_METHOD_START
//GENERATED_BUILD_INSTANCE_METHOD_END
//CUSTOM_BUILD_INSTANCE_METHOD_START
//CUSTOM_BUILD_INSTANCE_METHOD_END
}
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
@ -123,7 +62,6 @@ class RuntimeCoder extends Runtime {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START

View File

@ -6,25 +6,7 @@ const RuntimeGUI = require('./r3-runtime-g-u-i.js');
GENERATED_INHERITED_START
Class R3.Runtime.GUI.ControlKit
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
Class R3.RuntimeGUI.ControlKit
[Inherited from RuntimeGUI]
Inherited Properties:

View File

@ -1,50 +1,8 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Runtime = require('./r3-runtime.js');
/**
GENERATED_INHERITED_START
Class R3.Runtime.DOM
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeDOM]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
@ -58,7 +16,6 @@ const Runtime = require('./r3-runtime.js');
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
buildInstance(component) - Creates an instance of R3.Component based on this Runtime.
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
@ -72,7 +29,7 @@ const Runtime = require('./r3-runtime.js');
**/
class RuntimeDOM extends Runtime {
class RuntimeDOM {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
@ -81,8 +38,6 @@ class RuntimeDOM extends Runtime {
options = {};
}
super(options);
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
@ -90,26 +45,10 @@ class RuntimeDOM extends Runtime {
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
/**
* buildInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
buildInstance(component) {
//GENERATED_BUILD_INSTANCE_METHOD_START
//GENERATED_BUILD_INSTANCE_METHOD_END
//CUSTOM_BUILD_INSTANCE_METHOD_START
//CUSTOM_BUILD_INSTANCE_METHOD_END
}
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
@ -123,7 +62,6 @@ class RuntimeDOM extends Runtime {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START

View File

@ -6,25 +6,7 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js');
GENERATED_INHERITED_START
Class R3.Runtime.DOM.Document
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
Class R3.RuntimeDOM.Document
[Inherited from RuntimeDOM]
Inherited Properties:

View File

@ -1,50 +1,8 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Runtime = require('./r3-runtime.js');
/**
GENERATED_INHERITED_START
Class R3.Runtime.GUI
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeGUI]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
@ -58,7 +16,6 @@ const Runtime = require('./r3-runtime.js');
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
buildInstance(component) - Creates an instance of R3.Component based on this Runtime.
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
@ -72,7 +29,7 @@ const Runtime = require('./r3-runtime.js');
**/
class RuntimeGUI extends Runtime {
class RuntimeGUI {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
@ -81,8 +38,6 @@ class RuntimeGUI extends Runtime {
options = {};
}
super(options);
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
@ -90,26 +45,10 @@ class RuntimeGUI extends Runtime {
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
/**
* buildInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
buildInstance(component) {
//GENERATED_BUILD_INSTANCE_METHOD_START
//GENERATED_BUILD_INSTANCE_METHOD_END
//CUSTOM_BUILD_INSTANCE_METHOD_START
//CUSTOM_BUILD_INSTANCE_METHOD_END
}
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
@ -123,7 +62,6 @@ class RuntimeGUI extends Runtime {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START

View File

@ -0,0 +1,79 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
/**
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
TEMPLATE_STATIC_OPTIONS_START
TEMPLATE_STATIC_OPTIONS_END
CUSTOM_STATIC_OPTIONS_START
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
TEMPLATE_STATIC_METHODS_START
TEMPLATE_STATIC_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class RuntimeImage {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_TEMPLATE_STATIC_METHODS_START
//GENERATED_TEMPLATE_STATIC_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END
//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
module.exports = RuntimeImage;

View File

@ -1,50 +1,8 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Runtime = require('./r3-runtime.js');
/**
GENERATED_INHERITED_START
Class R3.Runtime.Physics
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimePhysics]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
@ -58,7 +16,6 @@ const Runtime = require('./r3-runtime.js');
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
buildInstance(component) - Creates an instance of R3.Component based on this Runtime.
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
@ -72,7 +29,7 @@ const Runtime = require('./r3-runtime.js');
**/
class RuntimePhysics extends Runtime {
class RuntimePhysics {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
@ -81,8 +38,6 @@ class RuntimePhysics extends Runtime {
options = {};
}
super(options);
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
@ -90,26 +45,10 @@ class RuntimePhysics extends Runtime {
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
/**
* buildInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
buildInstance(component) {
//GENERATED_BUILD_INSTANCE_METHOD_START
//GENERATED_BUILD_INSTANCE_METHOD_END
//CUSTOM_BUILD_INSTANCE_METHOD_START
//CUSTOM_BUILD_INSTANCE_METHOD_END
}
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
@ -123,7 +62,6 @@ class RuntimePhysics extends Runtime {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START

View File

@ -1,50 +1,8 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Runtime = require('./r3-runtime.js');
/**
GENERATED_INHERITED_START
Class R3.Runtime.Socket
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeSocket]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
@ -58,7 +16,6 @@ const Runtime = require('./r3-runtime.js');
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
buildInstance(component) - Creates an instance of R3.Component based on this Runtime.
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
@ -72,7 +29,7 @@ const Runtime = require('./r3-runtime.js');
**/
class RuntimeSocket extends Runtime {
class RuntimeSocket {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
@ -81,8 +38,6 @@ class RuntimeSocket extends Runtime {
options = {};
}
super(options);
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
@ -90,26 +45,10 @@ class RuntimeSocket extends Runtime {
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
/**
* buildInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
buildInstance(component) {
//GENERATED_BUILD_INSTANCE_METHOD_START
//GENERATED_BUILD_INSTANCE_METHOD_END
//CUSTOM_BUILD_INSTANCE_METHOD_START
//CUSTOM_BUILD_INSTANCE_METHOD_END
}
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
@ -123,7 +62,6 @@ class RuntimeSocket extends Runtime {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START

View File

@ -1,50 +1,8 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Runtime = require('./r3-runtime.js');
/**
GENERATED_INHERITED_START
Class R3.Runtime.Statistics
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
[Belonging to RuntimeStatistics]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
TEMPLATE_OPTIONS_START
TEMPLATE_OPTIONS_END
@ -58,7 +16,6 @@ const Runtime = require('./r3-runtime.js');
CUSTOM_STATIC_OPTIONS_END
TEMPLATE_METHODS_START
buildInstance(component) - Creates an instance of R3.Component based on this Runtime.
TEMPLATE_METHODS_END
CUSTOM_METHODS_START
@ -72,7 +29,7 @@ const Runtime = require('./r3-runtime.js');
**/
class RuntimeStatistics extends Runtime {
class RuntimeStatistics {
//GENERATED_CONSTRUCTOR_START
constructor(options) {
@ -81,8 +38,6 @@ class RuntimeStatistics extends Runtime {
options = {};
}
super(options);
//GENERATED_TEMPLATE_OPTIONS_INIT_START
//GENERATED_TEMPLATE_OPTIONS_INIT_END
@ -90,26 +45,10 @@ class RuntimeStatistics extends Runtime {
//GENERATED_OPTIONS_INIT_END
Object.assign(this, options);
}
//GENERATED_CONSTRUCTOR_END
//GENERATED_TEMPLATE_METHODS_START
/**
* buildInstance()
* - Creates an instance of R3.Component based on this Runtime.
* @param component
*/
buildInstance(component) {
//GENERATED_BUILD_INSTANCE_METHOD_START
//GENERATED_BUILD_INSTANCE_METHOD_END
//CUSTOM_BUILD_INSTANCE_METHOD_START
//CUSTOM_BUILD_INSTANCE_METHOD_END
}
//GENERATED_TEMPLATE_METHODS_END
//GENERATED_METHODS_START
@ -123,7 +62,6 @@ class RuntimeStatistics extends Runtime {
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_END
}
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START

View File

@ -6,25 +6,7 @@ const RuntimeStatistics = require('./r3-runtime-statistics.js');
GENERATED_INHERITED_START
Class R3.Runtime.Statistics.Stats
[Inherited from Runtime]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
<no inherited methods>
Inherited Static Methods:
<no inherited static methods>
Class R3.RuntimeStatistics.Stats
[Inherited from RuntimeStatistics]
Inherited Properties:

View File

@ -71,20 +71,21 @@ class Runtime {
//GENERATED_STATIC_OPTIONS_INIT_END
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
Runtime.RUNTIME_BULLET = 0x0;
Runtime.RUNTIME_CODER = 0x1;
Runtime.RUNTIME_CODE_MIRROR = 0x2;
Runtime.RUNTIME_DOM = 0x3;
Runtime.RUNTIME_DOCUMENT = 0x4;
Runtime.RUNTIME_GUI = 0x5;
Runtime.RUNTIME_CONTROL_KIT = 0x6;
Runtime.RUNTIME_GRAPHICS = 0x7;
Runtime.RUNTIME_THREE = 0x8;
Runtime.RUNTIME_PHYSICS = 0x9;
Runtime.RUNTIME_SOCKET = 0xa;
Runtime.RUNTIME_STATISTICS = 0xb;
Runtime.RUNTIME_STATS = 0xc;
Runtime.MAX_RUNTIME = 0xd;
Runtime.BASE_RUNTIME_CODER = 0x0;
Runtime.BASE_RUNTIME_DOM = 0x1;
Runtime.BASE_RUNTIME_GUI = 0x2;
Runtime.BASE_RUNTIME_IMAGE = 0x3;
Runtime.BASE_RUNTIME_PHYSICS = 0x4;
Runtime.BASE_RUNTIME_SOCKET = 0x5;
Runtime.BASE_RUNTIME_STATISTICS = 0x6;
Runtime.RUNTIME_CODE_MIRROR = 0x0;
Runtime.RUNTIME_DOCUMENT = 0x1;
Runtime.RUNTIME_CONTROL_KIT = 0x2;
Runtime.RUNTIME_STATS = 0x3;
Runtime.RUNTIME_BULLET = 0x4;
Runtime.RUNTIME_GRAPHICS = 0x5;
Runtime.RUNTIME_THREE = 0x6;
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -29,7 +29,7 @@ GENERATED_STATIC_METHOD_NAME_UPPERCASE_METHOD
GENERATED_STATIC_METHODS
GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
GENERATED_STATIC_ON_GET_RUNTIME_METHOD
GENERATED_STATIC_ON_IMAGE_CREATED_METHOD
GENERATED_STATIC_ON_IMAGE_COMPONENT_INITIALIZED_METHOD
GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD
GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD
GENERATED_STATIC_ON_KEYBOARD_UP_METHOD
@ -90,7 +90,7 @@ CUSTOM_STATIC_METHOD_NAME_UPPERCASE_METHOD
CUSTOM_STATIC_METHODS
CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
CUSTOM_STATIC_ON_GET_RUNTIME_METHOD
CUSTOM_STATIC_ON_IMAGE_CREATED_METHOD
CUSTOM_STATIC_ON_IMAGE_COMPONENT_INITIALIZED_METHOD
CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD
CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD
CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD

View File

@ -1 +1 @@
2.0.708
2.0.729