before component changes

master
Theunis J. Botha 2021-09-10 09:40:19 +02:00
parent b384d331ac
commit a7f3caa49b
32 changed files with 2447 additions and 312 deletions

View File

@ -1,32 +1,37 @@
r3 create R3 r3_base
r3 create Event normal
r3 create R3Object extends Event
r3 create Utils normal
r3 create Project extends R3Object
r3 create System system_base
r3 create SystemSocket system
r3 create SystemLinking system
r3 create Component extends R3Object ./r3-component/
r3 create SystemInput system
r3 create Input extends Component ./r3-component/
r3 create Touch extends Input ./r3-component/
r3 create ComponentCanvas extends ComponentDOM ./r3-component/
r3 create ComponentDOM extends Component ./r3-component/
r3 create ComponentGraphics extends Component ./r3-component/
r3 create ComponentImage extends ComponentGraphics ./r3-component/
r3 create ComponentInput extends Component ./r3-component/
r3 create ComponentMaterial extends ComponentGraphics ./r3-component/
r3 create ComponentMesh extends ComponentGraphics ./r3-component/
r3 create ComponentTexture extends ComponentGraphics ./r3-component/
r3 create ComponentTouch extends ComponentInput ./r3-component/
r3 create Entity normal ./r3-entity/
r3 create EntitySlider extends Entity ./r3-entity/
r3 create Event normal
r3 create Project extends R3Object
r3 create R3 r3_base
r3 create R3Object extends Event
r3 create Runtime extends Event ./r3-runtime/
r3 create Graphics extends Runtime ./r3-runtime/
r3 create Socket extends Runtime ./r3-runtime/
r3 create Physics extends Runtime ./r3-runtime/
r3 create Default extends Runtime ./r3-runtime/
r3 create GUI extends Runtime ./r3-runtime/
r3 create Coder extends Runtime ./r3-runtime/
r3 create Statistics extends Runtime ./r3-runtime/
r3 create Three extends Graphics ./r3-runtime/
r3 create CodeMirror extends Coder ./r3-runtime/
r3 create Bullet extends Physics ./r3-runtime/
r3 create ControlKit extends GUI ./r3-runtime/
r3 create Stats extends Statistics ./r3-runtime/
r3 create DOM extends Component ./r3-component/
r3 create Canvas extends DOM ./r3-component/
r3 create SystemDOM system
r3 create Document extends Default ./r3-runtime/
r3 create SystemRuntime system
r3 create Entity normal ./r3-entity/
r3 create Slider extends Entity ./r3-entity/
r3 create RuntimeBullet extends RuntimePhysics ./r3-runtime/
r3 create RuntimeCodeMirror extends RuntimeCoder ./r3-runtime/
r3 create RuntimeCoder extends Runtime ./r3-runtime/
r3 create RuntimeControlKit extends RuntimeGUI ./r3-runtime/
r3 create RuntimeDefault extends Runtime ./r3-runtime/
r3 create RuntimeDocument extends RuntimeDefault ./r3-runtime/
r3 create RuntimeGUI extends Runtime ./r3-runtime/
r3 create RuntimeGraphics extends Runtime ./r3-runtime/
r3 create RuntimePhysics extends Runtime ./r3-runtime/
r3 create RuntimeSocket extends Runtime ./r3-runtime/
r3 create RuntimeStatistics extends Runtime ./r3-runtime/
r3 create RuntimeStats extends RuntimeStatistics ./r3-runtime/
r3 create RuntimeThree extends RuntimeGraphics ./r3-runtime/
r3 create System system_base
r3 create SystemDOM system
r3 create SystemInput system
r3 create SystemLinking system
r3 create SystemRuntime system
r3 create SystemSocket system
r3 create Utils normal

1073
dist/r3.js vendored

File diff suppressed because it is too large Load Diff

View File

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

54
r3.php
View File

