Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test using protocol experimental and generating protobuf classes and … #1068

Draft
wants to merge 1 commit into
base: experimental
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
"dependencies": {
"@actions/core": "^1.10.0",
"@dcl/protocol": "1.0.0-12891435340.commit-b3fea33",
"@dcl/protocol": "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-13043868109.commit-ba5dc44.tgz",
"@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1",
"@dcl/ts-proto": "1.153.0",
"@types/fs-extra": "^9.0.12",
Expand Down
64 changes: 64 additions & 0 deletions packages/@dcl/playground-assets/etc/playground-assets.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ export const componentDefinitionByName: {
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
"core::InputModifier": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBInputModifier>>;
"core::LightSource": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBLightSource>>;
"core::MainCamera": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMainCamera>>;
"core::Material": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMaterial>>;
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
Expand Down Expand Up @@ -1556,6 +1557,9 @@ export interface LastWriteWinElementSetComponentDefinition<T> extends BaseCompon
getOrNull(entity: Entity): DeepReadonly<T> | null;
}

// @public (undocumented)
export const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;

// @public
export type Listeners = {
onMouseDown?: Callback;
Expand Down Expand Up @@ -2404,6 +2408,66 @@ export namespace PBInputModifier_StandardInput {
export function encode(message: PBInputModifier_StandardInput, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export interface PBLightSource {
active?: boolean | undefined;
brightness?: number | undefined;
color?: PBColor3 | undefined;
range?: number | undefined;
// (undocumented)
type?: {
$case: "point";
point: PBLightSource_Point;
} | {
$case: "spot";
spot: PBLightSource_Spot;
} | undefined;
}

// @public (undocumented)
export namespace PBLightSource {
// (undocumented)
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource;
// (undocumented)
export function encode(message: PBLightSource, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export interface PBLightSource_Point {
shadow?: PBLightSource_ShadowType | undefined;
}

// @public (undocumented)
export namespace PBLightSource_Point {
// (undocumented)
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Point;
// (undocumented)
export function encode(message: PBLightSource_Point, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export const enum PBLightSource_ShadowType {
ST_HARD = 2,
ST_NONE = 0,
ST_SOFT = 1
}

// @public (undocumented)
export interface PBLightSource_Spot {
innerAngle?: number | undefined;
outerAngle?: number | undefined;
shadow?: PBLightSource_ShadowType | undefined;
shadowMaskTexture?: TextureUnion | undefined;
}

// @public (undocumented)
export namespace PBLightSource_Spot {
// (undocumented)
export function decode(input: _m0.Reader | Uint8Array, length?: number): PBLightSource_Spot;
// (undocumented)
export function encode(message: PBLightSource_Spot, writer?: _m0.Writer): _m0.Writer;
}

// @public (undocumented)
export interface PBMainCamera {
virtualCameraEntity?: number | undefined;
Expand Down
2 changes: 2 additions & 0 deletions packages/@dcl/sdk-commands/package-lock.json

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

8 changes: 4 additions & 4 deletions test/snapshots/development-bundles/static-scene.test.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=456.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=463.4k bytes
THE BUNDLE HAS SOURCEMAPS
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
Expand All @@ -11,8 +11,8 @@ EVAL test/snapshots/development-bundles/static-scene.test.js
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 54k
MALLOC_COUNT = 13707
ALIVE_OBJS_DELTA ~= 2.70k
MALLOC_COUNT = 13848
ALIVE_OBJS_DELTA ~= 2.73k
CALL onStart()
main.crdt: PUT_COMPONENT e=0x200 c=1 t=0 data={"position":{"x":5.880000114440918,"y":2.7916901111602783,"z":7.380000114440918},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
main.crdt: PUT_COMPONENT e=0x202 c=1 t=0 data={"position":{"x":4,"y":0.800000011920929,"z":8},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":1,"y":1,"z":1},"parent":0}
Expand Down Expand Up @@ -56,4 +56,4 @@ CALL onUpdate(0.1)
OPCODES ~= 3k
MALLOC_COUNT = -5
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 1200.38k bytes
MEMORY_USAGE_COUNT ~= 1212.59k bytes
8 changes: 4 additions & 4 deletions test/snapshots/development-bundles/testing-fw.test.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=457k bytes
SCENE_COMPILED_JS_SIZE_PROD=464k bytes
THE BUNDLE HAS SOURCEMAPS
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
Expand All @@ -11,8 +11,8 @@ EVAL test/snapshots/development-bundles/testing-fw.test.js
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 63k
MALLOC_COUNT = 14228
ALIVE_OBJS_DELTA ~= 2.85k
MALLOC_COUNT = 14369
ALIVE_OBJS_DELTA ~= 2.88k
CALL onStart()
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=1 data={"position":{"x":1,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":9,"y":9,"z":9},"parent":0}
Expand Down Expand Up @@ -64,4 +64,4 @@ CALL onUpdate(0.1)
OPCODES ~= 5k
MALLOC_COUNT = -40
ALIVE_OBJS_DELTA ~= -0.01k
MEMORY_USAGE_COUNT ~= 1208.99k bytes
MEMORY_USAGE_COUNT ~= 1221.21k bytes
8 changes: 4 additions & 4 deletions test/snapshots/development-bundles/two-way-crdt.test.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=457k bytes
SCENE_COMPILED_JS_SIZE_PROD=464k bytes
THE BUNDLE HAS SOURCEMAPS
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
Expand All @@ -11,8 +11,8 @@ EVAL test/snapshots/development-bundles/two-way-crdt.test.js
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 63k
MALLOC_COUNT = 14228
ALIVE_OBJS_DELTA ~= 2.85k
MALLOC_COUNT = 14369
ALIVE_OBJS_DELTA ~= 2.88k
CALL onStart()
LOG: ["Adding one to position.y=0"]
Renderer: PUT_COMPONENT e=0x0 c=1 t=1 data={"position":{"x":1,"y":0,"z":0},"rotation":{"x":0,"y":0,"z":0,"w":1},"scale":{"x":9,"y":9,"z":9},"parent":0}
Expand Down Expand Up @@ -64,4 +64,4 @@ CALL onUpdate(0.1)
OPCODES ~= 5k
MALLOC_COUNT = -40
ALIVE_OBJS_DELTA ~= -0.01k
MEMORY_USAGE_COUNT ~= 1209.00k bytes
MEMORY_USAGE_COUNT ~= 1221.21k bytes
8 changes: 4 additions & 4 deletions test/snapshots/production-bundles/append-value-crdt.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=199.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=202.6k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -9,8 +9,8 @@ EVAL test/snapshots/production-bundles/append-value-crdt.js
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 65k
MALLOC_COUNT = 12753
ALIVE_OBJS_DELTA ~= 2.85k
MALLOC_COUNT = 12882
ALIVE_OBJS_DELTA ~= 2.88k
CALL onStart()
Renderer: APPEND_VALUE e=0x200 c=1063 t=0 data={"button":0,"hit":{"position":{"x":1,"y":2,"z":3},"globalOrigin":{"x":1,"y":2,"z":3},"direction":{"x":1,"y":2,"z":3},"normalHit":{"x":1,"y":2,"z":3},"length":10,"meshName":"mesh","entityId":512},"state":1,"timestamp":1,"analog":5,"tickNumber":0}
OPCODES ~= 8k
Expand Down Expand Up @@ -55,4 +55,4 @@ CALL onUpdate(0.1)
OPCODES ~= 14k
MALLOC_COUNT = 31
ALIVE_OBJS_DELTA ~= 0.01k
MEMORY_USAGE_COUNT ~= 903.35k bytes
MEMORY_USAGE_COUNT ~= 912.38k bytes
10 changes: 5 additions & 5 deletions test/snapshots/production-bundles/billboard.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=232.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=235.6k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/billboard.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 66k
MALLOC_COUNT = 14865
ALIVE_OBJS_DELTA ~= 3.25k
OPCODES ~= 67k
MALLOC_COUNT = 14995
ALIVE_OBJS_DELTA ~= 3.27k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 4
Expand Down Expand Up @@ -77,4 +77,4 @@ CALL onUpdate(0.1)
OPCODES ~= 10k
MALLOC_COUNT = 0
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 1045.78k bytes
MEMORY_USAGE_COUNT ~= 1054.84k bytes
10 changes: 5 additions & 5 deletions test/snapshots/production-bundles/cube-deleted.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=195.7k bytes
SCENE_COMPILED_JS_SIZE_PROD=198.8k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/cube-deleted.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 55k
MALLOC_COUNT = 11907
ALIVE_OBJS_DELTA ~= 2.63k
OPCODES ~= 56k
MALLOC_COUNT = 12037
ALIVE_OBJS_DELTA ~= 2.66k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 6
Expand Down Expand Up @@ -42,4 +42,4 @@ CALL onUpdate(0.1)
OPCODES ~= 5k
MALLOC_COUNT = 1
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 866.11k bytes
MEMORY_USAGE_COUNT ~= 875.16k bytes
10 changes: 5 additions & 5 deletions test/snapshots/production-bundles/cube.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=195.6k bytes
SCENE_COMPILED_JS_SIZE_PROD=198.7k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/cube.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 55k
MALLOC_COUNT = 11880
ALIVE_OBJS_DELTA ~= 2.62k
OPCODES ~= 56k
MALLOC_COUNT = 12010
ALIVE_OBJS_DELTA ~= 2.65k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 6
Expand All @@ -32,4 +32,4 @@ CALL onUpdate(0.1)
OPCODES ~= 1k
MALLOC_COUNT = 0
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 856.02k bytes
MEMORY_USAGE_COUNT ~= 865.07k bytes
10 changes: 5 additions & 5 deletions test/snapshots/production-bundles/cubes.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=232.9k bytes
SCENE_COMPILED_JS_SIZE_PROD=236k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/cubes.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 105k
MALLOC_COUNT = 18207
ALIVE_OBJS_DELTA ~= 4.53k
OPCODES ~= 106k
MALLOC_COUNT = 18337
ALIVE_OBJS_DELTA ~= 4.56k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 6
Expand Down Expand Up @@ -1652,4 +1652,4 @@ CALL onUpdate(0.1)
OPCODES ~= 693k
MALLOC_COUNT = 0
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 1181.71k bytes
MEMORY_USAGE_COUNT ~= 1190.76k bytes
10 changes: 5 additions & 5 deletions test/snapshots/production-bundles/pointer-events.ts.crdt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SCENE_COMPILED_JS_SIZE_PROD=196.5k bytes
SCENE_COMPILED_JS_SIZE_PROD=199.7k bytes
(start empty vm 0.21.0-3680274614.commit-1808aa1)
OPCODES ~= 0k
MALLOC_COUNT = 1005
Expand All @@ -8,9 +8,9 @@ EVAL test/snapshots/production-bundles/pointer-events.js
REQUIRE: long
REQUIRE: ~system/EngineApi
REQUIRE: ~system/EngineApi
OPCODES ~= 56k
MALLOC_COUNT = 12166
ALIVE_OBJS_DELTA ~= 2.70k
OPCODES ~= 57k
MALLOC_COUNT = 12296
ALIVE_OBJS_DELTA ~= 2.73k
CALL onStart()
OPCODES ~= 0k
MALLOC_COUNT = 6
Expand Down Expand Up @@ -43,4 +43,4 @@ CALL onUpdate(0.1)
OPCODES ~= 1k
MALLOC_COUNT = 0
ALIVE_OBJS_DELTA ~= 0.00k
MEMORY_USAGE_COUNT ~= 873.75k bytes
MEMORY_USAGE_COUNT ~= 882.80k bytes
Loading
Loading