diff --git a/.r3_history b/.r3_history index 5909611..53747f0 100644 --- a/.r3_history +++ b/.r3_history @@ -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 diff --git a/dist/r3.js b/dist/r3.js index 9667897..b90892e 100644 --- a/dist/r3.js +++ b/dist/r3.js @@ -1,6 +1,6 @@ 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'; } class Entity { @@ -335,28 +335,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) { @@ -370,27 +371,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); } @@ -2555,19 +2557,19 @@ class Runtime extends Event { } -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; /** @@ -2751,7 +2753,7 @@ class R3Object extends Event { - [Belonging to Coder] + [Belonging to RuntimeCoder] Properties: @@ -2771,7 +2773,7 @@ class R3Object extends Event { **/ -class Coder extends Runtime { +class RuntimeCoder extends Runtime { constructor(options) { @@ -2859,7 +2861,7 @@ class Coder extends Runtime { - [Belonging to Default] + [Belonging to RuntimeDefault] Properties: @@ -2879,7 +2881,7 @@ class Coder extends Runtime { **/ -class Default extends Runtime { +class RuntimeDefault extends Runtime { constructor(options) { @@ -2967,7 +2969,7 @@ class Default extends Runtime { - [Belonging to GUI] + [Belonging to RuntimeGUI] Properties: @@ -2987,7 +2989,7 @@ class Default extends Runtime { **/ -class GUI extends Runtime { +class RuntimeGUI extends Runtime { constructor(options) { @@ -3075,7 +3077,7 @@ class GUI extends Runtime { - [Belonging to Graphics] + [Belonging to RuntimeGraphics] Properties: @@ -3095,7 +3097,7 @@ class GUI extends Runtime { **/ -class Graphics extends Runtime { +class RuntimeGraphics extends Runtime { constructor(options) { @@ -3183,7 +3185,7 @@ class Graphics extends Runtime { - [Belonging to Physics] + [Belonging to RuntimePhysics] Properties: @@ -3203,7 +3205,7 @@ class Graphics extends Runtime { **/ -class Physics extends Runtime { +class RuntimePhysics extends Runtime { constructor(options) { @@ -3291,7 +3293,7 @@ class Physics extends Runtime { - [Belonging to Socket] + [Belonging to RuntimeSocket] Properties: @@ -3311,7 +3313,7 @@ class Physics extends Runtime { **/ -class Socket extends Runtime { +class RuntimeSocket extends Runtime { constructor(options) { @@ -3399,7 +3401,7 @@ class Socket extends Runtime { - [Belonging to Statistics] + [Belonging to RuntimeStatistics] Properties: @@ -3419,7 +3421,7 @@ class Socket extends Runtime { **/ -class Statistics extends Runtime { +class RuntimeStatistics extends Runtime { constructor(options) { @@ -3669,9 +3671,14 @@ class Component extends R3Object { 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; /** @@ -3861,7 +3868,7 @@ class Project extends R3Object { - [Inherited from Coder] + [Inherited from RuntimeCoder] Inherited Properties: @@ -3879,7 +3886,7 @@ class Project extends R3Object { - [Belonging to CodeMirror] + [Belonging to RuntimeCodeMirror] Properties: @@ -3899,7 +3906,7 @@ class Project extends R3Object { **/ -class CodeMirror extends Coder { +class RuntimeCodeMirror extends RuntimeCoder { constructor(options) { @@ -3987,7 +3994,7 @@ class CodeMirror extends Coder { - [Inherited from Default] + [Inherited from RuntimeDefault] Inherited Properties: @@ -4005,7 +4012,7 @@ class CodeMirror extends Coder { - [Belonging to Document] + [Belonging to RuntimeDocument] Properties: @@ -4025,7 +4032,7 @@ class CodeMirror extends Coder { **/ -class Document extends Default { +class RuntimeDocument extends RuntimeDefault { constructor(options) { @@ -4113,7 +4120,7 @@ class Document extends Default { - [Inherited from GUI] + [Inherited from RuntimeGUI] Inherited Properties: @@ -4131,7 +4138,7 @@ class Document extends Default { - [Belonging to ControlKit] + [Belonging to RuntimeControlKit] Properties: @@ -4151,7 +4158,7 @@ class Document extends Default { **/ -class ControlKit extends GUI { +class RuntimeControlKit extends RuntimeGUI { constructor(options) { @@ -4239,7 +4246,7 @@ class ControlKit extends GUI { - [Inherited from Graphics] + [Inherited from RuntimeGraphics] Inherited Properties: @@ -4257,7 +4264,7 @@ class ControlKit extends GUI { - [Belonging to Three] + [Belonging to RuntimeThree] Properties: @@ -4277,7 +4284,7 @@ class ControlKit extends GUI { **/ -class Three extends Graphics { +class RuntimeThree extends RuntimeGraphics { constructor(options) { @@ -4365,7 +4372,7 @@ class Three extends Graphics { - [Inherited from Physics] + [Inherited from RuntimePhysics] Inherited Properties: @@ -4383,7 +4390,7 @@ class Three extends Graphics { - [Belonging to Bullet] + [Belonging to RuntimeBullet] Properties: @@ -4403,7 +4410,7 @@ class Three extends Graphics { **/ -class Bullet extends Physics { +class RuntimeBullet extends RuntimePhysics { constructor(options) { @@ -4491,7 +4498,7 @@ class Bullet extends Physics { - [Inherited from Statistics] + [Inherited from RuntimeStatistics] Inherited Properties: @@ -4509,7 +4516,7 @@ class Bullet extends Physics { - [Belonging to Stats] + [Belonging to RuntimeStats] Properties: @@ -4529,7 +4536,7 @@ class Bullet extends Physics { **/ -class Stats extends Statistics { +class RuntimeStats extends RuntimeStatistics { constructor(options) { @@ -4723,6 +4730,172 @@ class DOM extends Component { } +/** + + Class R3.Event.Object.Component.Graphics + [Inherited from Event] + + Inherited Properties: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Belonging to Graphics] + + Properties: + + + + 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: + + + + **/ + +class Graphics extends Component { + + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + if (typeof options.callDepth === 'undefined') { + options.callDepth = 0; + } else { + options.callDepth++; + } + + super(options); + + Object.assign(this, options); + + if (options.callDepth === 0) { + this.initialized(); + } else { + options.callDepth--; + } + + } + + /** + * initialized() + * - In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an + * Event.GRAPHICS_COMPONENT_INITIALIZED + */ + initialized() { + + if (this.hasOwnProperty('callDepth')) { + delete this.callDepth; + } else { + console.warn('Multiple calls to initialized() - check your callstack'); + } + + Event.Emit(Event.OBJECT_INITIALIZED, this); + Event.Emit(Event.COMPONENT_INITIALIZED, this); + Event.Emit(Event.GRAPHICS_COMPONENT_INITIALIZED, this); + + } + +} + /** Class R3.Event.Object.Component.Input @@ -5054,6 +5227,666 @@ class Canvas extends DOM { } +/** + + Class R3.Event.Object.Component.Graphics.Image + [Inherited from Event] + + Inherited Properties: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Image] + + Properties: + + + + Static Properties: + + + + Methods: + + + + Static Methods: + + + + **/ + +class Image extends Graphics { + + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + if (typeof options.callDepth === 'undefined') { + options.callDepth = 0; + } else { + options.callDepth++; + } + + super(options); + + Object.assign(this, options); + + if (options.callDepth === 0) { + this.initialized(); + } else { + options.callDepth--; + } + + } + +} + +/** + + Class R3.Event.Object.Component.Graphics.Material + [Inherited from Event] + + Inherited Properties: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Material] + + Properties: + + + + Static Properties: + + + + Methods: + + + + Static Methods: + + + + **/ + +class Material extends Graphics { + + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + if (typeof options.callDepth === 'undefined') { + options.callDepth = 0; + } else { + options.callDepth++; + } + + super(options); + + Object.assign(this, options); + + if (options.callDepth === 0) { + this.initialized(); + } else { + options.callDepth--; + } + + } + +} + +/** + + Class R3.Event.Object.Component.Graphics.Mesh + [Inherited from Event] + + Inherited Properties: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Mesh] + + Properties: + + + + Static Properties: + + + + Methods: + + + + Static Methods: + + + + **/ + +class Mesh extends Graphics { + + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + if (typeof options.callDepth === 'undefined') { + options.callDepth = 0; + } else { + options.callDepth++; + } + + super(options); + + Object.assign(this, options); + + if (options.callDepth === 0) { + this.initialized(); + } else { + options.callDepth--; + } + + } + +} + +/** + + Class R3.Event.Object.Component.Graphics.Texture + [Inherited from Event] + + Inherited Properties: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Texture] + + Properties: + + + + Static Properties: + + + + Methods: + + + + Static Methods: + + + + **/ + +class Texture extends Graphics { + + constructor(options) { + + if (typeof options === 'undefined') { + options = {}; + } + + if (typeof options.callDepth === 'undefined') { + options.callDepth = 0; + } else { + options.callDepth++; + } + + super(options); + + Object.assign(this, options); + + if (options.callDepth === 0) { + this.initialized(); + } else { + options.callDepth--; + } + + } + +} + /** Class R3.Event.Object.Component.Input.Touch @@ -5227,10 +6060,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; System.DOM = SystemDOM; System.Input = SystemInput; System.Linking = SystemLinking; @@ -5238,25 +6076,30 @@ 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; -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; Entity.Slider = Slider; 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(); diff --git a/package.json b/package.json index f69af1b..f858276 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "r3", - "version" : "2.0.464", + "version" : "2.0.488", "description": "", "private": true, "dependencies": { diff --git a/r3.php b/r3.php index f139399..6e3d013 100755 --- a/r3.php +++ b/r3.php @@ -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); } diff --git a/src/r3/index.js b/src/r3/index.js index 7a9c5b6..621785b 100644 --- a/src/r3/index.js +++ b/src/r3/index.js @@ -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 diff --git a/src/r3/r3-component/index.js b/src/r3/r3-component/index.js index 6ec782d..1caaba6 100644 --- a/src/r3/r3-component/index.js +++ b/src/r3/r3-component/index.js @@ -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 diff --git a/src/r3/r3-component/r3-component-canvas.js b/src/r3/r3-component/r3-component-canvas.js new file mode 100644 index 0000000..98da981 --- /dev/null +++ b/src/r3/r3-component/r3-component-canvas.js @@ -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; diff --git a/src/r3/r3-component/r3-component-d-o-m.js b/src/r3/r3-component/r3-component-d-o-m.js new file mode 100644 index 0000000..3e48e6c --- /dev/null +++ b/src/r3/r3-component/r3-component-d-o-m.js @@ -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; diff --git a/src/r3/r3-component/r3-component.js b/src/r3/r3-component/r3-component.js index ebb4197..3684460 100644 --- a/src/r3/r3-component/r3-component.js +++ b/src/r3/r3-component/r3-component.js @@ -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 diff --git a/src/r3/r3-component/r3-graphics.js b/src/r3/r3-component/r3-graphics.js new file mode 100644 index 0000000..fa508f6 --- /dev/null +++ b/src/r3/r3-component/r3-graphics.js @@ -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: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Belonging to Graphics] + + Properties: + + + + 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: + + + + 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; diff --git a/src/r3/r3-component/r3-image.js b/src/r3/r3-component/r3-image.js new file mode 100644 index 0000000..5dc0d21 --- /dev/null +++ b/src/r3/r3-component/r3-image.js @@ -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: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Image] + + Properties: + + + + Static Properties: + + + + Methods: + + + + 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; diff --git a/src/r3/r3-component/r3-material.js b/src/r3/r3-component/r3-material.js new file mode 100644 index 0000000..7e5c0ca --- /dev/null +++ b/src/r3/r3-component/r3-material.js @@ -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: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Material] + + Properties: + + + + Static Properties: + + + + Methods: + + + + 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; diff --git a/src/r3/r3-component/r3-mesh.js b/src/r3/r3-component/r3-mesh.js new file mode 100644 index 0000000..a912dfd --- /dev/null +++ b/src/r3/r3-component/r3-mesh.js @@ -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: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Mesh] + + Properties: + + + + Static Properties: + + + + Methods: + + + + 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; diff --git a/src/r3/r3-component/r3-texture.js b/src/r3/r3-component/r3-texture.js new file mode 100644 index 0000000..5d7a879 --- /dev/null +++ b/src/r3/r3-component/r3-texture.js @@ -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: + + + + 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: + + + + Inherited Methods: + + - initialized() + Overrides for R3.Event.initialized() + + Inherited Static Methods: + + + + [Inherited from Component] + + Inherited Properties: + + + + 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: + + + + [Inherited from Graphics] + + Inherited Properties: + + + + 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: + + + + [Belonging to Texture] + + Properties: + + + + Static Properties: + + + + Methods: + + + + 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; diff --git a/src/r3/r3-event.js b/src/r3/r3-event.js index 3901214..3ab0d97 100644 --- a/src/r3/r3-event.js +++ b/src/r3/r3-event.js @@ -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); } diff --git a/src/r3/r3-r3.js b/src/r3/r3-r3.js index 3557e45..8bfbdfb 100644 --- a/src/r3/r3-r3.js +++ b/src/r3/r3-r3.js @@ -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 diff --git a/src/r3/r3-runtime/index.js b/src/r3/r3-runtime/index.js index 26f2650..7d2b51e 100644 --- a/src/r3/r3-runtime/index.js +++ b/src/r3/r3-runtime/index.js @@ -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 diff --git a/src/r3/r3-runtime/r3-bullet.js b/src/r3/r3-runtime/r3-runtime-bullet.js similarity index 94% rename from src/r3/r3-runtime/r3-bullet.js rename to src/r3/r3-runtime/r3-runtime-bullet.js index cf6d663..1d9817b 100644 --- a/src/r3/r3-runtime/r3-bullet.js +++ b/src/r3/r3-runtime/r3-runtime-bullet.js @@ -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'); - [Inherited from Physics] + [Inherited from RuntimePhysics] Inherited Properties: @@ -82,7 +82,7 @@ const Physics = require('.././r3-physics.js'); - [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; diff --git a/src/r3/r3-runtime/r3-code-mirror.js b/src/r3/r3-runtime/r3-runtime-code-mirror.js similarity index 94% rename from src/r3/r3-runtime/r3-code-mirror.js rename to src/r3/r3-runtime/r3-runtime-code-mirror.js index f5551bd..fe2dde5 100644 --- a/src/r3/r3-runtime/r3-code-mirror.js +++ b/src/r3/r3-runtime/r3-runtime-code-mirror.js @@ -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'); - [Inherited from Coder] + [Inherited from RuntimeCoder] Inherited Properties: @@ -82,7 +82,7 @@ const Coder = require('.././r3-coder.js'); - [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; diff --git a/src/r3/r3-runtime/r3-coder.js b/src/r3/r3-runtime/r3-runtime-coder.js similarity index 97% rename from src/r3/r3-runtime/r3-coder.js rename to src/r3/r3-runtime/r3-runtime-coder.js index ec766c1..125eeed 100644 --- a/src/r3/r3-runtime/r3-coder.js +++ b/src/r3/r3-runtime/r3-runtime-coder.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-control-kit.js b/src/r3/r3-runtime/r3-runtime-control-kit.js similarity index 94% rename from src/r3/r3-runtime/r3-control-kit.js rename to src/r3/r3-runtime/r3-runtime-control-kit.js index 8c4016d..97ebd61 100644 --- a/src/r3/r3-runtime/r3-control-kit.js +++ b/src/r3/r3-runtime/r3-runtime-control-kit.js @@ -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'); - [Inherited from GUI] + [Inherited from RuntimeGUI] Inherited Properties: @@ -82,7 +82,7 @@ const GUI = require('.././r3-g-u-i.js'); - [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; diff --git a/src/r3/r3-runtime/r3-default.js b/src/r3/r3-runtime/r3-runtime-default.js similarity index 97% rename from src/r3/r3-runtime/r3-default.js rename to src/r3/r3-runtime/r3-runtime-default.js index 01c29b7..681335c 100644 --- a/src/r3/r3-runtime/r3-default.js +++ b/src/r3/r3-runtime/r3-runtime-default.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-document.js b/src/r3/r3-runtime/r3-runtime-document.js similarity index 94% rename from src/r3/r3-runtime/r3-document.js rename to src/r3/r3-runtime/r3-runtime-document.js index 81f912d..d15ac42 100644 --- a/src/r3/r3-runtime/r3-document.js +++ b/src/r3/r3-runtime/r3-runtime-document.js @@ -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'); - [Inherited from Default] + [Inherited from RuntimeDefault] Inherited Properties: @@ -82,7 +82,7 @@ const Default = require('.././r3-default.js'); - [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; diff --git a/src/r3/r3-runtime/r3-g-u-i.js b/src/r3/r3-runtime/r3-runtime-g-u-i.js similarity index 97% rename from src/r3/r3-runtime/r3-g-u-i.js rename to src/r3/r3-runtime/r3-runtime-g-u-i.js index bf7e115..819a4a0 100644 --- a/src/r3/r3-runtime/r3-g-u-i.js +++ b/src/r3/r3-runtime/r3-runtime-g-u-i.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-graphics.js b/src/r3/r3-runtime/r3-runtime-graphics.js similarity index 97% rename from src/r3/r3-runtime/r3-graphics.js rename to src/r3/r3-runtime/r3-runtime-graphics.js index 07d5426..cd15fbd 100644 --- a/src/r3/r3-runtime/r3-graphics.js +++ b/src/r3/r3-runtime/r3-runtime-graphics.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-physics.js b/src/r3/r3-runtime/r3-runtime-physics.js similarity index 97% rename from src/r3/r3-runtime/r3-physics.js rename to src/r3/r3-runtime/r3-runtime-physics.js index c7e9644..62c5c22 100644 --- a/src/r3/r3-runtime/r3-physics.js +++ b/src/r3/r3-runtime/r3-runtime-physics.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-socket.js b/src/r3/r3-runtime/r3-runtime-socket.js similarity index 97% rename from src/r3/r3-runtime/r3-socket.js rename to src/r3/r3-runtime/r3-runtime-socket.js index 12d634b..0c0c27a 100644 --- a/src/r3/r3-runtime/r3-socket.js +++ b/src/r3/r3-runtime/r3-runtime-socket.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-statistics.js b/src/r3/r3-runtime/r3-runtime-statistics.js similarity index 96% rename from src/r3/r3-runtime/r3-statistics.js rename to src/r3/r3-runtime/r3-runtime-statistics.js index d836cde..5968f51 100644 --- a/src/r3/r3-runtime/r3-statistics.js +++ b/src/r3/r3-runtime/r3-runtime-statistics.js @@ -64,7 +64,7 @@ const Runtime = require('.././r3-runtime.js'); - [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; diff --git a/src/r3/r3-runtime/r3-stats.js b/src/r3/r3-runtime/r3-runtime-stats.js similarity index 94% rename from src/r3/r3-runtime/r3-stats.js rename to src/r3/r3-runtime/r3-runtime-stats.js index 0421bb2..eae18b9 100644 --- a/src/r3/r3-runtime/r3-stats.js +++ b/src/r3/r3-runtime/r3-runtime-stats.js @@ -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'); - [Inherited from Statistics] + [Inherited from RuntimeStatistics] Inherited Properties: @@ -82,7 +82,7 @@ const Statistics = require('.././r3-statistics.js'); - [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; diff --git a/src/r3/r3-runtime/r3-three.js b/src/r3/r3-runtime/r3-runtime-three.js similarity index 94% rename from src/r3/r3-runtime/r3-three.js rename to src/r3/r3-runtime/r3-runtime-three.js index 58fb19a..c83b4f5 100644 --- a/src/r3/r3-runtime/r3-three.js +++ b/src/r3/r3-runtime/r3-runtime-three.js @@ -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'); - [Inherited from Graphics] + [Inherited from RuntimeGraphics] Inherited Properties: @@ -82,7 +82,7 @@ const Graphics = require('.././r3-graphics.js'); - [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; diff --git a/src/r3/r3-runtime/r3-runtime.js b/src/r3/r3-runtime/r3-runtime.js index 891f25a..aa6ee70 100644 --- a/src/r3/r3-runtime/r3-runtime.js +++ b/src/r3/r3-runtime/r3-runtime.js @@ -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 diff --git a/version b/version index 920df30..026b958 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.464 \ No newline at end of file +2.0.490 \ No newline at end of file