Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
feat: add crdtGetState to EngineApi service (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbosio authored Jan 25, 2023
1 parent 8356e37 commit c973e59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
"@dcl/hashing": "^1.1.2",
"@dcl/kernel-interface": "^2.0.0-20210922153939.commit-017905d",
"@dcl/legacy-ecs": "^6.11.8",
"@dcl/protocol": "^1.0.0-3939040004.commit-2c2721f",
"@dcl/protocol": "^1.0.0-4009547712.commit-472ea24",
"@dcl/rpc": "^1.1.1",
"@dcl/scene-runtime": "^7.0.3-20230117120910.commit-a343f1e",
"@dcl/scene-runtime": "^7.0.3-20230125201152.commit-2ffd670",
"@dcl/schemas": "^6.4.2",
"@dcl/urn-resolver": "^2.0.3",
"@redux-saga/simple-saga-monitor": "^1.1.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/apis/host/EngineAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ export function registerEngineApiServiceServerImplementation(port: RpcServerPort
return { data: [response.payload] }
},

// TODO: implement
async crdtGetState() {
return { data: [] }
async crdtGetState(_, ctx) {
const response = await ctx.rpcSceneControllerService.getCurrentState({})
return { hasEntities: response.hasOwnEntities, data: [response.payload] }
}
}
}
Expand Down

0 comments on commit c973e59

Please sign in to comment.