entity objects
parent
92faa265ab
commit
d9c336286d
File diff suppressed because one or more lines are too long
|
@ -238,6 +238,18 @@ GameLib.D3.Engine.prototype.isGoblin = function() {
|
||||||
GameLib.D3.Engine.ENGINE_TYPE_CANNON = 0x1;
|
GameLib.D3.Engine.ENGINE_TYPE_CANNON = 0x1;
|
||||||
GameLib.D3.Engine.ENGINE_TYPE_AMMO = 0x2;
|
GameLib.D3.Engine.ENGINE_TYPE_AMMO = 0x2;
|
||||||
GameLib.D3.Engine.ENGINE_TYPE_GOBLIN = 0x3;
|
GameLib.D3.Engine.ENGINE_TYPE_GOBLIN = 0x3;
|
||||||
|
GameLib.D3.Entity = function(
|
||||||
|
meshId,
|
||||||
|
componentIds
|
||||||
|
) {
|
||||||
|
this.meshId = meshId;
|
||||||
|
|
||||||
|
if (typeof componentIds == 'undefined') {
|
||||||
|
componentIds = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
this.componentIds = componentIds;
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Fly Controls
|
* Fly Controls
|
||||||
* @param camera
|
* @param camera
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
GameLib.D3.Entity = function(
|
||||||
|
meshId,
|
||||||
|
componentIds
|
||||||
|
) {
|
||||||
|
this.meshId = meshId;
|
||||||
|
|
||||||
|
if (typeof componentIds == 'undefined') {
|
||||||
|
componentIds = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
this.componentIds = componentIds;
|
||||||
|
};
|
Loading…
Reference in New Issue