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

21 lines
415 B
JavaScript
Raw Normal View History

2018-04-09 09:35:04 +02:00
/**
2019-10-06 21:11:18 +02:00
* R3.API.Entity
2019-07-24 14:45:42 +02:00
* @param apiComponent
2018-04-09 09:35:04 +02:00
* @constructor
*/
R3.API.Entity = function(
2019-10-06 21:11:18 +02:00
apiComponent
2018-04-09 09:35:04 +02:00
) {
2019-10-06 21:11:18 +02:00
__API_COMPONENT__;
2018-04-09 09:35:04 +02:00
2019-10-06 21:11:18 +02:00
if (R3.Utils.UndefinedOrNull(apiComponent.components)) {
apiComponent.components = [];
2018-04-09 09:35:04 +02:00
}
2019-10-06 21:11:18 +02:00
this.components = apiComponent.components;
2018-04-09 09:35:04 +02:00
};
R3.API.Entity.prototype = Object.create(R3.API.Component.prototype);
R3.API.Entity.prototype.constructor = R3.API.Entity;