wonder.js
Version:
26 lines (22 loc) • 1.01 kB
JavaScript
;
var IndexComponentService$Wonderjs = require("../../../primitive/component/IndexComponentService.js");
var RecordScriptMainService$Wonderjs = require("./RecordScriptMainService.js");
function create(state) {
var scriptRecord = RecordScriptMainService$Wonderjs.getRecord(state);
var match = IndexComponentService$Wonderjs.generateIndex(scriptRecord[/* index */0], scriptRecord[/* disposedIndexArray */2]);
state[/* scriptRecord */27] = /* record */[
/* index */match[1],
/* isScriptEventFunctionEnable */scriptRecord[/* isScriptEventFunctionEnable */1],
/* disposedIndexArray */match[2],
/* gameObjectMap */scriptRecord[/* gameObjectMap */3],
/* isActiveMap */scriptRecord[/* isActiveMap */4],
/* scriptEventFunctionDataMap */scriptRecord[/* scriptEventFunctionDataMap */5],
/* scriptAttributeMap */scriptRecord[/* scriptAttributeMap */6]
];
return /* tuple */[
state,
match[0]
];
}
exports.create = create;
/* No side effect */