wonder.js
Version:
16 lines (12 loc) • 672 B
JavaScript
;
var Caml_array = require("bs-platform/lib/js/caml_array.js");
var RecordSourceTextureMainService$Wonderjs = require("../texture/source/RecordSourceTextureMainService.js");
function restore(currentState, targetState) {
var currentTextureRecord = RecordSourceTextureMainService$Wonderjs.getRecord(currentState);
RecordSourceTextureMainService$Wonderjs.getRecord(targetState);
var newrecord = Caml_array.caml_array_dup(targetState);
newrecord[/* sourceTextureRecord */17] = /* record */[/* buffer */currentTextureRecord[/* buffer */0]];
return newrecord;
}
exports.restore = restore;
/* RecordSourceTextureMainService-Wonderjs Not a pure module */