wonder.js
Version:
22 lines (17 loc) • 587 B
JavaScript
;
var MutableSparseMapService$WonderCommonlib = require("wonder-commonlib/lib/js/src/MutableSparseMapService.js");
function getIsActive(uid, state) {
var gameObjectRecord = state[/* gameObjectRecord */10];
return MutableSparseMapService$WonderCommonlib.get(uid, gameObjectRecord[/* isActiveMap */3]);
}
function unsafeGetIsActive(uid, state) {
var match = getIsActive(uid, state);
if (match !== undefined) {
return match;
} else {
return true;
}
}
exports.getIsActive = getIsActive;
exports.unsafeGetIsActive = unsafeGetIsActive;
/* No side effect */