14 lines
302 B
JavaScript
14 lines
302 B
JavaScript
|
/**
|
||
|
* Entity API Object (for storing / loading entities to and from API)
|
||
|
* @constructor
|
||
|
* @param entities GameLib.API.Entity[]
|
||
|
*/
|
||
|
GameLib.API.EntityManager = function(
|
||
|
entities
|
||
|
) {
|
||
|
if (GameLib.Utils.UndefinedOrNull(entities)) {
|
||
|
entities = [];
|
||
|
}
|
||
|
this.entities = entities;
|
||
|
};
|