wonder.js
Version:
22 lines (17 loc) • 1.18 kB
JavaScript
;
var Log$WonderLog = require("wonder-log/lib/js/src/Log.js");
var Contract$WonderLog = require("wonder-log/lib/js/src/Contract.js");
var StateDataMain$Wonderjs = require("../state/main/data/StateDataMain.js");
var IsDebugMainService$Wonderjs = require("../state/main/state/IsDebugMainService.js");
var MutableSparseMapService$WonderCommonlib = require("wonder-commonlib/lib/js/src/MutableSparseMapService.js");
var getGameObject = MutableSparseMapService$WonderCommonlib.get;
function unsafeGetGameObject(component, gameObjectMap) {
return Contract$WonderLog.ensureCheck((function (gameObject) {
return Contract$WonderLog.test(Log$WonderLog.buildAssertMessage("component\'s gameObject exist", "not"), (function (param) {
return Contract$WonderLog.assertNullableExist(gameObject);
}));
}), IsDebugMainService$Wonderjs.getIsDebug(StateDataMain$Wonderjs.stateData), MutableSparseMapService$WonderCommonlib.unsafeGet(component, gameObjectMap));
}
exports.getGameObject = getGameObject;
exports.unsafeGetGameObject = unsafeGetGameObject;
/* Log-WonderLog Not a pure module */