Object.create chain update
parent
b4f673adb8
commit
5775e1fc58
|
@ -16,5 +16,4 @@ GameLib.API.Component = function(
|
||||||
this.parentEntity = parentEntity;
|
this.parentEntity = parentEntity;
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Component.prototype = Object.create(GameLib.Event.prototype);
|
|
||||||
GameLib.API.Component.prototype.constructor = GameLib.API.Component;
|
GameLib.API.Component.prototype.constructor = GameLib.API.Component;
|
|
@ -58,7 +58,7 @@ GameLib.Component = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Component.prototype = Object.create(GameLib.API.Component.prototype);
|
GameLib.Component.prototype = Object.create(GameLib.Event.prototype);
|
||||||
GameLib.Component.prototype.constructor = GameLib.Component;
|
GameLib.Component.prototype.constructor = GameLib.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -41,7 +41,7 @@ GameLib.API.Canvas = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Canvas.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Canvas.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Canvas.prototype.constructor = GameLib.API.Canvas;
|
GameLib.API.Canvas.prototype.constructor = GameLib.API.Canvas;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,7 @@ GameLib.API.Clock = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Clock.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Clock.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Clock.prototype.constructor = GameLib.API.Clock;
|
GameLib.API.Clock.prototype.constructor = GameLib.API.Clock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -96,7 +96,7 @@ GameLib.API.Controls = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Controls.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Controls.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Controls.prototype.constructor = GameLib.API.Controls;
|
GameLib.API.Controls.prototype.constructor = GameLib.API.Controls;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -41,7 +41,7 @@ GameLib.API.CustomCode = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.CustomCode.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.CustomCode.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.CustomCode.prototype.constructor = GameLib.API.CustomCode;
|
GameLib.API.CustomCode.prototype.constructor = GameLib.API.CustomCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -35,7 +35,7 @@ GameLib.API.DomElement = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.DomElement.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.DomElement.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.DomElement.prototype.constructor = GameLib.API.DomElement;
|
GameLib.API.DomElement.prototype.constructor = GameLib.API.DomElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -48,7 +48,7 @@ GameLib.API.EntityManager = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.EntityManager.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.EntityManager.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.EntityManager.prototype.constructor = GameLib.API.EntityManager;
|
GameLib.API.EntityManager.prototype.constructor = GameLib.API.EntityManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -41,7 +41,7 @@ GameLib.API.Entity = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Entity.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Entity.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Entity.prototype.constructor = GameLib.API.Entity;
|
GameLib.API.Entity.prototype.constructor = GameLib.API.Entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -35,7 +35,7 @@ GameLib.API.GUI = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.GUI.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.GUI.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.GUI.prototype.constructor = GameLib.API.GUI;
|
GameLib.API.GUI.prototype.constructor = GameLib.API.GUI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -75,7 +75,7 @@ GameLib.API.Image = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Image.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Image.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Image.prototype.constructor = GameLib.API.Image;
|
GameLib.API.Image.prototype.constructor = GameLib.API.Image;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -41,7 +41,7 @@ GameLib.API.Mouse = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Mouse.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Mouse.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Mouse.prototype.constructor = GameLib.API.Mouse;
|
GameLib.API.Mouse.prototype.constructor = GameLib.API.Mouse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,7 +56,7 @@ GameLib.API.Server = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Server.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Server.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Server.prototype.constructor = GameLib.API.Server;
|
GameLib.API.Server.prototype.constructor = GameLib.API.Server;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -66,7 +66,7 @@ GameLib.API.Socket = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Socket.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Socket.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Socket.prototype.constructor = GameLib.API.Socket;
|
GameLib.API.Socket.prototype.constructor = GameLib.API.Socket;
|
||||||
|
|
||||||
GameLib.API.Socket.TYPE_NONE = 0x1;
|
GameLib.API.Socket.TYPE_NONE = 0x1;
|
||||||
|
|
|
@ -35,7 +35,7 @@ GameLib.API.Stats = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.Stats.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.Stats.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.Stats.prototype.constructor = GameLib.API.Stats;
|
GameLib.API.Stats.prototype.constructor = GameLib.API.Stats;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -86,7 +86,7 @@ GameLib.API.System = function (
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.API.System.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.API.System.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.API.System.prototype.constructor = GameLib.API.System;
|
GameLib.API.System.prototype.constructor = GameLib.API.System;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,7 +27,7 @@ GameLib.Canvas = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Canvas.prototype = Object.create(GameLib.API.Canvas.prototype);
|
GameLib.Canvas.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Canvas.prototype.constructor = GameLib.Canvas;
|
GameLib.Canvas.prototype.constructor = GameLib.Canvas;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,7 @@ GameLib.Clock = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
GameLib.Clock.prototype = Object.create(GameLib.API.Clock.prototype);
|
GameLib.Clock.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Clock.prototype.constructor = GameLib.Clock;
|
GameLib.Clock.prototype.constructor = GameLib.Clock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -45,7 +45,7 @@ GameLib.Color = function (
|
||||||
this.createInstance();
|
this.createInstance();
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Color.prototype = Object.create(GameLib.API.Color.prototype);
|
GameLib.Color.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Color.prototype.constructor = GameLib.Color;
|
GameLib.Color.prototype.constructor = GameLib.Color;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -45,7 +45,7 @@ GameLib.Controls = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Controls.prototype = Object.create(GameLib.API.Controls.prototype);
|
GameLib.Controls.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Controls.prototype.constructor = GameLib.Controls;
|
GameLib.Controls.prototype.constructor = GameLib.Controls;
|
||||||
|
|
||||||
GameLib.Controls.D3 = function() {};
|
GameLib.Controls.D3 = function() {};
|
||||||
|
|
|
@ -29,7 +29,7 @@ GameLib.CustomCode = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.CustomCode.prototype = Object.create(GameLib.API.CustomCode.prototype);
|
GameLib.CustomCode.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.CustomCode.prototype.constructor = GameLib.CustomCode;
|
GameLib.CustomCode.prototype.constructor = GameLib.CustomCode;
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.createInstance = function() {
|
GameLib.CustomCode.prototype.createInstance = function() {
|
||||||
|
|
|
@ -94,7 +94,7 @@ GameLib.D3.API.Animation = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Animation.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Animation.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Animation.prototype.constructor = GameLib.D3.API.Animation;
|
GameLib.D3.API.Animation.prototype.constructor = GameLib.D3.API.Animation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -70,7 +70,7 @@ GameLib.D3.API.Audio = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Audio.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Audio.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Audio.prototype.constructor = GameLib.D3.API.Audio;
|
GameLib.D3.API.Audio.prototype.constructor = GameLib.D3.API.Audio;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -70,7 +70,7 @@ GameLib.D3.API.Bone = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Bone.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Bone.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Bone.prototype.constructor = GameLib.D3.API.Bone;
|
GameLib.D3.API.Bone.prototype.constructor = GameLib.D3.API.Bone;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -35,7 +35,7 @@ GameLib.D3.API.Broadphase = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Broadphase.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Broadphase.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Broadphase.prototype.constructor = GameLib.D3.API.Broadphase;
|
GameLib.D3.API.Broadphase.prototype.constructor = GameLib.D3.API.Broadphase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -162,7 +162,7 @@ GameLib.D3.API.Camera = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Camera.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Camera.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Camera.prototype.constructor = GameLib.D3.API.Camera;
|
GameLib.D3.API.Camera.prototype.constructor = GameLib.D3.API.Camera;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -48,7 +48,7 @@ GameLib.D3.API.Composer = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Composer.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Composer.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Composer.prototype.constructor = GameLib.D3.API.Composer;
|
GameLib.D3.API.Composer.prototype.constructor = GameLib.D3.API.Composer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -87,7 +87,7 @@ GameLib.D3.API.Face = function(
|
||||||
* We don't inherit from component - it makes the entitymanager too heavy - all faces end up in the register etc..
|
* We don't inherit from component - it makes the entitymanager too heavy - all faces end up in the register etc..
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// GameLib.D3.API.Face.prototype = Object.create(GameLib.Component.prototype);
|
// GameLib.D3.API.Face.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
// GameLib.D3.API.Face.prototype.constructor = GameLib.D3.API.Face;
|
// GameLib.D3.API.Face.prototype.constructor = GameLib.D3.API.Face;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -63,7 +63,7 @@ GameLib.D3.API.Fog = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Fog.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Fog.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Fog.prototype.constructor = GameLib.D3.API.Fog;
|
GameLib.D3.API.Fog.prototype.constructor = GameLib.D3.API.Fog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,7 +34,7 @@ GameLib.D3.API.Font = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Font.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Font.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Font.prototype.constructor = GameLib.D3.API.Font;
|
GameLib.D3.API.Font.prototype.constructor = GameLib.D3.API.Font;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -77,7 +77,7 @@ GameLib.D3.API.FrictionContactMaterial = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.FrictionContactMaterial.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.FrictionContactMaterial.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.FrictionContactMaterial.prototype.constructor = GameLib.D3.API.FrictionContactMaterial;
|
GameLib.D3.API.FrictionContactMaterial.prototype.constructor = GameLib.D3.API.FrictionContactMaterial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,7 +42,7 @@ GameLib.D3.API.FrictionMaterial = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.FrictionMaterial.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.FrictionMaterial.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.FrictionMaterial.prototype.constructor = GameLib.D3.API.FrictionMaterial;
|
GameLib.D3.API.FrictionMaterial.prototype.constructor = GameLib.D3.API.FrictionMaterial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -142,7 +142,7 @@ GameLib.D3.API.Light = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Light.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Light.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Light.prototype.constructor = GameLib.D3.API.Light;
|
GameLib.D3.API.Light.prototype.constructor = GameLib.D3.API.Light;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -492,7 +492,7 @@ GameLib.D3.API.Material = function(
|
||||||
this.needsUpdate = false;
|
this.needsUpdate = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Material.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Material.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Material.prototype.constructor = GameLib.D3.API.Material;
|
GameLib.D3.API.Material.prototype.constructor = GameLib.D3.API.Material;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -187,7 +187,7 @@ GameLib.D3.API.Mesh = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Mesh.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Mesh.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Mesh.prototype.constructor = GameLib.D3.API.Mesh;
|
GameLib.D3.API.Mesh.prototype.constructor = GameLib.D3.API.Mesh;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ GameLib.D3.API.ParticleEngine = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.ParticleEngine.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.ParticleEngine.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.ParticleEngine.prototype.constructor = GameLib.D3.API.ParticleEngine;
|
GameLib.D3.API.ParticleEngine.prototype.constructor = GameLib.D3.API.ParticleEngine;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@ GameLib.D3.API.Particle = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Particle.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Particle.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Particle.prototype.constructor = GameLib.D3.API.Particle;
|
GameLib.D3.API.Particle.prototype.constructor = GameLib.D3.API.Particle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -64,7 +64,7 @@ GameLib.D3.API.Pass = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Pass.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Pass.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Pass.prototype.constructor = GameLib.D3.API.Pass;
|
GameLib.D3.API.Pass.prototype.constructor = GameLib.D3.API.Pass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -86,7 +86,7 @@ GameLib.D3.API.PhysicsWorld = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.PhysicsWorld.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.PhysicsWorld.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.PhysicsWorld.prototype.constructor = GameLib.D3.API.PhysicsWorld;
|
GameLib.D3.API.PhysicsWorld.prototype.constructor = GameLib.D3.API.PhysicsWorld;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,7 +56,7 @@ GameLib.D3.API.RaycastVehicle = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.RaycastVehicle.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.RaycastVehicle.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.RaycastVehicle.prototype.constructor = GameLib.D3.API.RaycastVehicle;
|
GameLib.D3.API.RaycastVehicle.prototype.constructor = GameLib.D3.API.RaycastVehicle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -133,7 +133,7 @@ GameLib.D3.API.RaycastWheel = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.RaycastWheel.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.RaycastWheel.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.RaycastWheel.prototype.constructor = GameLib.D3.API.RaycastWheel;
|
GameLib.D3.API.RaycastWheel.prototype.constructor = GameLib.D3.API.RaycastWheel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,7 +42,7 @@ GameLib.D3.API.Raycaster = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Raycaster.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Raycaster.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Raycaster.prototype.constructor = GameLib.D3.API.Raycaster;
|
GameLib.D3.API.Raycaster.prototype.constructor = GameLib.D3.API.Raycaster;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -61,7 +61,7 @@ GameLib.D3.API.RenderTarget = function (
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.RenderTarget.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.RenderTarget.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.RenderTarget.prototype.constructor = GameLib.D3.API.RenderTarget;
|
GameLib.D3.API.RenderTarget.prototype.constructor = GameLib.D3.API.RenderTarget;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -144,7 +144,7 @@ GameLib.D3.API.Renderer = function (
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Renderer.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Renderer.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Renderer.prototype.constructor = GameLib.D3.API.Renderer;
|
GameLib.D3.API.Renderer.prototype.constructor = GameLib.D3.API.Renderer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -154,7 +154,7 @@ GameLib.D3.API.RigidBody = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.RigidBody.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.RigidBody.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.RigidBody.prototype.constructor = GameLib.D3.API.RigidBody;
|
GameLib.D3.API.RigidBody.prototype.constructor = GameLib.D3.API.RigidBody;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -106,7 +106,7 @@ GameLib.D3.API.Scene = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Scene.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Scene.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Scene.prototype.constructor = GameLib.D3.API.Scene;
|
GameLib.D3.API.Scene.prototype.constructor = GameLib.D3.API.Scene;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -122,7 +122,7 @@ GameLib.D3.API.Shape = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Shape.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Shape.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Shape.prototype.constructor = GameLib.D3.API.Shape;
|
GameLib.D3.API.Shape.prototype.constructor = GameLib.D3.API.Shape;
|
||||||
|
|
||||||
GameLib.D3.API.Shape.SHAPE_TYPE_NONE = 0x0;
|
GameLib.D3.API.Shape.SHAPE_TYPE_NONE = 0x0;
|
||||||
|
|
|
@ -85,7 +85,7 @@ GameLib.D3.API.Skeleton = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Skeleton.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Skeleton.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Skeleton.prototype.constructor = GameLib.D3.API.Skeleton;
|
GameLib.D3.API.Skeleton.prototype.constructor = GameLib.D3.API.Skeleton;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -49,7 +49,7 @@ GameLib.D3.API.Solver = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Solver.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Solver.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Solver.prototype.constructor = GameLib.D3.API.Solver;
|
GameLib.D3.API.Solver.prototype.constructor = GameLib.D3.API.Solver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,7 +34,7 @@ GameLib.D3.API.Spline = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Spline.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Spline.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Spline.prototype.constructor = GameLib.D3.API.Spline;
|
GameLib.D3.API.Spline.prototype.constructor = GameLib.D3.API.Spline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -199,7 +199,7 @@ GameLib.D3.API.Texture = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Texture.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Texture.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Texture.prototype.constructor = GameLib.D3.API.Texture;
|
GameLib.D3.API.Texture.prototype.constructor = GameLib.D3.API.Texture;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,7 +56,7 @@ GameLib.D3.API.Viewport = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.API.Viewport.prototype = Object.create(GameLib.Component.prototype);
|
GameLib.D3.API.Viewport.prototype = Object.create(GameLib.API.Component.prototype);
|
||||||
GameLib.D3.API.Viewport.prototype.constructor = GameLib.D3.API.Viewport;
|
GameLib.D3.API.Viewport.prototype.constructor = GameLib.D3.API.Viewport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -49,7 +49,7 @@ GameLib.D3.Animation = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Animation.prototype = Object.create(GameLib.D3.API.Animation.prototype);
|
GameLib.D3.Animation.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Animation.prototype.constructor = GameLib.D3.Animation;
|
GameLib.D3.Animation.prototype.constructor = GameLib.D3.Animation;
|
||||||
|
|
||||||
GameLib.D3.Animation.ANIMATION_FUNCTION_TYPE_ROTATION = 1;
|
GameLib.D3.Animation.ANIMATION_FUNCTION_TYPE_ROTATION = 1;
|
||||||
|
|
|
@ -49,7 +49,7 @@ GameLib.D3.Audio = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Audio.prototype = Object.create(GameLib.D3.API.Audio.prototype);
|
GameLib.D3.Audio.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Audio.prototype.constructor = GameLib.D3.Audio;
|
GameLib.D3.Audio.prototype.constructor = GameLib.D3.Audio;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,7 @@ GameLib.D3.BoneWeight = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.BoneWeight.prototype = Object.create(GameLib.D3.API.BoneWeight.prototype);
|
GameLib.D3.BoneWeight.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.BoneWeight.prototype.constructor = GameLib.D3.BoneWeight;
|
GameLib.D3.BoneWeight.prototype.constructor = GameLib.D3.BoneWeight;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -59,7 +59,7 @@ GameLib.D3.Bone = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Bone.prototype = Object.create(GameLib.D3.API.Bone.prototype);
|
GameLib.D3.Bone.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Bone.prototype.constructor = GameLib.D3.Bone;
|
GameLib.D3.Bone.prototype.constructor = GameLib.D3.Bone;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ GameLib.D3.Broadphase = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Broadphase.prototype = Object.create(GameLib.D3.API.Broadphase.prototype);
|
GameLib.D3.Broadphase.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Broadphase.prototype.constructor = GameLib.D3.Broadphase;
|
GameLib.D3.Broadphase.prototype.constructor = GameLib.D3.Broadphase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -85,7 +85,7 @@ GameLib.D3.Camera = function(
|
||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
GameLib.D3.Camera.prototype = Object.create(GameLib.D3.API.Camera.prototype);
|
GameLib.D3.Camera.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Camera.prototype.constructor = GameLib.D3.Camera;
|
GameLib.D3.Camera.prototype.constructor = GameLib.D3.Camera;
|
||||||
|
|
||||||
GameLib.D3.Camera.CAMERA_TYPE_PERSPECTIVE = 0x1;
|
GameLib.D3.Camera.CAMERA_TYPE_PERSPECTIVE = 0x1;
|
||||||
|
|
|
@ -40,7 +40,7 @@ GameLib.D3.Composer = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Composer.prototype = Object.create(GameLib.D3.API.Composer.prototype);
|
GameLib.D3.Composer.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Composer.prototype.constructor = GameLib.D3.Composer;
|
GameLib.D3.Composer.prototype.constructor = GameLib.D3.Composer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -124,7 +124,7 @@ GameLib.D3.Face = function Face(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Face.prototype = Object.create(GameLib.D3.API.Face.prototype);
|
GameLib.D3.Face.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Face.prototype.constructor = GameLib.D3.Face;
|
GameLib.D3.Face.prototype.constructor = GameLib.D3.Face;
|
||||||
|
|
||||||
GameLib.D3.Face.prototype.createInstance = function() {
|
GameLib.D3.Face.prototype.createInstance = function() {
|
||||||
|
|
|
@ -41,7 +41,7 @@ GameLib.D3.Fog = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Fog.prototype = Object.create(GameLib.D3.API.Fog.prototype);
|
GameLib.D3.Fog.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Fog.prototype.constructor = GameLib.D3.Fog;
|
GameLib.D3.Fog.prototype.constructor = GameLib.D3.Fog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,7 @@ GameLib.D3.Font = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Font.prototype = Object.create(GameLib.D3.API.Font.prototype);
|
GameLib.D3.Font.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Font.prototype.constructor = GameLib.D3.Font;
|
GameLib.D3.Font.prototype.constructor = GameLib.D3.Font;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,7 +42,7 @@ GameLib.D3.FrictionContactMaterial = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.FrictionContactMaterial.prototype = Object.create(GameLib.D3.API.FrictionContactMaterial.prototype);
|
GameLib.D3.FrictionContactMaterial.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.FrictionContactMaterial.prototype.constructor = GameLib.D3.FrictionContactMaterial;
|
GameLib.D3.FrictionContactMaterial.prototype.constructor = GameLib.D3.FrictionContactMaterial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,7 +32,7 @@ GameLib.D3.FrictionMaterial = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.FrictionMaterial.prototype = Object.create(GameLib.D3.API.FrictionMaterial.prototype);
|
GameLib.D3.FrictionMaterial.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.FrictionMaterial.prototype.constructor = GameLib.D3.FrictionMaterial;
|
GameLib.D3.FrictionMaterial.prototype.constructor = GameLib.D3.FrictionMaterial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -84,7 +84,7 @@ GameLib.D3.Light = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Light.prototype = Object.create(GameLib.D3.API.Light.prototype);
|
GameLib.D3.Light.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Light.prototype.constructor = GameLib.D3.Light;
|
GameLib.D3.Light.prototype.constructor = GameLib.D3.Light;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -240,7 +240,7 @@ GameLib.D3.Material = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Material.prototype = Object.create(GameLib.D3.API.Material.prototype);
|
GameLib.D3.Material.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Material.prototype.constructor = GameLib.D3.Material;
|
GameLib.D3.Material.prototype.constructor = GameLib.D3.Material;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -160,7 +160,7 @@ GameLib.D3.Mesh = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Mesh.prototype = Object.create(GameLib.D3.API.Mesh.prototype);
|
GameLib.D3.Mesh.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Mesh.prototype.constructor = GameLib.D3.Mesh;
|
GameLib.D3.Mesh.prototype.constructor = GameLib.D3.Mesh;
|
||||||
|
|
||||||
GameLib.D3.Mesh.prototype.lookAt = function(vector) {
|
GameLib.D3.Mesh.prototype.lookAt = function(vector) {
|
||||||
|
|
|
@ -86,7 +86,7 @@ GameLib.D3.ParticleEngine = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.ParticleEngine.prototype = Object.create(GameLib.D3.API.ParticleEngine.prototype);
|
GameLib.D3.ParticleEngine.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.ParticleEngine.prototype.constructor = GameLib.D3.ParticleEngine;
|
GameLib.D3.ParticleEngine.prototype.constructor = GameLib.D3.ParticleEngine;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -108,7 +108,7 @@ GameLib.D3.Particle = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Particle.prototype = Object.create(GameLib.D3.API.Particle.prototype);
|
GameLib.D3.Particle.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Particle.prototype.constructor = GameLib.D3.Particle;
|
GameLib.D3.Particle.prototype.constructor = GameLib.D3.Particle;
|
||||||
|
|
||||||
GameLib.D3.Particle.OPACITY_TYPE_CONSTANT = 0x1;
|
GameLib.D3.Particle.OPACITY_TYPE_CONSTANT = 0x1;
|
||||||
|
|
|
@ -40,7 +40,7 @@ GameLib.D3.Pass = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Pass.prototype = Object.create(GameLib.D3.API.Pass.prototype);
|
GameLib.D3.Pass.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Pass.prototype.constructor = GameLib.D3.Pass;
|
GameLib.D3.Pass.prototype.constructor = GameLib.D3.Pass;
|
||||||
|
|
||||||
GameLib.D3.Pass.PASS_TYPE_RENDER = 0x1;
|
GameLib.D3.Pass.PASS_TYPE_RENDER = 0x1;
|
||||||
|
|
|
@ -99,7 +99,7 @@ GameLib.D3.PhysicsWorld = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.PhysicsWorld.prototype = Object.create(GameLib.D3.API.PhysicsWorld.prototype);
|
GameLib.D3.PhysicsWorld.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.PhysicsWorld.prototype.constructor = GameLib.D3.PhysicsWorld;
|
GameLib.D3.PhysicsWorld.prototype.constructor = GameLib.D3.PhysicsWorld;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -71,7 +71,7 @@ GameLib.D3.RaycastVehicle = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.RaycastVehicle.prototype = Object.create(GameLib.D3.API.RaycastVehicle.prototype);
|
GameLib.D3.RaycastVehicle.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.RaycastVehicle.prototype.constructor = GameLib.D3.RaycastVehicle;
|
GameLib.D3.RaycastVehicle.prototype.constructor = GameLib.D3.RaycastVehicle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -68,7 +68,7 @@ GameLib.D3.RaycastWheel = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.RaycastWheel.prototype = Object.create(GameLib.D3.API.RaycastWheel.prototype);
|
GameLib.D3.RaycastWheel.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.RaycastWheel.prototype.constructor = GameLib.D3.RaycastWheel;
|
GameLib.D3.RaycastWheel.prototype.constructor = GameLib.D3.RaycastWheel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -43,7 +43,7 @@ GameLib.D3.Raycaster = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Raycaster.prototype = Object.create(GameLib.D3.API.Raycaster.prototype);
|
GameLib.D3.Raycaster.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Raycaster.prototype.constructor = GameLib.D3.Raycaster;
|
GameLib.D3.Raycaster.prototype.constructor = GameLib.D3.Raycaster;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -38,7 +38,7 @@ GameLib.D3.RenderTarget = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.RenderTarget.prototype = Object.create(GameLib.D3.API.RenderTarget.prototype);
|
GameLib.D3.RenderTarget.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.RenderTarget.prototype.constructor = GameLib.D3.RenderTarget;
|
GameLib.D3.RenderTarget.prototype.constructor = GameLib.D3.RenderTarget;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -148,7 +148,7 @@ if (this.canvas instanceof GameLib.API.Canvas) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Renderer.prototype = Object.create(GameLib.D3.API.Renderer.prototype);
|
GameLib.D3.Renderer.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Renderer.prototype.constructor = GameLib.D3.Renderer;
|
GameLib.D3.Renderer.prototype.constructor = GameLib.D3.Renderer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -87,7 +87,7 @@ GameLib.D3.RigidBody = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.RigidBody.prototype = Object.create(GameLib.D3.API.RigidBody.prototype);
|
GameLib.D3.RigidBody.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.RigidBody.prototype.constructor = GameLib.D3.RigidBody;
|
GameLib.D3.RigidBody.prototype.constructor = GameLib.D3.RigidBody;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -179,7 +179,7 @@ GameLib.D3.Scene = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Scene.prototype = Object.create(GameLib.D3.API.Scene.prototype);
|
GameLib.D3.Scene.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Scene.prototype.constructor = GameLib.D3.Scene;
|
GameLib.D3.Scene.prototype.constructor = GameLib.D3.Scene;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -44,7 +44,7 @@ GameLib.D3.Shape = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Shape.prototype = Object.create(GameLib.D3.API.Shape.prototype);
|
GameLib.D3.Shape.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Shape.prototype.constructor = GameLib.D3.Shape;
|
GameLib.D3.Shape.prototype.constructor = GameLib.D3.Shape;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ GameLib.D3.Skeleton = function Skeleton(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Skeleton.prototype = Object.create(GameLib.D3.API.Skeleton.prototype);
|
GameLib.D3.Skeleton.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Skeleton.prototype.constructor = GameLib.D3.Skeleton;
|
GameLib.D3.Skeleton.prototype.constructor = GameLib.D3.Skeleton;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ GameLib.D3.Solver = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Solver.prototype = Object.create(GameLib.D3.API.Solver.prototype);
|
GameLib.D3.Solver.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Solver.prototype.constructor = GameLib.D3.Solver;
|
GameLib.D3.Solver.prototype.constructor = GameLib.D3.Solver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -40,7 +40,7 @@ GameLib.D3.Spline = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Spline.prototype = Object.create(GameLib.D3.API.Spline.prototype);
|
GameLib.D3.Spline.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Spline.prototype.constructor = GameLib.D3.Spline;
|
GameLib.D3.Spline.prototype.constructor = GameLib.D3.Spline;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -100,7 +100,7 @@ GameLib.D3.Texture = function(
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Texture.prototype = Object.create(GameLib.D3.API.Texture.prototype);
|
GameLib.D3.Texture.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Texture.prototype.constructor = GameLib.D3.Texture;
|
GameLib.D3.Texture.prototype.constructor = GameLib.D3.Texture;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -49,7 +49,7 @@ GameLib.D3.Vertex = function Vertex(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Vertex.prototype = Object.create(GameLib.D3.API.Vertex.prototype);
|
GameLib.D3.Vertex.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Vertex.prototype.constructor = GameLib.D3.Vertex;
|
GameLib.D3.Vertex.prototype.constructor = GameLib.D3.Vertex;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,7 +34,7 @@ GameLib.D3.Viewport = function (
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.D3.Viewport.prototype = Object.create(GameLib.D3.API.Viewport.prototype);
|
GameLib.D3.Viewport.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.D3.Viewport.prototype.constructor = GameLib.D3.Viewport;
|
GameLib.D3.Viewport.prototype.constructor = GameLib.D3.Viewport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,7 @@ GameLib.DomElement = function (apiDomElement) {
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.DomElement.prototype = Object.create(GameLib.API.DomElement.prototype);
|
GameLib.DomElement.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.DomElement.prototype.constructor = GameLib.DomElement;
|
GameLib.DomElement.prototype.constructor = GameLib.DomElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,7 +56,7 @@ GameLib.EntityManager = function(apiEntityManager) {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.EntityManager.prototype = Object.create(GameLib.API.EntityManager.prototype);
|
GameLib.EntityManager.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.EntityManager.prototype.constructor = GameLib.EntityManager;
|
GameLib.EntityManager.prototype.constructor = GameLib.EntityManager;
|
||||||
|
|
||||||
GameLib.EntityManager.prototype.createInstance = function() {
|
GameLib.EntityManager.prototype.createInstance = function() {
|
||||||
|
|
|
@ -32,7 +32,7 @@ GameLib.Entity = function (
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Entity.prototype = Object.create(GameLib.API.Entity.prototype);
|
GameLib.Entity.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Entity.prototype.constructor = GameLib.Entity;
|
GameLib.Entity.prototype.constructor = GameLib.Entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,7 @@ GameLib.Image = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Image.prototype = Object.create(GameLib.API.Image.prototype);
|
GameLib.Image.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Image.prototype.constructor = GameLib.Image;
|
GameLib.Image.prototype.constructor = GameLib.Image;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -82,7 +82,7 @@ GameLib.Matrix4 = function(
|
||||||
this.createInstance();
|
this.createInstance();
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Matrix4.prototype = Object.create(GameLib.API.Matrix4.prototype);
|
GameLib.Matrix4.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Matrix4.prototype.constructor = GameLib.Matrix4;
|
GameLib.Matrix4.prototype.constructor = GameLib.Matrix4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,7 +26,7 @@ GameLib.Mouse = function (apiMouse) {
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Mouse.prototype = Object.create(GameLib.API.Mouse.prototype);
|
GameLib.Mouse.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Mouse.prototype.constructor = GameLib.Mouse;
|
GameLib.Mouse.prototype.constructor = GameLib.Mouse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -70,7 +70,7 @@ GameLib.Quaternion = function (
|
||||||
this.createInstance();
|
this.createInstance();
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Quaternion.prototype = Object.create(GameLib.API.Quaternion.prototype);
|
GameLib.Quaternion.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Quaternion.prototype.constructor = GameLib.Quaternion;
|
GameLib.Quaternion.prototype.constructor = GameLib.Quaternion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,7 +31,7 @@ GameLib.Server = function(
|
||||||
GameLib.Component.call(this);
|
GameLib.Component.call(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Server.prototype = Object.create(GameLib.API.Server.prototype);
|
GameLib.Server.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Server.prototype.constructor = GameLib.Server;
|
GameLib.Server.prototype.constructor = GameLib.Server;
|
||||||
|
|
||||||
GameLib.Server.prototype.createInstance = function() {
|
GameLib.Server.prototype.createInstance = function() {
|
||||||
|
|
|
@ -56,7 +56,7 @@ GameLib.Socket = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Socket.prototype = Object.create(GameLib.API.Socket.prototype);
|
GameLib.Socket.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Socket.prototype.constructor = GameLib.Socket;
|
GameLib.Socket.prototype.constructor = GameLib.Socket;
|
||||||
|
|
||||||
GameLib.Socket.prototype.createInstance = function() {
|
GameLib.Socket.prototype.createInstance = function() {
|
||||||
|
|
|
@ -47,7 +47,7 @@ GameLib.System = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.System.prototype = Object.create(GameLib.API.System.prototype);
|
GameLib.System.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.System.prototype.constructor = GameLib.System;
|
GameLib.System.prototype.constructor = GameLib.System;
|
||||||
|
|
||||||
GameLib.System.SYSTEM_TYPE_NONE = 0x0;
|
GameLib.System.SYSTEM_TYPE_NONE = 0x0;
|
||||||
|
|
|
@ -43,7 +43,7 @@ GameLib.Vector2 = function (
|
||||||
this.createInstance();
|
this.createInstance();
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Vector2.prototype = Object.create(GameLib.API.Vector2.prototype);
|
GameLib.Vector2.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Vector2.prototype.constructor = GameLib.Vector2;
|
GameLib.Vector2.prototype.constructor = GameLib.Vector2;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ GameLib.Vector3 = function (
|
||||||
this.createInstance();
|
this.createInstance();
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Vector3.prototype = Object.create(GameLib.API.Vector3.prototype);
|
GameLib.Vector3.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Vector3.prototype.constructor = GameLib.Vector3;
|
GameLib.Vector3.prototype.constructor = GameLib.Vector3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -45,7 +45,7 @@ GameLib.Vector4 = function (
|
||||||
this.createInstance();
|
this.createInstance();
|
||||||
};
|
};
|
||||||
|
|
||||||
GameLib.Vector4.prototype = Object.create(GameLib.API.Vector4.prototype);
|
GameLib.Vector4.prototype = Object.create(GameLib.Component.prototype);
|
||||||
GameLib.Vector4.prototype.constructor = GameLib.Vector4;
|
GameLib.Vector4.prototype.constructor = GameLib.Vector4;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue