/** * Entity API Object (for storing / loading entities to and from API) * @param apiComponent * @param components R3.API.Component[] * @constructor */ R3.API.Entity = function( apiComponent, components ) { __API_COMPONENT_MACRO__ if (R3.Utils.UndefinedOrNull(components)) { components = []; } this.components = components; }; R3.API.Entity.prototype = Object.create(R3.API.Component.prototype); R3.API.Entity.prototype.constructor = R3.API.Entity;