@ -454,7 +454,7 @@ function generateConstructors($file, $command)
}
if (!$constructor) {
console.log('No constructor found for : ' . $file);
echo 'No constructor found for : ' . $file;
return;
}
@ -1107,17 +1107,20 @@ function generateMethods($file, $tokens)
}
function buildChildBody($node, $child, &$body, $nameSpaceClassName)
function buildIndexBody($graph, $node, &$body, $nameSpace)
{
if (sizeof($child->children) === 0) {
array_push($body, $nameSpaceClassName . '.' . $child->nameSpaceClassName . ' = ' . $child->name . ';');
return $body;
}
foreach ($child->children as $anotherChild) {
$nameSpaceClassName .= '.' . $child->nameSpaceClassName;
array_push($body, $node->name . '.' . $child->nameSpaceClassName . ' = ' . $child->name . ';');
return buildChildBody($node, $anotherChild, $body, $nameSpaceClassName);
if (sizeof($node->children) != 0) {
$originalNameSpace = $nameSpace;
foreach ($node->children as $child) {
$nameSpace = $originalNameSpace . '.' . $child->nameSpaceClassName;
array_push($body, $nameSpace . ' = ' . $child->name . ';');
buildIndexBody($graph, $child, $body, $nameSpace);
$child->nameSpace = $originalNameSpace;
}
}
}
@ -1153,9 +1156,7 @@ function generateIndex($types)
}
foreach ($node->children as $child) {
buildChildBody($node, $child, $body, $node->nameSpaceClassName);
}
buildIndexBody($graph, $node, $body, $node->nameSpaceClassName);
array_push($exports, 'module.exports = ' . $node->name . ';');
@ -1174,6 +1175,13 @@ function generateR3($nodes, $graph)
$imports = [];
$defines = [];
$modifiedPaths = [
'/\br3-component.js$/',
'/\br3-entity.js$/',
'/\br3-runtime.js$/',
'/\br3-system.js$/'
];
foreach ($nodes as $node) {
if (
@ -1182,6 +1190,9 @@ function generateR3($nodes, $graph)
$node->parent->name === 'R3Object' //i.e. extends Object directly
) {
$file = str_replace('src/r3', '.', $node->file);
foreach ($modifiedPaths as $modifiedPath) {
$file = preg_replace($modifiedPath, '', $file);
}
array_push($imports, "const " . $node->name . ' = require(\'' . $file . "');");
array_push($defines, 'R3.' . $node->nameSpaceClassName . ' = ' . $node->name);
}
@ -1193,7 +1204,7 @@ function generateR3($nodes, $graph)
$children = $graph->flatten($component);
foreach ($children as $child) {
array_push($defines, 'R3.' . $child->nameSpaceClassName . ' = ' . $child->name);
array_push($defines, 'R3.' . $child->nameSpaceClassName . ' = ' . $child->nameSpace . '.' . $child->nameSpaceClassName);
}
$r3File = 'src/r3/r3-r3.js';
@ -1523,8 +1534,23 @@ function buildNodeList($file)
$nameSpace = '';
$nameSpaceClassName = $class;
$needles = [
'Component',
'Entity',
'Runtime',
'System'
];
if ($extends) {
$nameSpaceClassName = str_replace($extends, '', $class);
foreach ($needles as $needle) {
if ($needle != $nameSpaceClassName) {
$nameSpaceClassName = str_replace($needle, '', $nameSpaceClassName);
}
}
$nameSpaceClassName = str_replace('R3', '', $nameSpaceClassName);
}

View File

@ -4,11 +4,11 @@ const R3 = require('r3-r3.js');
//GENERATED_INDEX_BODY_START
console.log('r3.js - version ' + R3.version + ' compiled ' + R3.compileDate);
R3.System.DOM.Start();
R3.System.Input.Start();
R3.System.Linking.Start();
R3.System.Runtime.Start();
R3.System.Socket.Start();
SystemDOM.Start();
SystemInput.Start();
SystemLinking.Start();
SystemRuntime.Start();
SystemSocket.Start();
//GENERATED_INDEX_BODY_END
//GENERATED_EXPORTS_START

View File

@ -2,6 +2,11 @@
const Component = require('./r3-component.js');
const DOM = require('./r3-d-o-m.js');
const Canvas = require('./r3-canvas.js');
const Graphics = require('./r3-graphics.js');
const Image = require('./r3-image.js');
const Material = require('./r3-material.js');
const Mesh = require('./r3-mesh.js');
const Texture = require('./r3-texture.js');
const Input = require('./r3-input.js');
const Touch = require('./r3-touch.js');
//GENERATED_IMPORTS_END
@ -9,6 +14,11 @@ const Touch = require('./r3-touch.js');
//GENERATED_INDEX_BODY_START
Component.DOM = DOM;
Component.DOM.Canvas = Canvas;
Component.Graphics = Graphics;
Component.Graphics.Image = Image;
Component.Graphics.Material = Material;
Component.Graphics.Mesh = Mesh;
Component.Graphics.Texture = Texture;
Component.Input = Input;
Component.Input.Touch = Touch;
//GENERATED_INDEX_BODY_END

View File

@ -0,0 +1,86 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const ComponentDOM = require('.././r3-component-d-o-m.js');
/**
GENERATED_INHERITED_START
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class ComponentCanvas extends ComponentDOM {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
//CUSTOM_OPTIONS_INIT_START
//CUSTOM_OPTIONS_INIT_END
Object.assign(this, options);
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
this.initialized();
} else {
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = ComponentCanvas;

View File

@ -0,0 +1,52 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Component = require('.././r3-component.js');
/**
GENERATED_INHERITED_START
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class ComponentDOM extends Component {
//GENERATED_CONSTRUCTOR_EXTENDS_START
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = ComponentDOM;

View File

@ -310,9 +310,14 @@ class Component extends R3Object {
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
Component.DOM = 0x0;
Component.CANVAS = 0x1;
Component.INPUT = 0x2;
Component.TOUCH = 0x3;
Component.MAX_COMPONENT = 0x4;
Component.GRAPHICS = 0x2;
Component.IMAGE = 0x3;
Component.MATERIAL = 0x4;
Component.MESH = 0x5;
Component.TEXTURE = 0x6;
Component.INPUT = 0x7;
Component.TOUCH = 0x8;
Component.MAX_COMPONENT = 0x9;
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START

View File

@ -0,0 +1,225 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Component = require('.././r3-component.js');
/**
GENERATED_INHERITED_START
Class R3.Event.Object.Component.Graphics
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from R3Object]
Inherited Properties:
- id (Default value Utils.RandomId(10))
- name (Default value 'Object ' + options.id)
- register (Default value true)
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Overrides for R3.Event.initialized()
Inherited Static Methods:
<no inherited static methods>
[Inherited from Component]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raises an event(s) which indicates that this object initialized
- createInstance()
Creates an instance of this object based on the current runtime
- dispose()
Disposes of this object by disposing the instance first.
- disposeInstance()
Disposes of the runtime instance.
- updateFromInstance()
Updates this object by copying the values of its instance into the current object.
- getRuntime()
Gets the current runtime object
Inherited Static Methods:
<no inherited static methods>
[Belonging to Graphics]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
- initialized()
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
Event.GRAPHICS_COMPONENT_INITIALIZED
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
initialized() - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an Event.GRAPHICS_COMPONENT_INITIALIZED
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class Graphics extends Component {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
//CUSTOM_OPTIONS_INIT_START
//CUSTOM_OPTIONS_INIT_END
Object.assign(this, options);
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
this.initialized();
} else {
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
/**
* initialized()
* - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
* Event.GRAPHICS_COMPONENT_INITIALIZED
*/
initialized() {
//GENERATED_INITIALIZED_METHOD_START
if (this.hasOwnProperty('callDepth')) {
delete this.callDepth;
} else {
console.warn('Multiple calls to initialized() - check your callstack');
}
//GENERATED_INITIALIZED_METHOD_END
//CUSTOM_INITIALIZED_METHOD_START
Event.Emit(Event.OBJECT_INITIALIZED, this);
Event.Emit(Event.COMPONENT_INITIALIZED, this);
Event.Emit(Event.GRAPHICS_COMPONENT_INITIALIZED, this);
//CUSTOM_INITIALIZED_METHOD_END
}
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = Graphics;

View File

@ -0,0 +1,219 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Graphics = require('.././r3-graphics.js');
/**
GENERATED_INHERITED_START
Class R3.Event.Object.Component.Graphics.Image
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from R3Object]
Inherited Properties:
- id (Default value Utils.RandomId(10))
- name (Default value 'Object ' + options.id)
- register (Default value true)
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Overrides for R3.Event.initialized()
Inherited Static Methods:
<no inherited static methods>
[Inherited from Component]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raises an event(s) which indicates that this object initialized
- createInstance()
Creates an instance of this object based on the current runtime
- dispose()
Disposes of this object by disposing the instance first.
- disposeInstance()
Disposes of the runtime instance.
- updateFromInstance()
Updates this object by copying the values of its instance into the current object.
- getRuntime()
Gets the current runtime object
Inherited Static Methods:
<no inherited static methods>
[Inherited from Graphics]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
Event.GRAPHICS_COMPONENT_INITIALIZED
Inherited Static Methods:
<no inherited static methods>
[Belonging to Image]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class Image extends Graphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
//CUSTOM_OPTIONS_INIT_START
//CUSTOM_OPTIONS_INIT_END
Object.assign(this, options);
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
this.initialized();
} else {
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = Image;

View File

@ -0,0 +1,219 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Graphics = require('.././r3-graphics.js');
/**
GENERATED_INHERITED_START
Class R3.Event.Object.Component.Graphics.Material
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from R3Object]
Inherited Properties:
- id (Default value Utils.RandomId(10))
- name (Default value 'Object ' + options.id)
- register (Default value true)
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Overrides for R3.Event.initialized()
Inherited Static Methods:
<no inherited static methods>
[Inherited from Component]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raises an event(s) which indicates that this object initialized
- createInstance()
Creates an instance of this object based on the current runtime
- dispose()
Disposes of this object by disposing the instance first.
- disposeInstance()
Disposes of the runtime instance.
- updateFromInstance()
Updates this object by copying the values of its instance into the current object.
- getRuntime()
Gets the current runtime object
Inherited Static Methods:
<no inherited static methods>
[Inherited from Graphics]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
Event.GRAPHICS_COMPONENT_INITIALIZED
Inherited Static Methods:
<no inherited static methods>
[Belonging to Material]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class Material extends Graphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
//CUSTOM_OPTIONS_INIT_START
//CUSTOM_OPTIONS_INIT_END
Object.assign(this, options);
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
this.initialized();
} else {
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = Material;

View File

@ -0,0 +1,219 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Graphics = require('.././r3-graphics.js');
/**
GENERATED_INHERITED_START
Class R3.Event.Object.Component.Graphics.Mesh
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from R3Object]
Inherited Properties:
- id (Default value Utils.RandomId(10))
- name (Default value 'Object ' + options.id)
- register (Default value true)
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Overrides for R3.Event.initialized()
Inherited Static Methods:
<no inherited static methods>
[Inherited from Component]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raises an event(s) which indicates that this object initialized
- createInstance()
Creates an instance of this object based on the current runtime
- dispose()
Disposes of this object by disposing the instance first.
- disposeInstance()
Disposes of the runtime instance.
- updateFromInstance()
Updates this object by copying the values of its instance into the current object.
- getRuntime()
Gets the current runtime object
Inherited Static Methods:
<no inherited static methods>
[Inherited from Graphics]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
Event.GRAPHICS_COMPONENT_INITIALIZED
Inherited Static Methods:
<no inherited static methods>
[Belonging to Mesh]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class Mesh extends Graphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
//CUSTOM_OPTIONS_INIT_START
//CUSTOM_OPTIONS_INIT_END
Object.assign(this, options);
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
this.initialized();
} else {
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = Mesh;

View File

@ -0,0 +1,219 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Graphics = require('.././r3-graphics.js');
/**
GENERATED_INHERITED_START
Class R3.Event.Object.Component.Graphics.Texture
[Inherited from Event]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raise an event(s) which indicates that this object initialized
- async(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Async()' passing it the arguments
- emit(eventId, data, clientCallback, clientErrorCallback)
Simply calls 'Emit()' passing it the arguments
- subscribe(eventId, callback)
Simply calls 'Subscribe()' passing it the arguments
Inherited Static Methods:
- Async(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
error as argument.
- Emit(eventId, data, clientCallback, clientErrorCallback)
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
the event result is obtained, passing it the result. If an exception occurs during execution, the
clientErrorCallback is called with the error as argument.
- Subscribe(eventId, callback)
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
[Inherited from R3Object]
Inherited Properties:
- id (Default value Utils.RandomId(10))
- name (Default value 'Object ' + options.id)
- register (Default value true)
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Overrides for R3.Event.initialized()
Inherited Static Methods:
<no inherited static methods>
[Inherited from Component]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
Should raises an event(s) which indicates that this object initialized
- createInstance()
Creates an instance of this object based on the current runtime
- dispose()
Disposes of this object by disposing the instance first.
- disposeInstance()
Disposes of the runtime instance.
- updateFromInstance()
Updates this object by copying the values of its instance into the current object.
- getRuntime()
Gets the current runtime object
Inherited Static Methods:
<no inherited static methods>
[Inherited from Graphics]
Inherited Properties:
<no inherited properties>
Inherited Static Properties:
<no inherited static properties>
Inherited Methods:
- initialized()
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
Event.GRAPHICS_COMPONENT_INITIALIZED
Inherited Static Methods:
<no inherited static methods>
[Belonging to Texture]
Properties:
<no properties>
Static Properties:
<no static properties>
Methods:
<no methods>
Static Methods:
<no static methods>
GENERATED_INHERITED_END
CUSTOM_OPTIONS_START
CUSTOM_OPTIONS_END
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
CUSTOM_LINKED_OBJECTS_START
CUSTOM_LINKED_OBJECTS_END
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
CUSTOM_METHODS_START
CUSTOM_METHODS_END
CUSTOM_STATIC_METHODS_START
CUSTOM_STATIC_METHODS_END
**/
class Texture extends Graphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
if (typeof options === 'undefined') {
options = {};
}
if (typeof options.callDepth === 'undefined') {
options.callDepth = 0;
} else {
options.callDepth++;
}
super(options);
//GENERATED_OPTIONS_INIT_START
//GENERATED_OPTIONS_INIT_END
//CUSTOM_OPTIONS_INIT_START
//CUSTOM_OPTIONS_INIT_END
Object.assign(this, options);
//CUSTOM_BEFORE_INIT_START
//CUSTOM_BEFORE_INIT_END
if (options.callDepth === 0) {
this.initialized();
} else {
options.callDepth--;
}
//CUSTOM_AFTER_INIT_START
//CUSTOM_AFTER_INIT_END
}
//GENERATED_CONSTRUCTOR_EXTENDS_END
//GENERATED_METHODS_START
//GENERATED_METHODS_END
//GENERATED_STATIC_METHODS_START
//GENERATED_STATIC_METHODS_END
//CUSTOM_IMPLEMENTATION_START
//CUSTOM_IMPLEMENTATION_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 = Texture;

