ts-game-engine
Version:
Simple WebGL game/render engine written in TypeScript
18 lines (17 loc) • 524 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Components_1 = require("../Components");
class Entity {
constructor(scene, name) {
this.scene = scene;
this.name = name;
this.transform = new Components_1.Transform();
}
get Scene() { return this.scene; }
get Name() { return this.name; }
get Transform() { return this.transform; }
Update(deltaTime) {
this.transform.Update(deltaTime);
}
}
exports.Entity = Entity;