phaser4-rex-plugins
Version:
19 lines (15 loc) • 438 B
JavaScript
import ObjBank from './ObjBank.js';
var UIDListToObjList = function (uidList, out) {
if (out === undefined) {
out = [];
}
for (var i = 0, cnt = uidList.length; i < cnt; i++) {
var graphItem = ObjBank.get(uidList[i]);
if (!graphItem || !graphItem.parent) {
continue;
}
out.push(graphItem.parent);
}
return out;
}
export default UIDListToObjList;