Skip to content
Permalink
Browse files

feat(engine): update wonder.js version

  • Loading branch information...
yyc-git committed Apr 28, 2019
1 parent 27e5858 commit f7e1eab8cb7d77e111ede1721ee899eb05919d88
@@ -74,7 +74,7 @@
"wonder-commonlib": "^0.2.32",
"wonder-hotkey": "^0.0.1",
"wonder-log": "^0.2.11",
"wonder.js": "1.1.0-alpha.1.8"
"wonder.js": "1.1.0-alpha.1.9"
},
"resolutions": {
"wonder-log": "^0.2.11",
@@ -41,6 +41,8 @@ let initJob =
...engineState,
apiRecord: {
...apiRecord,
scriptAPIJsObj: _createScriptAPIJsObj(apiRecord.scriptAPIJsObj),
scriptAPIJsObj:
_createScriptAPIJsObj(apiRecord.scriptAPIJsObj |> Obj.magic)
|> Obj.magic,
},
};
@@ -146,6 +146,7 @@ let _ =
let _buildUpdateEventFunctionSetLocalPosition1 = () =>
Some(
(. script, api, engineState: Wonderjs.StateDataMainType.state) => {
let api = Obj.magic(api);
let unsafeGetGameObjectTransformComponent =
api##unsafeGetGameObjectTransformComponent;
let setTransformLocalPosition = api##setTransformLocalPosition;
@@ -166,6 +167,7 @@ let _ =
let _buildUpdateEventFunctionSetLocalPosition2 = () =>
Some(
(. script, api, engineState: Wonderjs.StateDataMainType.state) => {
let api = Obj.magic(api);
let unsafeGetGameObjectTransformComponent =
api##unsafeGetGameObjectTransformComponent;
let setTransformLocalPosition = api##setTransformLocalPosition;
@@ -238,7 +240,7 @@ let _ =
~currentScriptEventFunctionNodeId=Some(addedNodeId1),
~targetScriptEventFunctionNodeId=addedNodeId2,
~send=SinonTool.createOneLengthStub(sandbox^),
()
(),
);

let gameObject1 =
@@ -370,6 +372,7 @@ let _ =
api,
engineState: Wonderjs.StateDataMainType.state,
) => {
let api = Obj.magic(api);
let disposeGameObject = api##disposeGameObject;
let findGameObjectsByName = api##findGameObjectsByName;

@@ -402,6 +405,7 @@ let _ =
api,
engineState: Wonderjs.StateDataMainType.state,
) => {
let api = Obj.magic(api);
let unsafeGetGameObjectTransformComponent =
api##unsafeGetGameObjectTransformComponent;
let setTransformLocalPosition =
@@ -558,6 +562,7 @@ let _ =
api,
engineState: Wonderjs.StateDataMainType.state,
) => {
let api = Obj.magic(api);
let disposeGameObject = api##disposeGameObject;
let findGameObjectsByName = api##findGameObjectsByName;

@@ -777,6 +782,7 @@ let _ =
api,
engineState: Wonderjs.StateDataMainType.state,
) => {
let api = Obj.magic(api);
let unsafeGetGameObjectTransformComponent =
api##unsafeGetGameObjectTransformComponent;
let setTransformLocalPosition =
@@ -36,6 +36,7 @@ let buildScriptEventFunctionData = (~initFunc, ~updateFunc, ~disposeFunc) =>

let buildSetLocalPositionEventFunc = () =>
(. script, api, engineState) => {
let api = Obj.magic(api);
let unsafeGetScriptGameObject = api##unsafeGetScriptGameObject;
let unsafeGetGameObjectTransformComponent =
api##unsafeGetGameObjectTransformComponent;

0 comments on commit f7e1eab

Please sign in to comment.
You can’t perform that action at this time.