updated entity base templates
parent
4f6b2bf6e2
commit
515eb631ac
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.645';
|
static version = '2.0.648';
|
||||||
static compileDate = '2021 Sep 13 - 09:34:27 am';
|
static compileDate = '2021 Sep 13 - 09:45:20 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
class Runtime {
|
class Runtime {
|
||||||
|
@ -304,83 +304,85 @@ class Event {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Event.COMPONENT_CREATED = 0x1;
|
Event.BEFORE_RENDER = 0x1;
|
||||||
Event.COMPONENT_INITIALIZED = 0x2;
|
Event.COMPONENT_CREATED = 0x2;
|
||||||
Event.CREATE_INSTANCE_BEFORE = 0x3;
|
Event.COMPONENT_INITIALIZED = 0x3;
|
||||||
Event.DISPOSE_INSTANCE = 0x4;
|
Event.CREATE_INSTANCE_BEFORE = 0x4;
|
||||||
Event.DISPOSE_OBJECT = 0x5;
|
Event.DISPOSE_INSTANCE = 0x5;
|
||||||
Event.DOM_COMPONENT_INITIALIZED = 0x6;
|
Event.DISPOSE_OBJECT = 0x6;
|
||||||
Event.ENTITY_CREATED = 0x7;
|
Event.DOM_COMPONENT_INITIALIZED = 0x7;
|
||||||
Event.ENTITY_INITIALIZED = 0x8;
|
Event.ENTITY_CREATED = 0x8;
|
||||||
Event.GET_RUNTIME = 0x9;
|
Event.ENTITY_INITIALIZED = 0x9;
|
||||||
Event.GET_WINDOW_SIZE = 0xa;
|
Event.GET_RUNTIME = 0xa;
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
|
Event.GET_WINDOW_SIZE = 0xb;
|
||||||
Event.INPUT_COMPONENT_INITIALIZED = 0xc;
|
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc;
|
||||||
Event.INSTANCE_CREATED = 0xd;
|
Event.INPUT_COMPONENT_INITIALIZED = 0xd;
|
||||||
Event.INSTANCE_DISPOSED = 0xe;
|
Event.INSTANCE_CREATED = 0xe;
|
||||||
Event.KEYBOARD_DOWN = 0xf;
|
Event.INSTANCE_DISPOSED = 0xf;
|
||||||
Event.KEYBOARD_UP = 0x10;
|
Event.KEYBOARD_DOWN = 0x10;
|
||||||
Event.MOUSE_DOWN = 0x11;
|
Event.KEYBOARD_UP = 0x11;
|
||||||
Event.MOUSE_MOVE = 0x12;
|
Event.MOUSE_DOWN = 0x12;
|
||||||
Event.MOUSE_UP = 0x13;
|
Event.MOUSE_MOVE = 0x13;
|
||||||
Event.MOUSE_WHEEL = 0x14;
|
Event.MOUSE_UP = 0x14;
|
||||||
Event.OBJECT_CREATED = 0x15;
|
Event.MOUSE_WHEEL = 0x15;
|
||||||
Event.OBJECT_INITIALIZED = 0x16;
|
Event.OBJECT_CREATED = 0x16;
|
||||||
Event.PAUSE = 0x17;
|
Event.OBJECT_INITIALIZED = 0x17;
|
||||||
Event.PROJECT_INITIALIZED = 0x18;
|
Event.PAUSE = 0x18;
|
||||||
Event.RESTART = 0x19;
|
Event.PROJECT_INITIALIZED = 0x19;
|
||||||
Event.START = 0x1a;
|
Event.RESTART = 0x1a;
|
||||||
Event.TOUCH_CANCEL = 0x1b;
|
Event.START = 0x1b;
|
||||||
Event.TOUCH_END = 0x1c;
|
Event.TOUCH_CANCEL = 0x1c;
|
||||||
Event.TOUCH_MOVE = 0x1d;
|
Event.TOUCH_END = 0x1d;
|
||||||
Event.TOUCH_START = 0x1e;
|
Event.TOUCH_MOVE = 0x1e;
|
||||||
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f;
|
Event.TOUCH_START = 0x1f;
|
||||||
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20;
|
Event.UPDATE_FROM_INSTANCE_AFTER = 0x20;
|
||||||
Event.UPDATE_INSTANCE_AFTER = 0x21;
|
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21;
|
||||||
Event.UPDATE_INSTANCE_BEFORE = 0x22;
|
Event.UPDATE_INSTANCE_AFTER = 0x22;
|
||||||
Event.UPDATE_INSTANCE_PROPERTY = 0x23;
|
Event.UPDATE_INSTANCE_BEFORE = 0x23;
|
||||||
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x24;
|
Event.UPDATE_INSTANCE_PROPERTY = 0x24;
|
||||||
Event.MAX_EVENTS = 0x25;
|
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25;
|
||||||
|
Event.MAX_EVENTS = 0x26;
|
||||||
|
|
||||||
Event.GetEventName = function(eventId) {
|
Event.GetEventName = function(eventId) {
|
||||||
|
|
||||||
switch(eventId) {
|
switch(eventId) {
|
||||||
case 0x1 : return 'component_created';
|
case 0x1 : return 'before_render';
|
||||||
case 0x2 : return 'component_initialized';
|
case 0x2 : return 'component_created';
|
||||||
case 0x3 : return 'create_instance_before';
|
case 0x3 : return 'component_initialized';
|
||||||
case 0x4 : return 'dispose_instance';
|
case 0x4 : return 'create_instance_before';
|
||||||
case 0x5 : return 'dispose_object';
|
case 0x5 : return 'dispose_instance';
|
||||||
case 0x6 : return 'dom_component_initialized';
|
case 0x6 : return 'dispose_object';
|
||||||
case 0x7 : return 'entity_created';
|
case 0x7 : return 'dom_component_initialized';
|
||||||
case 0x8 : return 'entity_initialized';
|
case 0x8 : return 'entity_created';
|
||||||
case 0x9 : return 'get_runtime';
|
case 0x9 : return 'entity_initialized';
|
||||||
case 0xa : return 'get_window_size';
|
case 0xa : return 'get_runtime';
|
||||||
case 0xb : return 'graphics_component_initialized';
|
case 0xb : return 'get_window_size';
|
||||||
case 0xc : return 'input_component_initialized';
|
case 0xc : return 'graphics_component_initialized';
|
||||||
case 0xd : return 'instance_created';
|
case 0xd : return 'input_component_initialized';
|
||||||
case 0xe : return 'instance_disposed';
|
case 0xe : return 'instance_created';
|
||||||
case 0xf : return 'keyboard_down';
|
case 0xf : return 'instance_disposed';
|
||||||
case 0x10 : return 'keyboard_up';
|
case 0x10 : return 'keyboard_down';
|
||||||
case 0x11 : return 'mouse_down';
|
case 0x11 : return 'keyboard_up';
|
||||||
case 0x12 : return 'mouse_move';
|
case 0x12 : return 'mouse_down';
|
||||||
case 0x13 : return 'mouse_up';
|
case 0x13 : return 'mouse_move';
|
||||||
case 0x14 : return 'mouse_wheel';
|
case 0x14 : return 'mouse_up';
|
||||||
case 0x15 : return 'object_created';
|
case 0x15 : return 'mouse_wheel';
|
||||||
case 0x16 : return 'object_initialized';
|
case 0x16 : return 'object_created';
|
||||||
case 0x17 : return 'pause';
|
case 0x17 : return 'object_initialized';
|
||||||
case 0x18 : return 'project_initialized';
|
case 0x18 : return 'pause';
|
||||||
case 0x19 : return 'restart';
|
case 0x19 : return 'project_initialized';
|
||||||
case 0x1a : return 'start';
|
case 0x1a : return 'restart';
|
||||||
case 0x1b : return 'touch_cancel';
|
case 0x1b : return 'start';
|
||||||
case 0x1c : return 'touch_end';
|
case 0x1c : return 'touch_cancel';
|
||||||
case 0x1d : return 'touch_move';
|
case 0x1d : return 'touch_end';
|
||||||
case 0x1e : return 'touch_start';
|
case 0x1e : return 'touch_move';
|
||||||
case 0x1f : return 'update_from_instance_after';
|
case 0x1f : return 'touch_start';
|
||||||
case 0x20 : return 'update_from_instance_before';
|
case 0x20 : return 'update_from_instance_after';
|
||||||
case 0x21 : return 'update_instance_after';
|
case 0x21 : return 'update_from_instance_before';
|
||||||
case 0x22 : return 'update_instance_before';
|
case 0x22 : return 'update_instance_after';
|
||||||
case 0x23 : return 'update_instance_property';
|
case 0x23 : return 'update_instance_before';
|
||||||
case 0x24 : return 'update_property_from_instance';
|
case 0x24 : return 'update_instance_property';
|
||||||
|
case 0x25 : return 'update_property_from_instance';
|
||||||
default :
|
default :
|
||||||
throw new Error('Event type not defined : ' + eventId);
|
throw new Error('Event type not defined : ' + eventId);
|
||||||
}
|
}
|
||||||
|
@ -3787,13 +3789,25 @@ class RuntimeStats extends RuntimeStatistics {
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialize()
|
<no methods>
|
||||||
Overrides for R3.Event.R3Object.initialize()
|
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
<no static methods>
|
<no static methods>
|
||||||
|
|
||||||
|
TEMPLATE_OPTIONS_START
|
||||||
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
|
TEMPLATE_STATIC_OPTIONS_START
|
||||||
|
TEMPLATE_STATIC_OPTIONS_END
|
||||||
|
|
||||||
|
TEMPLATE_METHODS_START
|
||||||
|
initialize() - Should raises an event(s) which indicates that this object initialized
|
||||||
|
TEMPLATE_METHODS_END
|
||||||
|
|
||||||
|
TEMPLATE_STATIC_METHODS_START
|
||||||
|
TEMPLATE_STATIC_METHODS_END
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class Entity extends R3Object {
|
class Entity extends R3Object {
|
||||||
|
@ -3826,7 +3840,7 @@ class Entity extends R3Object {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialize()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raises an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialize() {
|
initialize() {
|
||||||
|
|
||||||
|
@ -4299,8 +4313,7 @@ class Project extends R3Object {
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialize()
|
<no inherited methods>
|
||||||
Overrides for R3.Event.R3Object.initialize()
|
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version" : "2.0.645",
|
"version" : "2.0.648",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -79,8 +79,7 @@ const Entity = require('.././r3-entity.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialize()
|
<no inherited methods>
|
||||||
Overrides for R3.Event.R3Object.initialize()
|
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
|
|
@ -79,8 +79,7 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- initialize()
|
<no methods>
|
||||||
Overrides for R3.Event.R3Object.initialize()
|
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -88,13 +87,28 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
|
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
|
TEMPLATE_OPTIONS_START
|
||||||
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
|
TEMPLATE_STATIC_OPTIONS_START
|
||||||
|
TEMPLATE_STATIC_OPTIONS_END
|
||||||
|
|
||||||
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
|
TEMPLATE_METHODS_START
|
||||||
|
initialize() - Should raises an event(s) which indicates that this object initialized
|
||||||
|
TEMPLATE_METHODS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
initialize() - Should raise an event(s) which indicates that this object initialized
|
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
|
TEMPLATE_STATIC_METHODS_START
|
||||||
|
TEMPLATE_STATIC_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
CUSTOM_STATIC_METHODS_END
|
CUSTOM_STATIC_METHODS_END
|
||||||
|
|
||||||
|
@ -119,6 +133,9 @@ class Entity extends R3Object {
|
||||||
|
|
||||||
this.emit(Event.ENTITY_CREATED, this);
|
this.emit(Event.ENTITY_CREATED, this);
|
||||||
|
|
||||||
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
@ -141,14 +158,11 @@ class Entity extends R3Object {
|
||||||
}
|
}
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
//CUSTOM_IMPLEMENTATION_START
|
//GENERATED_TEMPLATE_METHODS_START
|
||||||
//CUSTOM_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
//GENERATED_METHODS_START
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialize()
|
* initialize()
|
||||||
* - Should raise an event(s) which indicates that this object initialized
|
* - Should raises an event(s) which indicates that this object initialized
|
||||||
*/
|
*/
|
||||||
initialize() {
|
initialize() {
|
||||||
|
|
||||||
|
@ -167,13 +181,28 @@ class Entity extends R3Object {
|
||||||
//CUSTOM_INITIALIZE_METHOD_END
|
//CUSTOM_INITIALIZE_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//GENERATED_TEMPLATE_METHODS_END
|
||||||
|
|
||||||
|
//GENERATED_METHODS_START
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
||||||
|
//GENERATED_TEMPLATE_STATIC_METHODS_START
|
||||||
|
//GENERATED_TEMPLATE_STATIC_METHODS_END
|
||||||
|
|
||||||
//GENERATED_STATIC_METHODS_START
|
//GENERATED_STATIC_METHODS_START
|
||||||
//GENERATED_STATIC_METHODS_END
|
//GENERATED_STATIC_METHODS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPLEMENTATION_START
|
||||||
|
//CUSTOM_IMPLEMENTATION_END
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
Entity.ENTITY_SLIDER = 0x0;
|
Entity.ENTITY_SLIDER = 0x0;
|
||||||
Entity.MAX_ENTITY = 0x1;
|
Entity.MAX_ENTITY = 0x1;
|
||||||
|
|
|
@ -342,83 +342,85 @@ class Event {
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
||||||
//GENERATED_EVENTS_START
|
//GENERATED_EVENTS_START
|
||||||
Event.COMPONENT_CREATED = 0x1;
|
Event.BEFORE_RENDER = 0x1;
|
||||||
Event.COMPONENT_INITIALIZED = 0x2;
|
Event.COMPONENT_CREATED = 0x2;
|
||||||
Event.CREATE_INSTANCE_BEFORE = 0x3;
|
Event.COMPONENT_INITIALIZED = 0x3;
|
||||||
Event.DISPOSE_INSTANCE = 0x4;
|
Event.CREATE_INSTANCE_BEFORE = 0x4;
|
||||||
Event.DISPOSE_OBJECT = 0x5;
|
Event.DISPOSE_INSTANCE = 0x5;
|
||||||
Event.DOM_COMPONENT_INITIALIZED = 0x6;
|
Event.DISPOSE_OBJECT = 0x6;
|
||||||
Event.ENTITY_CREATED = 0x7;
|
Event.DOM_COMPONENT_INITIALIZED = 0x7;
|
||||||
Event.ENTITY_INITIALIZED = 0x8;
|
Event.ENTITY_CREATED = 0x8;
|
||||||
Event.GET_RUNTIME = 0x9;
|
Event.ENTITY_INITIALIZED = 0x9;
|
||||||
Event.GET_WINDOW_SIZE = 0xa;
|
Event.GET_RUNTIME = 0xa;
|
||||||
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
|
Event.GET_WINDOW_SIZE = 0xb;
|
||||||
Event.INPUT_COMPONENT_INITIALIZED = 0xc;
|
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc;
|
||||||
Event.INSTANCE_CREATED = 0xd;
|
Event.INPUT_COMPONENT_INITIALIZED = 0xd;
|
||||||
Event.INSTANCE_DISPOSED = 0xe;
|
Event.INSTANCE_CREATED = 0xe;
|
||||||
Event.KEYBOARD_DOWN = 0xf;
|
Event.INSTANCE_DISPOSED = 0xf;
|
||||||
Event.KEYBOARD_UP = 0x10;
|
Event.KEYBOARD_DOWN = 0x10;
|
||||||
Event.MOUSE_DOWN = 0x11;
|
Event.KEYBOARD_UP = 0x11;
|
||||||
Event.MOUSE_MOVE = 0x12;
|
Event.MOUSE_DOWN = 0x12;
|
||||||
Event.MOUSE_UP = 0x13;
|
Event.MOUSE_MOVE = 0x13;
|
||||||
Event.MOUSE_WHEEL = 0x14;
|
Event.MOUSE_UP = 0x14;
|
||||||
Event.OBJECT_CREATED = 0x15;
|
Event.MOUSE_WHEEL = 0x15;
|
||||||
Event.OBJECT_INITIALIZED = 0x16;
|
Event.OBJECT_CREATED = 0x16;
|
||||||
Event.PAUSE = 0x17;
|
Event.OBJECT_INITIALIZED = 0x17;
|
||||||
Event.PROJECT_INITIALIZED = 0x18;
|
Event.PAUSE = 0x18;
|
||||||
Event.RESTART = 0x19;
|
Event.PROJECT_INITIALIZED = 0x19;
|
||||||
Event.START = 0x1a;
|
Event.RESTART = 0x1a;
|
||||||
Event.TOUCH_CANCEL = 0x1b;
|
Event.START = 0x1b;
|
||||||
Event.TOUCH_END = 0x1c;
|
Event.TOUCH_CANCEL = 0x1c;
|
||||||
Event.TOUCH_MOVE = 0x1d;
|
Event.TOUCH_END = 0x1d;
|
||||||
Event.TOUCH_START = 0x1e;
|
Event.TOUCH_MOVE = 0x1e;
|
||||||
Event.UPDATE_FROM_INSTANCE_AFTER = 0x1f;
|
Event.TOUCH_START = 0x1f;
|
||||||
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x20;
|
Event.UPDATE_FROM_INSTANCE_AFTER = 0x20;
|
||||||
Event.UPDATE_INSTANCE_AFTER = 0x21;
|
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21;
|
||||||
Event.UPDATE_INSTANCE_BEFORE = 0x22;
|
Event.UPDATE_INSTANCE_AFTER = 0x22;
|
||||||
Event.UPDATE_INSTANCE_PROPERTY = 0x23;
|
Event.UPDATE_INSTANCE_BEFORE = 0x23;
|
||||||
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x24;
|
Event.UPDATE_INSTANCE_PROPERTY = 0x24;
|
||||||
Event.MAX_EVENTS = 0x25;
|
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25;
|
||||||
|
Event.MAX_EVENTS = 0x26;
|
||||||
|
|
||||||
Event.GetEventName = function(eventId) {
|
Event.GetEventName = function(eventId) {
|
||||||
|
|
||||||
switch(eventId) {
|
switch(eventId) {
|
||||||
case 0x1 : return 'component_created';
|
case 0x1 : return 'before_render';
|
||||||
case 0x2 : return 'component_initialized';
|
case 0x2 : return 'component_created';
|
||||||
case 0x3 : return 'create_instance_before';
|
case 0x3 : return 'component_initialized';
|
||||||
case 0x4 : return 'dispose_instance';
|
case 0x4 : return 'create_instance_before';
|
||||||
case 0x5 : return 'dispose_object';
|
case 0x5 : return 'dispose_instance';
|
||||||
case 0x6 : return 'dom_component_initialized';
|
case 0x6 : return 'dispose_object';
|
||||||
case 0x7 : return 'entity_created';
|
case 0x7 : return 'dom_component_initialized';
|
||||||
case 0x8 : return 'entity_initialized';
|
case 0x8 : return 'entity_created';
|
||||||
case 0x9 : return 'get_runtime';
|
case 0x9 : return 'entity_initialized';
|
||||||
case 0xa : return 'get_window_size';
|
case 0xa : return 'get_runtime';
|
||||||
case 0xb : return 'graphics_component_initialized';
|
case 0xb : return 'get_window_size';
|
||||||
case 0xc : return 'input_component_initialized';
|
case 0xc : return 'graphics_component_initialized';
|
||||||
case 0xd : return 'instance_created';
|
case 0xd : return 'input_component_initialized';
|
||||||
case 0xe : return 'instance_disposed';
|
case 0xe : return 'instance_created';
|
||||||
case 0xf : return 'keyboard_down';
|
case 0xf : return 'instance_disposed';
|
||||||
case 0x10 : return 'keyboard_up';
|
case 0x10 : return 'keyboard_down';
|
||||||
case 0x11 : return 'mouse_down';
|
case 0x11 : return 'keyboard_up';
|
||||||
case 0x12 : return 'mouse_move';
|
case 0x12 : return 'mouse_down';
|
||||||
case 0x13 : return 'mouse_up';
|
case 0x13 : return 'mouse_move';
|
||||||
case 0x14 : return 'mouse_wheel';
|
case 0x14 : return 'mouse_up';
|
||||||
case 0x15 : return 'object_created';
|
case 0x15 : return 'mouse_wheel';
|
||||||
case 0x16 : return 'object_initialized';
|
case 0x16 : return 'object_created';
|
||||||
case 0x17 : return 'pause';
|
case 0x17 : return 'object_initialized';
|
||||||
case 0x18 : return 'project_initialized';
|
case 0x18 : return 'pause';
|
||||||
case 0x19 : return 'restart';
|
case 0x19 : return 'project_initialized';
|
||||||
case 0x1a : return 'start';
|
case 0x1a : return 'restart';
|
||||||
case 0x1b : return 'touch_cancel';
|
case 0x1b : return 'start';
|
||||||
case 0x1c : return 'touch_end';
|
case 0x1c : return 'touch_cancel';
|
||||||
case 0x1d : return 'touch_move';
|
case 0x1d : return 'touch_end';
|
||||||
case 0x1e : return 'touch_start';
|
case 0x1e : return 'touch_move';
|
||||||
case 0x1f : return 'update_from_instance_after';
|
case 0x1f : return 'touch_start';
|
||||||
case 0x20 : return 'update_from_instance_before';
|
case 0x20 : return 'update_from_instance_after';
|
||||||
case 0x21 : return 'update_instance_after';
|
case 0x21 : return 'update_from_instance_before';
|
||||||
case 0x22 : return 'update_instance_before';
|
case 0x22 : return 'update_instance_after';
|
||||||
case 0x23 : return 'update_instance_property';
|
case 0x23 : return 'update_instance_before';
|
||||||
case 0x24 : return 'update_property_from_instance';
|
case 0x24 : return 'update_instance_property';
|
||||||
|
case 0x25 : return 'update_property_from_instance';
|
||||||
default :
|
default :
|
||||||
throw new Error('Event type not defined : ' + eventId);
|
throw new Error('Event type not defined : ' + eventId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.645';
|
static version = '2.0.648';
|
||||||
static compileDate = '2021 Sep 13 - 09:34:27 am';
|
static compileDate = '2021 Sep 13 - 09:45:20 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_IMPORTS_START
|
//GENERATED_IMPORTS_START
|
||||||
|
|
|
@ -16,7 +16,6 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
TEMPLATE_STATIC_OPTIONS_START
|
TEMPLATE_STATIC_OPTIONS_START
|
||||||
StaticOptionTest=true - A static test option
|
|
||||||
TEMPLATE_STATIC_OPTIONS_END
|
TEMPLATE_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
@ -34,7 +33,6 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
TEMPLATE_STATIC_METHODS_START
|
TEMPLATE_STATIC_METHODS_START
|
||||||
Test() - A static template Test method
|
|
||||||
TEMPLATE_STATIC_METHODS_END
|
TEMPLATE_STATIC_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
|
|
@ -8,13 +8,28 @@ const R3Object = require('.././r3-r3-object.js');
|
||||||
|
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
|
TEMPLATE_OPTIONS_START
|
||||||
|
TEMPLATE_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
|
TEMPLATE_STATIC_OPTIONS_START
|
||||||
|
TEMPLATE_STATIC_OPTIONS_END
|
||||||
|
|
||||||
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
|
TEMPLATE_METHODS_START
|
||||||
|
initialize() - Should raises an event(s) which indicates that this object initialized
|
||||||
|
TEMPLATE_METHODS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
initialize() - Should raise an event(s) which indicates that this object initialized
|
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
|
TEMPLATE_STATIC_METHODS_START
|
||||||
|
TEMPLATE_STATIC_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
CUSTOM_STATIC_METHODS_END
|
CUSTOM_STATIC_METHODS_END
|
||||||
|
|
||||||
|
@ -25,17 +40,29 @@ class CLASS_NAME extends R3Object {
|
||||||
//GENERATED_CONSTRUCTOR_START
|
//GENERATED_CONSTRUCTOR_START
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
//CUSTOM_IMPLEMENTATION_START
|
//GENERATED_TEMPLATE_METHODS_START
|
||||||
//CUSTOM_IMPLEMENTATION_END
|
//GENERATED_TEMPLATE_METHODS_END
|
||||||
|
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
||||||
|
//GENERATED_TEMPLATE_STATIC_METHODS_START
|
||||||
|
//GENERATED_TEMPLATE_STATIC_METHODS_END
|
||||||
|
|
||||||
//GENERATED_STATIC_METHODS_START
|
//GENERATED_STATIC_METHODS_START
|
||||||
//GENERATED_STATIC_METHODS_END
|
//GENERATED_STATIC_METHODS_END
|
||||||
|
|
||||||
|
//CUSTOM_IMPLEMENTATION_START
|
||||||
|
//CUSTOM_IMPLEMENTATION_END
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
|
|
||||||
this.emit(Event.ENTITY_CREATED, this);
|
this.emit(Event.ENTITY_CREATED, this);
|
||||||
|
|
||||||
|
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
||||||
|
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue