goog.provide('entitas.viewer.EntityBehavior');
/**
* @constructor
*
* @param obj
*/
entitas.viewer.EntityBehavior = function(obj) {
var _this = this;
this.obj = obj;
if (this.obj.name) {
this._name = this.obj.name;
}
else {
this._name = "Entity_" + this.obj._creationIndex;
}
Object.defineProperty(this, this._name, { get: function () { return _this.obj.toString(); } });
}
Object.defineProperty(entitas.viewer.EntityBehavior.prototype, "name", {
get: function () {
return this._name;
},
enumerable: true,
configurable: true
});