@dcl/sdk 7.0.0-2698073429.commit-b4ce057 → 7.0.0-2706310238.commit-e895a52

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.
@@ -4,12 +4,13 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1070;
5
5
  import "common/Vector3.proto";
6
6
 
7
+ enum AvatarModifier {
8
+ HIDE_AVATARS = 0;
9
+ DISABLE_PASSPORTS = 1;
10
+ }
11
+
7
12
  message PBAvatarModifierArea {
8
13
  Vector3 area = 1;
9
14
  repeated string exclude_ids = 2;
10
- repeated Modifier modifiers = 3;
11
- enum Modifier {
12
- HIDE_AVATARS = 0;
13
- DISABLE_PASSPORTS = 1;
14
- }
15
+ repeated AvatarModifier modifiers = 3;
15
16
  }
@@ -4,11 +4,12 @@ import "common/id.proto";
4
4
  option (ecs_component_id) = 1071;
5
5
  import "common/Vector3.proto";
6
6
 
7
+ enum CameraMode {
8
+ FIRST_PERSON = 0;
9
+ THIRD_PERSON = 1;
10
+ }
11
+
7
12
  message PBCameraModeArea {
8
13
  Vector3 area = 1;
9
14
  CameraMode mode = 2;
10
- enum CameraMode {
11
- FIRST_PERSON = 0;
12
- THIRD_PERSON = 1;
13
- }
14
15
  }
@@ -2,9 +2,10 @@
2
2
 
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1060;
5
+ import "common/ActionButton.proto";
5
6
 
