From 6cc5fa642e96242c30fc3e046c5481e638afa5ed Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 11 Feb 2018 17:14:47 +0100 Subject: [PATCH] remove old components --- src/game-lib-a-component-a.js | 42 +++++++++++++++--------------- src/game-lib-d3-particle-engine.js | 2 ++ 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/game-lib-a-component-a.js b/src/game-lib-a-component-a.js index d672570..709f0cb 100644 --- a/src/game-lib-a-component-a.js +++ b/src/game-lib-a-component-a.js @@ -262,9 +262,9 @@ GameLib.Component.STATS = 0x1d; GameLib.Component.GUI = 0x1e; GameLib.Component.IMAGE = 0x1f; GameLib.Component.ENTITY = 0x20; -GameLib.Component.MESH_SPHERE = 0x21; -GameLib.Component.MESH_PLANE = 0x22; -GameLib.Component.MESH_CURVE = 0x23; +//GameLib.Component.MESH_SPHERE = 0x21; +//GameLib.Component.MESH_PLANE = 0x22; +//GameLib.Component.MESH_CURVE = 0x23; GameLib.Component.PHYSICS_WORLD = 0x24; GameLib.Component.BROADPHASE = 0x25; GameLib.Component.SOLVER = 0x26; @@ -288,12 +288,12 @@ GameLib.Component.CLOCK = 0x37; GameLib.Component.ANIMATION = 0x38; GameLib.Component.CONTROLS_KEYBOARD = 0x39; GameLib.Component.CONTROLS_MOUSE = 0x3a; -GameLib.Component.MESH_TEXT = 0x3b; +//GameLib.Component.MESH_TEXT = 0x3b; GameLib.Component.FONT = 0x3c; GameLib.Component.CANVAS = 0x3d; GameLib.Component.BONE = 0x3e; -GameLib.Component.MESH_BOX = 0x3f; -GameLib.Component.MESH_CYLINDER = 0x40; +//GameLib.Component.MESH_BOX = 0x3f; +//GameLib.Component.MESH_CYLINDER = 0x40; GameLib.Component.SYSTEM_ANIMATION = 0x41; GameLib.Component.SYSTEM_CUSTOM_CODE = 0x42; GameLib.Component.SYSTEM_GUI = 0x43; @@ -310,7 +310,7 @@ GameLib.Component.LIGHT_POINT = 0x4d; GameLib.Component.LIGHT_RECT_AREA = 0x4e; GameLib.Component.LIGHT_SPOT = 0x4f; GameLib.Component.FOG = 0x50; -GameLib.Component.MESH_LINE = 0x51; +//GameLib.Component.MESH_LINE = 0x51; GameLib.Component.PARTICLE_ENGINE = 0x52; GameLib.Component.SYSTEM_PARTICLE = 0x53; GameLib.Component.PARTICLE = 0x54; @@ -604,24 +604,24 @@ GameLib.Component.GetComponentInfo = function(number) { constructor : GameLib.Entity, apiConstructor : GameLib.API.Entity }; - case 0x21 : return { + case 0x21 : return null;/*return { name : 'GameLib.D3.Mesh.Sphere', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Sphere, apiConstructor : GameLib.D3.API.Mesh - }; - case 0x22 : return { + };*/ + case 0x22 : return null;/*{ name : 'GameLib.D3.Mesh.Plane', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Plane, apiConstructor : GameLib.D3.API.Mesh - }; - case 0x23 : return { + };*/ + case 0x23 : return null;/*{ name : 'GameLib.D3.Mesh.Curve', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Curve, apiConstructor : GameLib.D3.API.Mesh - }; + };*/ case 0x24 : return { name : 'GameLib.D3.PhysicsWorld', runtime : GameLib.Component.PHYSICS_RUNTIME, @@ -760,12 +760,12 @@ GameLib.Component.GetComponentInfo = function(number) { constructor : GameLib.Controls.Mouse, apiConstructor : GameLib.API.Controls }; - case 0x3b : return { + case 0x3b : return null;/*{ name : 'GameLib.D3.Mesh.Text', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Text, apiConstructor : GameLib.D3.API.Mesh - }; + };*/ case 0x3c : return { name : 'GameLib.D3.Font', runtime : GameLib.Component.GRAPHICS_RUNTIME, @@ -784,18 +784,18 @@ GameLib.Component.GetComponentInfo = function(number) { constructor : GameLib.D3.Bone, apiConstructor : GameLib.D3.API.Bone }; - case 0x3f : return { + case 0x3f : return null;/*{ name : 'GameLib.D3.Mesh.Box', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Box, apiConstructor : GameLib.D3.API.Mesh - }; - case 0x40 : return { + };*/ + case 0x40 : return null;/*{ name : 'GameLib.D3.Mesh.Cylinder', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Cylinder, apiConstructor : GameLib.D3.API.Mesh - }; + };*/ case 0x41 : return { name : 'GameLib.System.Animation', runtime : GameLib.Component.DEFAULT_RUNTIME, @@ -892,12 +892,12 @@ GameLib.Component.GetComponentInfo = function(number) { constructor : GameLib.D3.Fog, apiConstructor : GameLib.D3.API.Fog }; - case 0x51 : return { + case 0x51 : return null;/*{ name : 'GameLib.D3.Mesh.Line', runtime : GameLib.Component.GRAPHICS_RUNTIME, constructor : GameLib.D3.Mesh.Line, apiConstructor : GameLib.D3.API.Mesh - }; + };*/ case 0x52 : return { name : 'GameLib.D3.ParticleEngine', runtime : GameLib.Component.GRAPHICS_RUNTIME, diff --git a/src/game-lib-d3-particle-engine.js b/src/game-lib-d3-particle-engine.js index 8334229..90b85dd 100644 --- a/src/game-lib-d3-particle-engine.js +++ b/src/game-lib-d3-particle-engine.js @@ -122,6 +122,8 @@ GameLib.D3.ParticleEngine.prototype.updateInstance = function(property) { this.templateParticle.direction = this.direction.clone(); this.templateParticle.direction.updateInstance('direction', true); } + + GameLib.Component.prototype.updateInstance.call(this, property); }; GameLib.D3.ParticleEngine.prototype.remove = function() {