entity objects

beta.r3js.org
Theunis J. Botha 2016-10-28 15:30:15 +02:00
parent 92faa265ab
commit d9c336286d
3 changed files with 27 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -238,6 +238,18 @@ GameLib.D3.Engine.prototype.isGoblin = function() {
GameLib.D3.Engine.ENGINE_TYPE_CANNON = 0x1;
GameLib.D3.Engine.ENGINE_TYPE_AMMO = 0x2;
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
* @param camera

12
src/game-lib-entity.js Normal file
View File

@ -0,0 +1,12 @@
GameLib.D3.Entity = function(
meshId,
componentIds
) {
this.meshId = meshId;
if (typeof componentIds == 'undefined') {
componentIds = [];
}
this.componentIds = componentIds;
};