View File

@ -350,28 +350,29 @@ Event.DOM_COMPONENT_INITIALIZED = 0x6;
Event.ENTITY_INITIALIZED = 0x7;
Event.GET_RUNTIME = 0x8;
Event.GET_WINDOW_SIZE = 0x9;
Event.INPUT_COMPONENT_INITIALIZED = 0xa;
Event.INSTANCE_CREATED = 0xb;
Event.INSTANCE_DISPOSED = 0xc;
Event.KEYBOARD_DOWN = 0xd;
Event.KEYBOARD_UP = 0xe;
Event.MOUSE_DOWN = 0xf;
Event.MOUSE_MOVE = 0x10;
Event.MOUSE_UP = 0x11;
Event.MOUSE_WHEEL = 0x12;
Event.OBJECT_CREATED = 0x13;
Event.OBJECT_INITIALIZED = 0x14;
Event.PAUSE = 0x15;
Event.PROJECT_INITIALIZED = 0x16;
Event.RESTART = 0x17;
Event.START = 0x18;
Event.TOUCH_CANCEL = 0x19;
Event.TOUCH_END = 0x1a;
Event.TOUCH_MOVE = 0x1b;
Event.TOUCH_START = 0x1c;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1d;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x1e;
Event.MAX_EVENTS = 0x1f;
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xa;
Event.INPUT_COMPONENT_INITIALIZED = 0xb;
Event.INSTANCE_CREATED = 0xc;
Event.INSTANCE_DISPOSED = 0xd;
Event.KEYBOARD_DOWN = 0xe;
Event.KEYBOARD_UP = 0xf;
Event.MOUSE_DOWN = 0x10;
Event.MOUSE_MOVE = 0x11;
Event.MOUSE_UP = 0x12;
Event.MOUSE_WHEEL = 0x13;
Event.OBJECT_CREATED = 0x14;
Event.OBJECT_INITIALIZED = 0x15;
Event.PAUSE = 0x16;
Event.PROJECT_INITIALIZED = 0x17;
Event.RESTART = 0x18;
Event.START = 0x19;
Event.TOUCH_CANCEL = 0x1a;
Event.TOUCH_END = 0x1b;
Event.TOUCH_MOVE = 0x1c;
Event.TOUCH_START = 0x1d;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1e;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x1f;
Event.MAX_EVENTS = 0x20;
Event.GetEventName = function(eventId) {
@ -385,27 +386,28 @@ Event.GetEventName = function(eventId) {
case 0x7 : return 'entity_initialized';
case 0x8 : return 'get_runtime';
case 0x9 : return 'get_window_size';
case 0xa : return 'input_component_initialized';
case 0xb : return 'instance_created';
case 0xc : return 'instance_disposed';
case 0xd : return 'keyboard_down';
case 0xe : return 'keyboard_up';
case 0xf : return 'mouse_down';
case 0x10 : return 'mouse_move';
case 0x11 : return 'mouse_up';
case 0x12 : return 'mouse_wheel';
case 0x13 : return 'object_created';
case 0x14 : return 'object_initialized';
case 0x15 : return 'pause';
case 0x16 : return 'project_initialized';
case 0x17 : return 'restart';
case 0x18 : return 'start';
case 0x19 : return 'touch_cancel';
case 0x1a : return 'touch_end';
case 0x1b : return 'touch_move';
case 0x1c : return 'touch_start';
case 0x1d : return 'update_from_instance_after';
case 0x1e : return 'update_from_instance_before';
case 0xa : return 'graphics_component_initialized';
case 0xb : return 'input_component_initialized';
case 0xc : return 'instance_created';
case 0xd : return 'instance_disposed';
case 0xe : return 'keyboard_down';
case 0xf : return 'keyboard_up';
case 0x10 : return 'mouse_down';
case 0x11 : return 'mouse_move';
case 0x12 : return 'mouse_up';
case 0x13 : return 'mouse_wheel';
case 0x14 : return 'object_created';
case 0x15 : return 'object_initialized';
case 0x16 : return 'pause';
case 0x17 : return 'project_initialized';
case 0x18 : return 'restart';
case 0x19 : return 'start';
case 0x1a : return 'touch_cancel';
case 0x1b : return 'touch_end';
case 0x1c : return 'touch_move';
case 0x1d : return 'touch_start';
case 0x1e : return 'update_from_instance_after';
case 0x1f : return 'update_from_instance_before';
default :
throw new Error('Event type not defined : ' + eventId);
}

View File

@ -1,16 +1,16 @@
class R3 {
static version = '2.0.464';
static compileDate = '2021 Sep 10 - 07:16:56 am';
static version = '2.0.488';
static compileDate = '2021 Sep 10 - 09:26:07 am';
}
//GENERATED_IMPORTS_START
const Entity = require('./r3-entity/r3-entity.js');
const System = require('./r3-system/r3-system.js');
const Entity = require('./r3-entity/');
const System = require('./r3-system/');
const Event = require('./r3-event.js');
const Utils = require('./r3-utils.js');
const Runtime = require('./r3-runtime/r3-runtime.js');
const Runtime = require('./r3-runtime/');
const R3Object = require('./r3-r3-object.js');
const Component = require('./r3-component/r3-component.js');
const Component = require('./r3-component/');
const Project = require('./r3-project.js');
//GENERATED_IMPORTS_END
@ -23,10 +23,15 @@ R3.Runtime = Runtime;
R3.Object = R3Object;
R3.Component = Component;
R3.Project = Project;
R3.DOM = DOM;
R3.Canvas = Canvas;
R3.Input = Input;
R3.Touch = Touch;
R3.DOM = Component.DOM;
R3.Canvas = Component.DOM.Canvas;
R3.Graphics = Component.Graphics;
R3.Image = Component.Graphics.Image;
R3.Material = Component.Graphics.Material;
R3.Mesh = Component.Graphics.Mesh;
R3.Texture = Component.Graphics.Texture;
R3.Input = Component.Input;
R3.Touch = Component.Input.Touch;
//GENERATED_DEFINES_END
//CUSTOM_CONVENIENT_DEFINES_START

View File

@ -1,34 +1,34 @@
//GENERATED_IMPORTS_START
const Runtime = require('./r3-runtime.js');
const Coder = require('./r3-coder.js');
const CodeMirror = require('./r3-code-mirror.js');
const Default = require('./r3-default.js');
const Document = require('./r3-document.js');
const GUI = require('./r3-g-u-i.js');
const ControlKit = require('./r3-control-kit.js');
const Graphics = require('./r3-graphics.js');
const Three = require('./r3-three.js');
const Physics = require('./r3-physics.js');
const Bullet = require('./r3-bullet.js');
const Socket = require('./r3-socket.js');
const Statistics = require('./r3-statistics.js');
const Stats = require('./r3-stats.js');
const RuntimeCoder = require('./r3-runtime-coder.js');
const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js');
const RuntimeDefault = require('./r3-runtime-default.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 RuntimeBullet = require('./r3-runtime-bullet.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.Coder = Coder;
Runtime.Coder.CodeMirror = CodeMirror;
Runtime.Default = Default;
Runtime.Default.Document = Document;
Runtime.GUI = GUI;
Runtime.GUI.ControlKit = ControlKit;
Runtime.Graphics = Graphics;
Runtime.Graphics.Three = Three;
Runtime.Physics = Physics;
Runtime.Physics.Bullet = Bullet;
Runtime.Socket = Socket;
Runtime.Statistics = Statistics;
Runtime.Statistics.Stats = Stats;
Runtime.Coder = RuntimeCoder;
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
Runtime.Default = RuntimeDefault;
Runtime.Default.Document = RuntimeDocument;
Runtime.GUI = RuntimeGUI;
Runtime.GUI.ControlKit = RuntimeControlKit;
Runtime.Graphics = RuntimeGraphics;
Runtime.Graphics.Three = RuntimeThree;
Runtime.Physics = RuntimePhysics;
Runtime.Physics.Bullet = RuntimeBullet;
Runtime.Socket = RuntimeSocket;
Runtime.Statistics = RuntimeStatistics;
Runtime.Statistics.Stats = RuntimeStats;
//GENERATED_INDEX_BODY_END
//GENERATED_EXPORTS_START

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Physics = require('.././r3-physics.js');
const RuntimePhysics = require('.././r3-runtime-physics.js');
/**
@ -64,7 +64,7 @@ const Physics = require('.././r3-physics.js');
<no inherited static methods>
[Inherited from Physics]
[Inherited from RuntimePhysics]
Inherited Properties:
@ -82,7 +82,7 @@ const Physics = require('.././r3-physics.js');
<no inherited static methods>
[Belonging to Bullet]
[Belonging to RuntimeBullet]
Properties:
@ -122,7 +122,7 @@ const Physics = require('.././r3-physics.js');
**/
class Bullet extends Physics {
class RuntimeBullet extends RuntimePhysics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -177,4 +177,4 @@ class Bullet extends Physics {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Bullet;
module.exports = RuntimeBullet;

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Coder = require('.././r3-coder.js');
const RuntimeCoder = require('.././r3-runtime-coder.js');
/**
@ -64,7 +64,7 @@ const Coder = require('.././r3-coder.js');
<no inherited static methods>
[Inherited from Coder]
[Inherited from RuntimeCoder]
Inherited Properties:
@ -82,7 +82,7 @@ const Coder = require('.././r3-coder.js');
<no inherited static methods>
[Belonging to CodeMirror]
[Belonging to RuntimeCodeMirror]
Properties:
@ -122,7 +122,7 @@ const Coder = require('.././r3-coder.js');
**/
class CodeMirror extends Coder {
class RuntimeCodeMirror extends RuntimeCoder {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -177,4 +177,4 @@ class CodeMirror extends Coder {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = CodeMirror;
module.exports = RuntimeCodeMirror;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to Coder]
[Belonging to RuntimeCoder]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class Coder extends Runtime {
class RuntimeCoder extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class Coder extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Coder;
module.exports = RuntimeCoder;

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const GUI = require('.././r3-g-u-i.js');
const RuntimeGUI = require('.././r3-runtime-g-u-i.js');
/**
@ -64,7 +64,7 @@ const GUI = require('.././r3-g-u-i.js');
<no inherited static methods>
[Inherited from GUI]
[Inherited from RuntimeGUI]
Inherited Properties:
@ -82,7 +82,7 @@ const GUI = require('.././r3-g-u-i.js');
<no inherited static methods>
[Belonging to ControlKit]
[Belonging to RuntimeControlKit]
Properties:
@ -122,7 +122,7 @@ const GUI = require('.././r3-g-u-i.js');
**/
class ControlKit extends GUI {
class RuntimeControlKit extends RuntimeGUI {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -177,4 +177,4 @@ class ControlKit extends GUI {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = ControlKit;
module.exports = RuntimeControlKit;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to Default]
[Belonging to RuntimeDefault]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class Default extends Runtime {
class RuntimeDefault extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class Default extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Default;
module.exports = RuntimeDefault;

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Default = require('.././r3-default.js');
const RuntimeDefault = require('.././r3-runtime-default.js');
/**
@ -64,7 +64,7 @@ const Default = require('.././r3-default.js');
<no inherited static methods>
[Inherited from Default]
[Inherited from RuntimeDefault]
Inherited Properties:
@ -82,7 +82,7 @@ const Default = require('.././r3-default.js');
<no inherited static methods>
[Belonging to Document]
[Belonging to RuntimeDocument]
Properties:
@ -122,7 +122,7 @@ const Default = require('.././r3-default.js');
**/
class Document extends Default {
class RuntimeDocument extends RuntimeDefault {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -177,4 +177,4 @@ class Document extends Default {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Document;
module.exports = RuntimeDocument;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to GUI]
[Belonging to RuntimeGUI]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class GUI extends Runtime {
class RuntimeGUI extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class GUI extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = GUI;
module.exports = RuntimeGUI;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to Graphics]
[Belonging to RuntimeGraphics]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class Graphics extends Runtime {
class RuntimeGraphics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class Graphics extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Graphics;
module.exports = RuntimeGraphics;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to Physics]
[Belonging to RuntimePhysics]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class Physics extends Runtime {
class RuntimePhysics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class Physics extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Physics;
module.exports = RuntimePhysics;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to Socket]
[Belonging to RuntimeSocket]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class Socket extends Runtime {
class RuntimeSocket extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class Socket extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Socket;
module.exports = RuntimeSocket;

View File

@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js');
<no inherited static methods>
[Belonging to Statistics]
[Belonging to RuntimeStatistics]
Properties:
@ -104,7 +104,7 @@ const Runtime = require('.././r3-runtime.js');
**/
class Statistics extends Runtime {
class RuntimeStatistics extends Runtime {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -159,4 +159,4 @@ class Statistics extends Runtime {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Statistics;
module.exports = RuntimeStatistics;

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Statistics = require('.././r3-statistics.js');
const RuntimeStatistics = require('.././r3-runtime-statistics.js');
/**
@ -64,7 +64,7 @@ const Statistics = require('.././r3-statistics.js');
<no inherited static methods>
[Inherited from Statistics]
[Inherited from RuntimeStatistics]
Inherited Properties:
@ -82,7 +82,7 @@ const Statistics = require('.././r3-statistics.js');
<no inherited static methods>
[Belonging to Stats]
[Belonging to RuntimeStats]
Properties:
@ -122,7 +122,7 @@ const Statistics = require('.././r3-statistics.js');
**/
class Stats extends Statistics {
class RuntimeStats extends RuntimeStatistics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -177,4 +177,4 @@ class Stats extends Statistics {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Stats;
module.exports = RuntimeStats;

View File

@ -1,6 +1,6 @@
const Event = require('.././r3-event');
const Utils = require('.././r3-utils');
const Graphics = require('.././r3-graphics.js');
const RuntimeGraphics = require('.././r3-runtime-graphics.js');
/**
@ -64,7 +64,7 @@ const Graphics = require('.././r3-graphics.js');
<no inherited static methods>
[Inherited from Graphics]
[Inherited from RuntimeGraphics]
Inherited Properties:
@ -82,7 +82,7 @@ const Graphics = require('.././r3-graphics.js');
<no inherited static methods>
[Belonging to Three]
[Belonging to RuntimeThree]
Properties:
@ -122,7 +122,7 @@ const Graphics = require('.././r3-graphics.js');
**/
class Three extends Graphics {
class RuntimeThree extends RuntimeGraphics {
//GENERATED_CONSTRUCTOR_EXTENDS_START
constructor(options) {
@ -177,4 +177,4 @@ class Three extends Graphics {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
module.exports = Three;
module.exports = RuntimeThree;

View File

@ -135,19 +135,19 @@ class Runtime extends Event {
}
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
Runtime.CODER = 0x0;
Runtime.CODE_MIRROR = 0x1;
Runtime.DEFAULT = 0x2;
Runtime.DOCUMENT = 0x3;
Runtime.GUI = 0x4;
Runtime.CONTROL_KIT = 0x5;
Runtime.GRAPHICS = 0x6;
Runtime.THREE = 0x7;
Runtime.PHYSICS = 0x8;
Runtime.BULLET = 0x9;
Runtime.SOCKET = 0xa;
Runtime.STATISTICS = 0xb;
Runtime.STATS = 0xc;
Runtime.RUNTIME_CODER = 0x0;
Runtime.RUNTIME_CODE_MIRROR = 0x1;
Runtime.RUNTIME_DEFAULT = 0x2;
Runtime.RUNTIME_DOCUMENT = 0x3;
Runtime.RUNTIME_GUI = 0x4;
Runtime.RUNTIME_CONTROL_KIT = 0x5;
Runtime.RUNTIME_GRAPHICS = 0x6;
Runtime.RUNTIME_THREE = 0x7;
Runtime.RUNTIME_PHYSICS = 0x8;
Runtime.RUNTIME_BULLET = 0x9;
Runtime.RUNTIME_SOCKET = 0xa;
Runtime.RUNTIME_STATISTICS = 0xb;
Runtime.RUNTIME_STATS = 0xc;
Runtime.MAX_RUNTIME = 0xd;
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END

View File

@ -1 +1 @@
2.0.464
2.0.490