6
7
  message PBOnPointerDown {
7
- int32 button = 1;
8
+ ActionButton button = 1;
8
9
  string hover_text = 2;
9
10
  float distance = 3;
10
11
  bool show_feedback = 4;
@@ -3,9 +3,10 @@
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1066;
5
5
  import "common/Vector3.proto";
6
+ import "common/ActionButton.proto";
6
7
 
7
8
  message PBOnPointerDownResult {
8
- int32 button = 2;
9
+ ActionButton button = 2;
9
10
  string meshName = 3;
10
11
  Vector3 origin = 4;
11
12
  Vector3 direction = 5;
@@ -2,9 +2,10 @@
2
2
 
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1061;
5
+ import "common/ActionButton.proto";
5
6
 
6
7
  message PBOnPointerUp {
7
- int32 button = 1;
8
+ ActionButton button = 1;
8
9
  string hover_text = 2;
9
10
  float distance = 3;
10
11
  bool show_feedback = 4;
@@ -3,9 +3,10 @@
3
3
  import "common/id.proto";
4
4
  option (ecs_component_id) = 1065;
5
5
  import "common/Vector3.proto";
6
+ import "common/ActionButton.proto";
6
7
 
7
8
  message PBOnPointerUpResult {
8
- int32 button = 2;
9
+ ActionButton button = 2;
9
10
  string meshName = 3;
10
11
  Vector3 origin = 4;
11
12
  Vector3 direction = 5;
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+
3
+ enum ActionButton {
4
+ POINTER = 0;
5
+ PRIMARY = 1;
6
+ SECONDARY = 2;
7
+ ANY = 3;
8
+ FORWARD = 4;
9
+ BACKWARD = 5;
10
+ RIGHT = 6;
11
+ LEFT = 7;
12
+ JUMP = 8;
13
+ WALK = 9;
14
+ ACTION_3 = 10;
15
+ ACTION_4 = 11;
16
+ ACTION_5 = 12;
17
+ ACTION_6 = 13;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.0-2698073429.commit-b4ce057",
3
+ "version": "7.0.0-2706310238.commit-e895a52",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "src/cli/**/*.js"
28
28
  ],
29
29
  "dependencies": {
30
- "@dcl/amd": "6.11.4-2698073429.commit-b4ce057",
31
- "@dcl/build-ecs": "6.11.4-2698073429.commit-b4ce057",
30
+ "@dcl/amd": "6.11.4-2706310238.commit-e895a52",
31
+ "@dcl/build-ecs": "6.11.4-2706310238.commit-e895a52",
32
32
  "@dcl/kernel": "1.0.0-2638443584.commit-696a74b",
33
33
  "@dcl/posix": "^1.0.4",
34
34
  "@dcl/schemas": "4.8.0",
@@ -38,5 +38,5 @@
38
38
  "ignore": "^5.1.8"
39
39
  },
40
40
  "minCliVersion": "3.10.2",
41
- "commit": "b4ce05710cad0816654f661b6363f41721574426"
41
+ "commit": "e895a52207fa85db09c516b06af736febac2ea12"
42
42
  }
@@ -1,13 +1,43 @@
1
+ declare const enum ActionButton {
2
+ POINTER = 0,
3
+ PRIMARY = 1,
4
+ SECONDARY = 2,
5
+ ANY = 3,
6
+ FORWARD = 4,
7
+ BACKWARD = 5,
8
+ RIGHT = 6,
9
+ LEFT = 7,
10
+ JUMP = 8,
11
+ WALK = 9,
12
+ ACTION_3 = 10,
13
+ ACTION_4 = 11,
14
+ ACTION_5 = 12,
15
+ ACTION_6 = 13,
16
+ UNRECOGNIZED = -1
17
+ }
18
+
1
19
  /**
2
20
  * @public
3
21
  */
4
22
  declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
5
23
 
24
+ declare const enum AvatarModifier {
25
+ HIDE_AVATARS = 0,
26
+ DISABLE_PASSPORTS = 1,
27
+ UNRECOGNIZED = -1
28
+ }
29
+
6
30
  /**
7
31
  * @public
8
32
  */
9
33
  declare type ByteBuffer = ReturnType<typeof createByteBuffer>;
10
34
 
35
+ declare const enum CameraMode {
36
+ FIRST_PERSON = 0,
37
+ THIRD_PERSON = 1,
38
+ UNRECOGNIZED = -1
39
+ }
40
+
11
41
  declare interface Color3 {
12
42
  r: number;
13
43
  g: number;
@@ -1161,13 +1191,7 @@ declare interface PBAvatarAttach {
1161
1191
  declare interface PBAvatarModifierArea {
1162
1192
  area: Vector3_2 | undefined;
1163
1193
  excludeIds: string[];
1164
- modifiers: PBAvatarModifierArea_Modifier[];
1165
- }
1166
-
1167
- declare enum PBAvatarModifierArea_Modifier {
1168
- HIDE_AVATARS = 0,
1169
- DISABLE_PASSPORTS = 1,
1170
- UNRECOGNIZED = -1
1194
+ modifiers: AvatarModifier[];
1171
1195
  }
1172
1196
 
1173
1197
  declare interface PBAvatarShape {
@@ -1200,13 +1224,7 @@ declare interface PBBoxShape {
1200
1224
 
1201
1225
  declare interface PBCameraModeArea {
1202
1226
  area: Vector3_2 | undefined;
1203
- mode: PBCameraModeArea_CameraMode;
1204
- }
1205
-
1206
- declare enum PBCameraModeArea_CameraMode {
1207
- FIRST_PERSON = 0,
1208
- THIRD_PERSON = 1,
1209
- UNRECOGNIZED = -1
1227
+ mode: CameraMode;
1210
1228
  }
1211
1229
 
1212
1230
  declare interface PBCylinderShape {
@@ -1235,14 +1253,14 @@ declare interface PBNFTShape {
1235
1253
  }
1236
1254
 
1237
1255
  declare interface PBOnPointerDown {
1238
- button: number;
1256
+ button: ActionButton;
1239
1257
  hoverText: string;
1240
1258
  distance: number;
1241
1259
  showFeedback: boolean;
1242
1260
  }
1243
1261
 
1244
1262
  declare interface PBOnPointerDownResult {
1245
- button: number;
1263
+ button: ActionButton;
1246
1264
  meshName: string;
1247
1265
  origin: Vector3_2 | undefined;
1248
1266
  direction: Vector3_2 | undefined;
@@ -1253,14 +1271,14 @@ declare interface PBOnPointerDownResult {
1253
1271
  }
1254
1272
 
1255
1273
  declare interface PBOnPointerUp {
1256
- button: number;
1274
+ button: ActionButton;
1257
1275
  hoverText: string;
1258
1276
  distance: number;
1259
1277
  showFeedback: boolean;
1260
1278
  }
1261
1279
 
1262
1280
  declare interface PBOnPointerUpResult {
1263
- button: number;
1281
+ button: ActionButton;
1264
1282
  meshName: string;
1265
1283
  origin: Vector3_2 | undefined;
1266
1284
  direction: Vector3_2 | undefined;
@@ -1970,7 +1988,7 @@ declare namespace WireMessage {
1970
1988
  function readHeader(buf: ByteBuffer): Header | null;
1971
1989
  }
1972
1990
 
1973
- declare enum YGAlign {
1991
+ declare const enum YGAlign {
1974
1992
  YGAlignAuto = 0,
1975
1993
  YGAlignFlexStart = 1,
1976
1994
  YGAlignCenter = 2,
@@ -1982,20 +2000,20 @@ declare enum YGAlign {
1982
2000
  UNRECOGNIZED = -1
1983
2001
  }
1984
2002
 
1985
- declare enum YGDirection {
2003
+ declare const enum YGDirection {
1986
2004
  YGDirectionInherit = 0,
1987
2005
  YGDirectionLTR = 1,
1988
2006
  YGDirectionRTL = 2,
1989
2007
  UNRECOGNIZED = -1
1990
2008
  }
1991
2009
 
1992
- declare enum YGDisplay {
2010
+ declare const enum YGDisplay {
1993
2011
  YGDisplayFlex = 0,
1994
2012
  YGDisplayNone = 1,
1995
2013
  UNRECOGNIZED = -1
1996
2014
  }
1997
2015
 
1998
- declare enum YGFlexDirection {
2016
+ declare const enum YGFlexDirection {
1999
2017
  YGFlexDirectionColumn = 0,
2000
2018
  YGFlexDirectionColumnReverse = 1,
2001
2019
  YGFlexDirectionRow = 2,
@@ -2003,7 +2021,7 @@ declare enum YGFlexDirection {
2003
2021
  UNRECOGNIZED = -1
2004
2022
  }
2005
2023
 
2006
- declare enum YGJustify {
2024
+ declare const enum YGJustify {
2007
2025
  YGJustifyFlexStart = 0,
2008
2026
  YGJustifyCenter = 1,
2009
2027
  YGJustifyFlexEnd = 2,
@@ -2013,21 +2031,21 @@ declare enum YGJustify {
2013
2031
  UNRECOGNIZED = -1
2014
2032
  }
2015
2033
 
2016
- declare enum YGOverflow {
2034
+ declare const enum YGOverflow {
2017
2035
  YGOverflowVisible = 0,
2018
2036
  YGOverflowHidden = 1,
2019
2037
  YGOverflowScroll = 2,
2020
2038
  UNRECOGNIZED = -1
2021
2039
  }
2022
2040
 
2023
- declare enum YGPositionType {
2041
+ declare const enum YGPositionType {
2024
2042
  YGPositionTypeStatic = 0,
2025
2043
  YGPositionTypeRelative = 1,
2026
2044
  YGPositionTypeAbsolute = 2,
2027
2045
  UNRECOGNIZED = -1
2028
2046
  }
2029
2047
 
2030
- declare enum YGUnit {
2048
+ declare const enum YGUnit {
2031
2049
  YGUnitUndefined = 0,
2032
2050
  YGUnitPoint = 1,
2033
2051
  YGUnitPercent = 2,
@@ -2035,7 +2053,7 @@ declare enum YGUnit {
2035
2053
  UNRECOGNIZED = -1
2036
2054
  }
2037
2055
 
2038
- declare enum YGWrap {
2056
+ declare const enum YGWrap {
2039
2057
  YGWrapNoWrap = 0,
2040
2058
  YGWrapWrap = 1,
2041
2059
  YGWrapWrapReverse = 2,
@@ -14,8 +14,11 @@
14
14
  "removeComments": true,
15
15
  "inlineSources": true,
16
16
  "useDefineForClassFields": false,
17
+ "preserveConstEnums": true,
17
18
  "allowJs": true,
18
- "lib": ["ES2020"],
19
+ "lib": [
20
+ "ES2020"
21
+ ],
19
22
  "types": [
20
23
  "env",
21
24
  "ecs7",