Skip to content

Commit

Permalink
fix: add adatation layer helper (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 authored Jun 10, 2024
1 parent 2d2bb96 commit f804ce5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions consumer-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"build": "tsc -p tsconfig.json",
"watch": "tsc -p tsconfig.json -w",
"start": "node --trace-warnings --abort-on-uncaught-exception --unhandled-rejections=strict dist/index.js",
"test": "jest --forceExit --detectOpenHandles --verbose",
"lint:fix": "eslint --fix --ext .ts src",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ type LoadableApis = {
Scene: typeof Scene
}

export const LoadableApis: LoadableApis = {
export const LoadableApis: LoadableApis & { AdaptationLayerHelper: unknown } = {
AdaptationLayerHelper: {
getTextureSize: async () => ({})
},
// Emulating old EnvironmentAPI from browser-interface/kernel at https://github.com/decentraland/unity-renderer/blob/dev/browser-interface/packages/shared/apis/host/EnvironmentAPI.ts#L29%60L77
// to avoid compilation errors on very old sdk6 scenes when running their eval to generate the manifest.
EnvironmentApi: {
Expand Down

0 comments on commit f804ce5

Please sign in to comment.