updated components and entities
parent
a7f3caa49b
commit
342d298cbb
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.488';
|
||||
static compileDate = '2021 Sep 10 - 09:26:07 am';
|
||||
static version = '2.0.511';
|
||||
static compileDate = '2021 Sep 10 - 09:57:53 am';
|
||||
}
|
||||
|
||||
class Entity {
|
||||
|
@ -48,7 +48,7 @@ class Entity {
|
|||
|
||||
}
|
||||
|
||||
Entity.SLIDER = 0x0;
|
||||
Entity.ENTITY_SLIDER = 0x0;
|
||||
Entity.MAX_ENTITY = 0x1;
|
||||
|
||||
class System {
|
||||
|
@ -326,73 +326,75 @@ class Event {
|
|||
|
||||
}
|
||||
|
||||
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_INITIALIZED = 0x7;
|
||||
Event.GET_RUNTIME = 0x8;
|
||||
Event.GET_WINDOW_SIZE = 0x9;
|
||||
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.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_INITIALIZED = 0x8;
|
||||
Event.GET_RUNTIME = 0x9;
|
||||
Event.GET_WINDOW_SIZE = 0xa;
|
||||
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
|
||||
Event.INPUT_COMPONENT_INITIALIZED = 0xc;
|
||||
Event.INSTANCE_CREATED = 0xd;
|
||||
Event.INSTANCE_DISPOSED = 0xe;
|
||||
Event.KEYBOARD_DOWN = 0xf;
|
||||
Event.KEYBOARD_UP = 0x10;
|
||||
Event.MOUSE_DOWN = 0x11;
|
||||
Event.MOUSE_MOVE = 0x12;
|
||||
Event.MOUSE_UP = 0x13;
|
||||
Event.MOUSE_WHEEL = 0x14;
|
||||
Event.OBJECT_CREATED = 0x15;
|
||||
Event.OBJECT_INITIALIZED = 0x16;
|
||||
Event.PAUSE = 0x17;
|
||||
Event.PROJECT_INITIALIZED = 0x18;
|
||||
Event.RESTART = 0x19;
|
||||
Event.START = 0x1a;
|
||||
Event.TOUCH_CANCEL = 0x1b;
|
||||
Event.TOUCH_END = 0x1c;
|
||||
Event.TOUCH_MOVE = 0x1d;
|
||||
Event.TOUCH_START = 0x1e;
|
||||
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f;
|
||||
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20;
|
||||
Event.MAX_EVENTS = 0x21;
|
||||
|
||||
Event.GetEventName = function(eventId) {
|
||||
|
||||
switch(eventId) {
|
||||
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_initialized';
|
||||
case 0x8 : return 'get_runtime';
|
||||
case 0x9 : return 'get_window_size';
|
||||
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';
|
||||
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_initialized';
|
||||
case 0x9 : return 'get_runtime';
|
||||
case 0xa : return 'get_window_size';
|
||||
case 0xb : return 'graphics_component_initialized';
|
||||
case 0xc : return 'input_component_initialized';
|
||||
case 0xd : return 'instance_created';
|
||||
case 0xe : return 'instance_disposed';
|
||||
case 0xf : return 'keyboard_down';
|
||||
case 0x10 : return 'keyboard_up';
|
||||
case 0x11 : return 'mouse_down';
|
||||
case 0x12 : return 'mouse_move';
|
||||
case 0x13 : return 'mouse_up';
|
||||
case 0x14 : return 'mouse_wheel';
|
||||
case 0x15 : return 'object_created';
|
||||
case 0x16 : return 'object_initialized';
|
||||
case 0x17 : return 'pause';
|
||||
case 0x18 : return 'project_initialized';
|
||||
case 0x19 : return 'restart';
|
||||
case 0x1a : return 'start';
|
||||
case 0x1b : return 'touch_cancel';
|
||||
case 0x1c : return 'touch_end';
|
||||
case 0x1d : return 'touch_move';
|
||||
case 0x1e : return 'touch_start';
|
||||
case 0x1f : return 'update_from_instance_after';
|
||||
case 0x20 : return 'update_from_instance_before';
|
||||
default :
|
||||
throw new Error('Event type not defined : ' + eventId);
|
||||
}
|
||||
|
@ -1693,7 +1695,7 @@ class Utils {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Slider]
|
||||
[Belonging to EntitySlider]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -1713,7 +1715,7 @@ class Utils {
|
|||
|
||||
**/
|
||||
|
||||
class Slider extends Entity {
|
||||
class EntitySlider extends Entity {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -3669,15 +3671,15 @@ class Component extends R3Object {
|
|||
|
||||
}
|
||||
|
||||
Component.DOM = 0x0;
|
||||
Component.CANVAS = 0x1;
|
||||
Component.GRAPHICS = 0x2;
|
||||
Component.IMAGE = 0x3;
|
||||
Component.MATERIAL = 0x4;
|
||||
Component.MESH = 0x5;
|
||||
Component.TEXTURE = 0x6;
|
||||
Component.INPUT = 0x7;
|
||||
Component.TOUCH = 0x8;
|
||||
Component.COMPONENT_DOM = 0x0;
|
||||
Component.COMPONENT_CANVAS = 0x1;
|
||||
Component.COMPONENT_GRAPHICS = 0x2;
|
||||
Component.COMPONENT_IMAGE = 0x3;
|
||||
Component.COMPONENT_MATERIAL = 0x4;
|
||||
Component.COMPONENT_MESH = 0x5;
|
||||
Component.COMPONENT_TEXTURE = 0x6;
|
||||
Component.COMPONENT_INPUT = 0x7;
|
||||
Component.COMPONENT_TOUCH = 0x8;
|
||||
Component.MAX_COMPONENT = 0x9;
|
||||
|
||||
/**
|
||||
|
@ -4661,7 +4663,7 @@ class RuntimeStats extends RuntimeStatistics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to DOM]
|
||||
[Belonging to ComponentDOM]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -4683,7 +4685,7 @@ class RuntimeStats extends RuntimeStatistics {
|
|||
|
||||
**/
|
||||
|
||||
class DOM extends Component {
|
||||
class ComponentDOM extends Component {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -4827,7 +4829,7 @@ class DOM extends Component {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Graphics]
|
||||
[Belonging to ComponentGraphics]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -4849,7 +4851,7 @@ class DOM extends Component {
|
|||
|
||||
**/
|
||||
|
||||
class Graphics extends Component {
|
||||
class ComponentGraphics extends Component {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -4993,7 +4995,7 @@ class Graphics extends Component {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Input]
|
||||
[Belonging to ComponentInput]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -5015,7 +5017,7 @@ class Graphics extends Component {
|
|||
|
||||
**/
|
||||
|
||||
class Input extends Component {
|
||||
class ComponentInput extends Component {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -5159,7 +5161,7 @@ class Input extends Component {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from DOM]
|
||||
[Inherited from ComponentDOM]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -5179,7 +5181,7 @@ class Input extends Component {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Canvas]
|
||||
[Belonging to ComponentCanvas]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -5199,7 +5201,7 @@ class Input extends Component {
|
|||
|
||||
**/
|
||||
|
||||
class Canvas extends DOM {
|
||||
class ComponentCanvas extends ComponentDOM {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -5324,7 +5326,7 @@ class Canvas extends DOM {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Graphics]
|
||||
[Inherited from ComponentGraphics]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -5344,7 +5346,7 @@ class Canvas extends DOM {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Image]
|
||||
[Belonging to ComponentImage]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -5364,7 +5366,7 @@ class Canvas extends DOM {
|
|||
|
||||
**/
|
||||
|
||||
class Image extends Graphics {
|
||||
class ComponentImage extends ComponentGraphics {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -5489,7 +5491,7 @@ class Image extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Graphics]
|
||||
[Inherited from ComponentGraphics]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -5509,7 +5511,7 @@ class Image extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Material]
|
||||
[Belonging to ComponentMaterial]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -5529,7 +5531,7 @@ class Image extends Graphics {
|
|||
|
||||
**/
|
||||
|
||||
class Material extends Graphics {
|
||||
class ComponentMaterial extends ComponentGraphics {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -5654,7 +5656,7 @@ class Material extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Graphics]
|
||||
[Inherited from ComponentGraphics]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -5674,7 +5676,7 @@ class Material extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Mesh]
|
||||
[Belonging to ComponentMesh]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -5694,7 +5696,7 @@ class Material extends Graphics {
|
|||
|
||||
**/
|
||||
|
||||
class Mesh extends Graphics {
|
||||
class ComponentMesh extends ComponentGraphics {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -5819,7 +5821,7 @@ class Mesh extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Graphics]
|
||||
[Inherited from ComponentGraphics]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -5839,7 +5841,7 @@ class Mesh extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Texture]
|
||||
[Belonging to ComponentTexture]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -5859,7 +5861,7 @@ class Mesh extends Graphics {
|
|||
|
||||
**/
|
||||
|
||||
class Texture extends Graphics {
|
||||
class ComponentTexture extends ComponentGraphics {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -5984,7 +5986,7 @@ class Texture extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Input]
|
||||
[Inherited from ComponentInput]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -6004,7 +6006,7 @@ class Texture extends Graphics {
|
|||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Touch]
|
||||
[Belonging to ComponentTouch]
|
||||
|
||||
Properties:
|
||||
|
||||
|
@ -6024,7 +6026,7 @@ class Texture extends Graphics {
|
|||
|
||||
**/
|
||||
|
||||
class Touch extends Input {
|
||||
class ComponentTouch extends ComponentInput {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
|
@ -6060,29 +6062,29 @@ R3.Runtime = Runtime;
|
|||
R3.Object = R3Object;
|
||||
R3.Component = Component;
|
||||
R3.Project = Project;
|
||||
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;
|
||||
R3.DOM = ComponentDOM;
|
||||
R3.Canvas = ComponentCanvas;
|
||||
R3.Graphics = ComponentGraphics;
|
||||
R3.Image = ComponentImage;
|
||||
R3.Material = ComponentMaterial;
|
||||
R3.Mesh = ComponentMesh;
|
||||
R3.Texture = ComponentTexture;
|
||||
R3.Input = ComponentInput;
|
||||
R3.Touch = ComponentTouch;
|
||||
System.DOM = SystemDOM;
|
||||
System.Input = SystemInput;
|
||||
System.Linking = SystemLinking;
|
||||
System.Runtime = SystemRuntime;
|
||||
System.Socket = SystemSocket;
|
||||
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;
|
||||
Component.DOM = ComponentDOM;
|
||||
Component.DOM.Canvas = ComponentCanvas;
|
||||
Component.Graphics = ComponentGraphics;
|
||||
Component.Graphics.Image = ComponentImage;
|
||||
Component.Graphics.Material = ComponentMaterial;
|
||||
Component.Graphics.Mesh = ComponentMesh;
|
||||
Component.Graphics.Texture = ComponentTexture;
|
||||
Component.Input = ComponentInput;
|
||||
Component.Input.Touch = ComponentTouch;
|
||||
Runtime.Coder = RuntimeCoder;
|
||||
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
|
||||
Runtime.Default = RuntimeDefault;
|
||||
|
@ -6096,7 +6098,7 @@ Runtime.Physics.Bullet = RuntimeBullet;
|
|||
Runtime.Socket = RuntimeSocket;
|
||||
Runtime.Statistics = RuntimeStatistics;
|
||||
Runtime.Statistics.Stats = RuntimeStats;
|
||||
Entity.Slider = Slider;
|
||||
Entity.Slider = EntitySlider;
|
||||
console.log('r3.js - version ' + R3.version + ' compiled ' + R3.compileDate);
|
||||
SystemDOM.Start();
|
||||
SystemInput.Start();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "r3",
|
||||
"version" : "2.0.488",
|
||||
"version" : "2.0.511",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
|
2
r3.php
2
r3.php
|
@ -1204,7 +1204,7 @@ function generateR3($nodes, $graph)
|
|||
$children = $graph->flatten($component);
|
||||
|
||||
foreach ($children as $child) {
|
||||
array_push($defines, 'R3.' . $child->nameSpaceClassName . ' = ' . $child->nameSpace . '.' . $child->nameSpaceClassName);
|
||||
array_push($defines, 'R3.' . $child->nameSpaceClassName . ' = ' . $child->name);
|
||||
}
|
||||
|
||||
$r3File = 'src/r3/r3-r3.js';
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
//GENERATED_IMPORTS_START
|
||||
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');
|
||||
const ComponentDOM = require('./r3-component-d-o-m.js');
|
||||
const ComponentCanvas = require('./r3-component-canvas.js');
|
||||
const ComponentGraphics = require('./r3-component-graphics.js');
|
||||
const ComponentImage = require('./r3-component-image.js');
|
||||
const ComponentMaterial = require('./r3-component-material.js');
|
||||
const ComponentMesh = require('./r3-component-mesh.js');
|
||||
const ComponentTexture = require('./r3-component-texture.js');
|
||||
const ComponentInput = require('./r3-component-input.js');
|
||||
const ComponentTouch = require('./r3-component-touch.js');
|
||||
//GENERATED_IMPORTS_END
|
||||
|
||||
//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;
|
||||
Component.DOM = ComponentDOM;
|
||||
Component.DOM.Canvas = ComponentCanvas;
|
||||
Component.Graphics = ComponentGraphics;
|
||||
Component.Graphics.Image = ComponentImage;
|
||||
Component.Graphics.Material = ComponentMaterial;
|
||||
Component.Graphics.Mesh = ComponentMesh;
|
||||
Component.Graphics.Texture = ComponentTexture;
|
||||
Component.Input = ComponentInput;
|
||||
Component.Input.Touch = ComponentTouch;
|
||||
//GENERATED_INDEX_BODY_END
|
||||
|
||||
//GENERATED_EXPORTS_START
|
||||
|
|
|
@ -6,6 +6,139 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
|
|||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Object.Component.DOM.Canvas
|
||||
[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 ComponentDOM]
|
||||
|
||||
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.DOM_COMPONENT_INITIALIZED
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to ComponentCanvas]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
GENERATED_INHERITED_END
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
|
|
|
@ -6,6 +6,121 @@ const Component = require('.././r3-component.js');
|
|||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Object.Component.DOM
|
||||
[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 ComponentDOM]
|
||||
|
||||
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.DOM_COMPONENT_INITIALIZED
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
GENERATED_INHERITED_END
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
|
@ -21,6 +136,7 @@ const Component = require('.././r3-component.js');
|
|||
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.DOM_COMPONENT_INITIALIZED
|
||||
CUSTOM_METHODS_END
|
||||
|
||||
CUSTOM_STATIC_METHODS_START
|
||||
|
@ -31,9 +147,66 @@ const Component = require('.././r3-component.js');
|
|||
class ComponentDOM 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.DOM_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.DOM_COMPONENT_INITIALIZED, this);
|
||||
//CUSTOM_INITIALIZED_METHOD_END
|
||||
|
||||
}
|
||||
//GENERATED_METHODS_END
|
||||
|
||||
//GENERATED_STATIC_METHODS_START
|
||||
|
|
|
@ -308,15 +308,15 @@ class Component extends R3Object {
|
|||
}
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
Component.DOM = 0x0;
|
||||
Component.CANVAS = 0x1;
|
||||
Component.GRAPHICS = 0x2;
|
||||
Component.IMAGE = 0x3;
|
||||
Component.MATERIAL = 0x4;
|
||||
Component.MESH = 0x5;
|
||||
Component.TEXTURE = 0x6;
|
||||
Component.INPUT = 0x7;
|
||||
Component.TOUCH = 0x8;
|
||||
Component.COMPONENT_DOM = 0x0;
|
||||
Component.COMPONENT_CANVAS = 0x1;
|
||||
Component.COMPONENT_GRAPHICS = 0x2;
|
||||
Component.COMPONENT_IMAGE = 0x3;
|
||||
Component.COMPONENT_MATERIAL = 0x4;
|
||||
Component.COMPONENT_MESH = 0x5;
|
||||
Component.COMPONENT_TEXTURE = 0x6;
|
||||
Component.COMPONENT_INPUT = 0x7;
|
||||
Component.COMPONENT_TOUCH = 0x8;
|
||||
Component.MAX_COMPONENT = 0x9;
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -1,225 +0,0 @@
|
|||
const Event = require('.././r3-event');
|
||||
const Utils = require('.././r3-utils');
|
||||
const Component = require('.././r3-component.js');
|
||||
|
||||
/**
|
||||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Object.Component.DOM
|
||||
[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 DOM]
|
||||
|
||||
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.DOM_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.DOM_COMPONENT_INITIALIZED
|
||||
CUSTOM_METHODS_END
|
||||
|
||||
CUSTOM_STATIC_METHODS_START
|
||||
CUSTOM_STATIC_METHODS_END
|
||||
|
||||
**/
|
||||
|
||||
class DOM 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.DOM_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.DOM_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 = DOM;
|
|
@ -1,225 +0,0 @@
|
|||
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;
|
|
@ -1,219 +0,0 @@
|
|||
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;
|
|
@ -1,225 +0,0 @@
|
|||
const Event = require('.././r3-event');
|
||||
const Utils = require('.././r3-utils');
|
||||
const Component = require('.././r3-component.js');
|
||||
|
||||
/**
|
||||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Object.Component.Input
|
||||
[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 Input]
|
||||
|
||||
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.INPUT_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.INPUT_COMPONENT_INITIALIZED
|
||||
CUSTOM_METHODS_END
|
||||
|
||||
CUSTOM_STATIC_METHODS_START
|
||||
CUSTOM_STATIC_METHODS_END
|
||||
|
||||
**/
|
||||
|
||||
class Input 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.INPUT_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.INPUT_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 = Input;
|
|
@ -1,219 +0,0 @@
|
|||
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;
|
|
@ -1,219 +0,0 @@
|
|||
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;
|
|
@ -1,219 +0,0 @@
|
|||
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;
|
|
@ -1,219 +0,0 @@
|
|||
const Event = require('.././r3-event');
|
||||
const Utils = require('.././r3-utils');
|
||||
const Input = require('.././r3-input.js');
|
||||
|
||||
/**
|
||||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Object.Component.Input.Touch
|
||||
[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 Input]
|
||||
|
||||
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.INPUT_COMPONENT_INITIALIZED
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Touch]
|
||||
|
||||
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 Touch extends Input {
|
||||
|
||||
//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 = Touch;
|
|
@ -1,10 +1,10 @@
|
|||
//GENERATED_IMPORTS_START
|
||||
const Entity = require('./r3-entity.js');
|
||||
const Slider = require('./r3-slider.js');
|
||||
const EntitySlider = require('./r3-entity-slider.js');
|
||||
//GENERATED_IMPORTS_END
|
||||
|
||||
//GENERATED_INDEX_BODY_START
|
||||
Entity.Slider = Slider;
|
||||
Entity.Slider = EntitySlider;
|
||||
//GENERATED_INDEX_BODY_END
|
||||
|
||||
//GENERATED_EXPORTS_START
|
||||
|
|
|
@ -91,7 +91,7 @@ class Entity {
|
|||
}
|
||||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
Entity.SLIDER = 0x0;
|
||||
Entity.ENTITY_SLIDER = 0x0;
|
||||
Entity.MAX_ENTITY = 0x1;
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
|
|
|
@ -1,124 +0,0 @@
|
|||
const Event = require('.././r3-event');
|
||||
const Utils = require('.././r3-utils');
|
||||
const Entity = require('.././r3-entity.js');
|
||||
|
||||
/**
|
||||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Entity.Slider
|
||||
[Inherited from Entity]
|
||||
|
||||
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
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Slider]
|
||||
|
||||
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 Slider extends Entity {
|
||||
|
||||
//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 = Slider;
|
|
@ -341,73 +341,75 @@ class Event {
|
|||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
|
||||
//GENERATED_EVENTS_START
|
||||
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_INITIALIZED = 0x7;
|
||||
Event.GET_RUNTIME = 0x8;
|
||||
Event.GET_WINDOW_SIZE = 0x9;
|
||||
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.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_INITIALIZED = 0x8;
|
||||
Event.GET_RUNTIME = 0x9;
|
||||
Event.GET_WINDOW_SIZE = 0xa;
|
||||
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
|
||||
Event.INPUT_COMPONENT_INITIALIZED = 0xc;
|
||||
Event.INSTANCE_CREATED = 0xd;
|
||||
Event.INSTANCE_DISPOSED = 0xe;
|
||||
Event.KEYBOARD_DOWN = 0xf;
|
||||
Event.KEYBOARD_UP = 0x10;
|
||||
Event.MOUSE_DOWN = 0x11;
|
||||
Event.MOUSE_MOVE = 0x12;
|
||||
Event.MOUSE_UP = 0x13;
|
||||
Event.MOUSE_WHEEL = 0x14;
|
||||
Event.OBJECT_CREATED = 0x15;
|
||||
Event.OBJECT_INITIALIZED = 0x16;
|
||||
Event.PAUSE = 0x17;
|
||||
Event.PROJECT_INITIALIZED = 0x18;
|
||||
Event.RESTART = 0x19;
|
||||
Event.START = 0x1a;
|
||||
Event.TOUCH_CANCEL = 0x1b;
|
||||
Event.TOUCH_END = 0x1c;
|
||||
Event.TOUCH_MOVE = 0x1d;
|
||||
Event.TOUCH_START = 0x1e;
|
||||
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f;
|
||||
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20;
|
||||
Event.MAX_EVENTS = 0x21;
|
||||
|
||||
Event.GetEventName = function(eventId) {
|
||||
|
||||
switch(eventId) {
|
||||
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_initialized';
|
||||
case 0x8 : return 'get_runtime';
|
||||
case 0x9 : return 'get_window_size';
|
||||
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';
|
||||
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_initialized';
|
||||
case 0x9 : return 'get_runtime';
|
||||
case 0xa : return 'get_window_size';
|
||||
case 0xb : return 'graphics_component_initialized';
|
||||
case 0xc : return 'input_component_initialized';
|
||||
case 0xd : return 'instance_created';
|
||||
case 0xe : return 'instance_disposed';
|
||||
case 0xf : return 'keyboard_down';
|
||||
case 0x10 : return 'keyboard_up';
|
||||
case 0x11 : return 'mouse_down';
|
||||
case 0x12 : return 'mouse_move';
|
||||
case 0x13 : return 'mouse_up';
|
||||
case 0x14 : return 'mouse_wheel';
|
||||
case 0x15 : return 'object_created';
|
||||
case 0x16 : return 'object_initialized';
|
||||
case 0x17 : return 'pause';
|
||||
case 0x18 : return 'project_initialized';
|
||||
case 0x19 : return 'restart';
|
||||
case 0x1a : return 'start';
|
||||
case 0x1b : return 'touch_cancel';
|
||||
case 0x1c : return 'touch_end';
|
||||
case 0x1d : return 'touch_move';
|
||||
case 0x1e : return 'touch_start';
|
||||
case 0x1f : return 'update_from_instance_after';
|
||||
case 0x20 : return 'update_from_instance_before';
|
||||
default :
|
||||
throw new Error('Event type not defined : ' + eventId);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.488';
|
||||
static compileDate = '2021 Sep 10 - 09:26:07 am';
|
||||
static version = '2.0.511';
|
||||
static compileDate = '2021 Sep 10 - 09:57:53 am';
|
||||
}
|
||||
|
||||
//GENERATED_IMPORTS_START
|
||||
|
@ -23,15 +23,15 @@ R3.Runtime = Runtime;
|
|||
R3.Object = R3Object;
|
||||
R3.Component = Component;
|
||||
R3.Project = Project;
|
||||
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;
|
||||
R3.DOM = ComponentDOM;
|
||||
R3.Canvas = ComponentCanvas;
|
||||
R3.Graphics = ComponentGraphics;
|
||||
R3.Image = ComponentImage;
|
||||
R3.Material = ComponentMaterial;
|
||||
R3.Mesh = ComponentMesh;
|
||||
R3.Texture = ComponentTexture;
|
||||
R3.Input = ComponentInput;
|
||||
R3.Touch = ComponentTouch;
|
||||
//GENERATED_DEFINES_END
|
||||
|
||||
//CUSTOM_CONVENIENT_DEFINES_START
|
||||
|
|
Loading…
Reference in New Issue