r3-legacy/src/r3-api-entity.js

21 lines
415 B
JavaScript

/**
* R3.API.Entity
* @param apiComponent
* @constructor
*/
R3.API.Entity = function(
apiComponent
) {
__API_COMPONENT__;
if (R3.Utils.UndefinedOrNull(apiComponent.components)) {
apiComponent.components = [];
}
this.components = apiComponent.components;
};
R3.API.Entity.prototype = Object.create(R3.API.Component.prototype);
R3.API.Entity.prototype.constructor = R3.API.Entity;