Skip to content
Permalink
Browse files

feat(api): add APIAPI.re

  • Loading branch information...
yyc-git committed May 17, 2019
1 parent e0d4735 commit 606b8b10cef3437ea6d200eb0d8a8a2ca454a0b8
Showing with 19 additions and 0 deletions.
  1. +8 −0 src/Index.re
  2. +11 −0 src/api/api/APIAPI.re
@@ -1,3 +1,7 @@
let setScriptAPIJsObj = APIAPI.setScriptAPIJsObj;

let getScriptAPIJsObj = APIAPI.getScriptAPIJsObj;

let buildDependencyRelation = GenerateAllABAPI.buildDependencyRelation;

let generateAllABs = GenerateAllABAPI.generateAllABs;
@@ -984,6 +988,10 @@ let setIMGUIAPIJsObj = RecordAPIRenderWorkerService.setIMGUIAPIJsObj;

let getIMGUIAPIJsObj = RecordAPIRenderWorkerService.getIMGUIAPIJsObj;

let setScriptAPIJsObj = APIAPI.setScriptAPIJsObj;

let getScriptAPIJsObj = APIAPI.getScriptAPIJsObj;

let convertWorldToScreen = CoordinateAPI.convertWorldToScreen;

let setStencilOp = DeviceManagerAPI.setStencilOp;
@@ -0,0 +1,11 @@
open StateDataMainType;

let getScriptAPIJsObj = state => state.apiRecord.scriptAPIJsObj;

let setScriptAPIJsObj = (scriptAPIJsObj, state) => {
...state,
apiRecord: {
...state.apiRecord,
scriptAPIJsObj,
},
};

0 comments on commit 606b8b1

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