@dcl/sdk 7.0.0-2598240213.commit-e7b25e0 → 7.0.0-2649664321.commit-63b4b53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ecs7/index.d.ts +11 -7
- package/dist/ecs7/index.js +23 -7
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/BoxShape.proto +1 -2
- package/dist/ecs7/proto-definitions/CylinderShape.proto +1 -2
- package/dist/ecs7/proto-definitions/NFTShape.proto +0 -1
- package/dist/ecs7/proto-definitions/PlaneShape.proto +1 -3
- package/dist/ecs7/proto-definitions/README.md +1 -1
- package/dist/ecs7/proto-definitions/SphereShape.proto +1 -1
- package/dist/ecs7/proto-definitions/TextShape.proto +5 -7
- package/package.json +5 -5
- package/types/ecs7/index.d.ts +11 -7
@@ -3,10 +3,9 @@ syntax = "proto3";
|
|
3
3
|
import "common/id.proto";
|
4
4
|
option (ecs_component_id) = 1013;
|
5
5
|
|
6
|
-
message PBBoxShape {
|
6
|
+
message PBBoxShape {
|
7
7
|
bool with_collisions = 1;
|
8
8
|
bool is_pointer_blocker = 2;
|
9
|
-
// TODO: should visible be another component? that maybe affects all the entities
|
10
9
|
bool visible = 3;
|
11
10
|
repeated float uvs = 4;
|
12
11
|
}
|
@@ -3,10 +3,9 @@
|
|
3
3
|
import "common/id.proto";
|
4
4
|
option (ecs_component_id) = 1016;
|
5
5
|
|
6
|
-
message PBCylinderShape {
|
6
|
+
message PBCylinderShape {
|
7
7
|
bool with_collisions = 1;
|
8
8
|
bool is_pointer_blocker = 2;
|
9
|
-
// TODO: should visible be another component? that maybe affects all the entities
|
10
9
|
bool visible = 3;
|
11
10
|
float radius_top = 4;
|
12
11
|
float radius_bottom = 5;
|
@@ -3,11 +3,9 @@
|
|
3
3
|
import "common/id.proto";
|
4
4
|
option (ecs_component_id) = 1014;
|
5
5
|
|
6
|
-
message PBPlaneShape {
|
6
|
+
message PBPlaneShape {
|
7
7
|
bool with_collisions = 1;
|
8
8
|
bool is_pointer_blocker = 2;
|
9
|
-
// TODO: should visible be another component? that maybe affects all the entities
|
10
9
|
bool visible = 3;
|
11
|
-
// TODO: this could be better serialized as u00 v00 u01 v01 u10 v10 u11 v11 for speed
|
12
10
|
repeated float uvs = 4;
|
13
11
|
}
|
@@ -29,4 +29,4 @@ The definition must be the minimal proto code, and it shouldn't have a specific
|
|
29
29
|
For example, in the unity-renderer repo, it'll be necessary to add the `csharp_namespace` option but it's the responsibility of this particular implementation. This code option doesn't define how the component is.
|
30
30
|
|
31
31
|
# Test component
|
32
|
-
If you write a proto and then push, CI will fail because the tests will fail. All the components need to be tested. `@dcl/ecs/test/components` has some examples!
|
32
|
+
If you write a proto and then push, CI will fail because the tests will fail. All the components need to be tested. `@dcl/ecs/test/components` has some examples!
|
@@ -7,13 +7,11 @@ import "common/Color3.proto";
|
|
7
7
|
|
8
8
|
message PBTextShape {
|
9
9
|
string text = 1;
|
10
|
-
|
11
|
-
// this should be removed
|
12
10
|
bool visible = 2;
|
13
11
|
string font = 3;
|
14
12
|
float opacity = 4;
|
15
|
-
float
|
16
|
-
bool
|
13
|
+
float font_Size = 5;
|
14
|
+
bool font_autoSize = 6;
|
17
15
|
string h_text_align = 7;
|
18
16
|
string v_text_align = 8;
|
19
17
|
float width = 9;
|
@@ -26,10 +24,10 @@ message PBTextShape {
|
|
26
24
|
int32 line_count = 16;
|
27
25
|
bool text_wrapping = 17;
|
28
26
|
float shadow_blur = 18;
|
29
|
-
float
|
30
|
-
float
|
27
|
+
float shadow_offsetX = 19;
|
28
|
+
float shadow_offsetY = 20;
|
31
29
|
float outline_width = 21;
|
32
30
|
Color3 shadow_color = 22;
|
33
31
|
Color3 outline_color = 23;
|
34
32
|
Color3 text_color = 24;
|
35
|
-
}
|
33
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dcl/sdk",
|
3
|
-
"version": "7.0.0-
|
3
|
+
"version": "7.0.0-2649664321.commit-63b4b53",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/src/index.js",
|
6
6
|
"typings": "dist/index.d.ts",
|
@@ -27,9 +27,9 @@
|
|
27
27
|
"src/cli/**/*.js"
|
28
28
|
],
|
29
29
|
"dependencies": {
|
30
|
-
"@dcl/amd": "6.11.
|
31
|
-
"@dcl/build-ecs": "6.11.
|
32
|
-
"@dcl/kernel": "^1.0.0-
|
30
|
+
"@dcl/amd": "6.11.4-2649664321.commit-63b4b53",
|
31
|
+
"@dcl/build-ecs": "6.11.4-2649664321.commit-63b4b53",
|
32
|
+
"@dcl/kernel": "^1.0.0-2625011593.commit-d45c691",
|
33
33
|
"@dcl/posix": "^1.0.4",
|
34
34
|
"@dcl/schemas": "4.8.0",
|
35
35
|
"@dcl/unity-renderer": "^1.0.40531-20220621125654.commit-472137e",
|
@@ -38,5 +38,5 @@
|
|
38
38
|
"ignore": "^5.1.8"
|
39
39
|
},
|
40
40
|
"minCliVersion": "3.10.2",
|
41
|
-
"commit": "
|
41
|
+
"commit": "63b4b53aaaefdc347c1299a7255b522084f3b1ab"
|
42
42
|
}
|
package/types/ecs7/index.d.ts
CHANGED
@@ -113,9 +113,19 @@ declare function createByteBuffer(options?: CreateByteBufferOptions): {
|
|
113
113
|
*/
|
114
114
|
size(): number;
|
115
115
|
/**
|
116
|
-
*
|
116
|
+
* Take care using this function, if you modify the data after, the
|
117
|
+
* returned subarray will change too. If you'll modify the content of the
|
118
|
+
* bytebuffer, maybe you want to use toCopiedBinary()
|
119
|
+
*
|
120
|
+
* @returns The subarray from 0 to offset as reference.
|
117
121
|
*/
|
118
122
|
toBinary(): Uint8Array;
|
123
|
+
/**
|
124
|
+
* Safe copied buffer of the current data of ByteBuffer
|
125
|
+
*
|
126
|
+
* @returns The subarray from 0 to offset.
|
127
|
+
*/
|
128
|
+
toCopiedBinary(): Uint8Array;
|
119
129
|
writeBuffer(value: Uint8Array, writeLength?: boolean): void;
|
120
130
|
writeFloat32(value: number): void;
|
121
131
|
writeFloat64(value: number): void;
|
@@ -1141,7 +1151,6 @@ declare interface PBAudioStream {
|
|
1141
1151
|
declare interface PBBoxShape {
|
1142
1152
|
withCollisions: boolean;
|
1143
1153
|
isPointerBlocker: boolean;
|
1144
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1145
1154
|
visible: boolean;
|
1146
1155
|
uvs: number[];
|
1147
1156
|
}
|
@@ -1149,7 +1158,6 @@ declare interface PBBoxShape {
|
|
1149
1158
|
declare interface PBCylinderShape {
|
1150
1159
|
withCollisions: boolean;
|
1151
1160
|
isPointerBlocker: boolean;
|
1152
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1153
1161
|
visible: boolean;
|
1154
1162
|
radiusTop: number;
|
1155
1163
|
radiusBottom: number;
|
@@ -1165,7 +1173,6 @@ declare interface PBGLTFShape {
|
|
1165
1173
|
declare interface PBNFTShape {
|
1166
1174
|
withCollisions: boolean;
|
1167
1175
|
isPointerBlocker: boolean;
|
1168
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1169
1176
|
visible: boolean;
|
1170
1177
|
src: string;
|
1171
1178
|
assetId: string;
|
@@ -1212,9 +1219,7 @@ declare interface PBOnPointerUpResult {
|
|
1212
1219
|
declare interface PBPlaneShape {
|
1213
1220
|
withCollisions: boolean;
|
1214
1221
|
isPointerBlocker: boolean;
|
1215
|
-
/** TODO: should visible be another component? that maybe affects all the entities */
|
1216
1222
|
visible: boolean;
|
1217
|
-
/** TODO: this could be better serialized as u00 v00 u01 v01 u10 v10 u11 v11 for speed */
|
1218
1223
|
uvs: number[];
|
1219
1224
|
}
|
1220
1225
|
|
@@ -1226,7 +1231,6 @@ declare interface PBSphereShape {
|
|
1226
1231
|
|
1227
1232
|
declare interface PBTextShape {
|
1228
1233
|
text: string;
|
1229
|
-
/** this should be removed */
|
1230
1234
|
visible: boolean;
|
1231
1235
|
font: string;
|
1232
1236
|
opacity: number;
|