@dcl/protocol 1.0.0-16915195041.commit-e9319d0 → 1.0.0-18103449748.commit-258fabc
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/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -9
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +5 -55
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +2 -1
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +6 -5
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -1
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.d.ts +32 -1305
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js +148 -6717
- package/out-js/decentraland/social_service/v2/social_service_v2.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -65
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +6 -5
- package/out-ts/decentraland/social_service/v2/social_service_v2.gen.ts +1019 -8579
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +2 -8
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/mesh_collider.proto +2 -2
- package/proto/decentraland/sdk/components/trigger_area.proto +23 -0
- package/proto/decentraland/sdk/components/trigger_area_result.proto +34 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/social_service/v2/social_service_v2.proto +11 -538
- package/out-js/decentraland/social_service/errors.gen.d.ts +0 -96
- package/out-js/decentraland/social_service/errors.gen.js +0 -405
- package/out-js/decentraland/social_service/errors.gen.js.map +0 -1
- package/out-ts/decentraland/social_service/errors.gen.ts +0 -442
- package/proto/decentraland/social_service/errors.proto +0 -30
- package/proto/decentraland/social_service/v3/social_service_v3.proto +0 -51
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/protocol",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-18103449748.commit-258fabc",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "decentraland/protocol.git",
|
|
6
6
|
"homepage": "https://github.com/decentraland/protocol#readme",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "./scripts/check-proto-compabitility.sh"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@protobuf-ts/protoc": "^2.
|
|
16
|
+
"@protobuf-ts/protoc": "^2.8.1",
|
|
17
17
|
"proto-compatibility-tool": "^1.1.2-20220925163655.commit-25bd040",
|
|
18
18
|
"typescript": "^5.0.4"
|
|
19
19
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"out-js",
|
|
31
31
|
"public"
|
|
32
32
|
],
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "258fabc1584701e63f129af3ca9895960305f703"
|
|
34
34
|
}
|
|
@@ -55,11 +55,10 @@ message Movement {
|
|
|
55
55
|
bool is_long_jump = 12;
|
|
56
56
|
bool is_long_fall = 13;
|
|
57
57
|
bool is_falling = 14;
|
|
58
|
+
|
|
58
59
|
bool is_stunned = 15;
|
|
60
|
+
|
|
59
61
|
float rotation_y = 16;
|
|
60
|
-
// interpolation
|
|
61
|
-
bool is_instant = 17;
|
|
62
|
-
bool is_emoting = 18;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
message MovementCompressed {
|
|
@@ -70,7 +69,6 @@ message MovementCompressed {
|
|
|
70
69
|
message PlayerEmote {
|
|
71
70
|
uint32 incremental_id = 1;
|
|
72
71
|
string urn = 2;
|
|
73
|
-
float timestamp = 3;
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
message SceneEmote {
|
|
@@ -103,10 +101,6 @@ message ProfileResponse {
|
|
|
103
101
|
message Chat {
|
|
104
102
|
string message = 1;
|
|
105
103
|
double timestamp = 2;
|
|
106
|
-
|
|
107
|
-
// Extension: optional forwarded_from to identify the original sender when
|
|
108
|
-
// messages are forwarded through an SFU
|
|
109
|
-
optional string forwarded_from = 3;
|
|
110
104
|
}
|
|
111
105
|
|
|
112
106
|
message Scene {
|
|
@@ -25,4 +25,4 @@ message PBLightSource {
|
|
|
25
25
|
optional float inner_angle = 9; // default = 21.8. Inner angle can't be higher than outer angle, otherwise will default to same value. Min value is 0. Max value is 179.
|
|
26
26
|
optional float outer_angle = 10; // default = 30. Outer angle can't be lower than inner angle, otherwise will inner angle will be set to same value. Max value is 179.
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|
|
@@ -45,7 +45,7 @@ enum ColliderLayer {
|
|
|
45
45
|
CL_NONE = 0; // no collisions
|
|
46
46
|
CL_POINTER = 1; // collisions with the player's pointer ray (e.g. mouse cursor hovering)
|
|
47
47
|
CL_PHYSICS = 2; // collision affecting your player's physics i.e. walls, floor, moving platfroms
|
|
48
|
-
|
|
48
|
+
CL_PLAYER = 4; // layer corresponding to any player avatar
|
|
49
49
|
CL_RESERVED2 = 8;
|
|
50
50
|
CL_RESERVED3 = 16;
|
|
51
51
|
CL_RESERVED4 = 32;
|
|
@@ -59,4 +59,4 @@ enum ColliderLayer {
|
|
|
59
59
|
CL_CUSTOM6 = 8192;
|
|
60
60
|
CL_CUSTOM7 = 16384;
|
|
61
61
|
CL_CUSTOM8 = 32768;
|
|
62
|
-
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
6
|
+
|
|
7
|
+
option (common.ecs_component_id) = 1060;
|
|
8
|
+
|
|
9
|
+
// The PBTriggerArea component is used to raise collision triggering events (through the TriggerAreaResult component)
|
|
10
|
+
// when entities enter this component's defined area.
|
|
11
|
+
//
|
|
12
|
+
// ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
|
|
13
|
+
//
|
|
14
|
+
// The area size and rotation is defined by the Entity's Transform.
|
|
15
|
+
message PBTriggerArea {
|
|
16
|
+
optional TriggerAreaMeshType mesh = 1; // default: MT_BOX
|
|
17
|
+
optional uint32 collision_mask = 2; // default: CL_PLAYER
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
enum TriggerAreaMeshType {
|
|
21
|
+
TAMT_BOX = 0;
|
|
22
|
+
TAMT_SPHERE = 1;
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/common/vectors.proto";
|
|
6
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
7
|
+
|
|
8
|
+
option (common.ecs_component_id) = 1061;
|
|
9
|
+
|
|
10
|
+
// The PBTriggerAreaResult component is used to transport the trigger collision event data for the PBTriggerArea component.
|
|
11
|
+
// ADR: https://github.com/decentraland/adr/blob/2b30a5e2b4f359a7c22a68fb827db282f6e5f887/content/ADR-258-trigger-areas.md
|
|
12
|
+
message PBTriggerAreaResult {
|
|
13
|
+
// Trigger data object
|
|
14
|
+
message Trigger {
|
|
15
|
+
uint32 entity = 1; // The entity that triggered the Trigger Area
|
|
16
|
+
uint32 layers = 2; // The collision layermask of the entity that triggered the Trigger Area
|
|
17
|
+
decentraland.common.Vector3 position = 3; // The position of the entity that triggered the trigger
|
|
18
|
+
decentraland.common.Quaternion rotation = 4; // The rotation of the entity that triggered the trigger
|
|
19
|
+
decentraland.common.Vector3 scale = 5; // The scale of the entity that triggered the trigger
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
uint32 triggered_entity = 1; // The entity that was triggered (this is the entity that owns the trigger area)
|
|
23
|
+
decentraland.common.Vector3 triggered_entity_position = 2; // The position of the triggered entity at the time of the trigger
|
|
24
|
+
decentraland.common.Quaternion triggered_entity_rotation = 3; // The rotation of the triggered entity at the time of the trigger
|
|
25
|
+
TriggerAreaEventType event_type = 4; // The state of the trigger event (ENTER, STAY, EXIT)
|
|
26
|
+
uint32 timestamp = 5; // The timestamp of the trigger event
|
|
27
|
+
Trigger trigger = 6;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
enum TriggerAreaEventType {
|
|
31
|
+
TAET_ENTER = 0;
|
|
32
|
+
TAET_STAY = 1;
|
|
33
|
+
TAET_EXIT = 2;
|
|
34
|
+
}
|
|
@@ -10,9 +10,7 @@ option (common.ecs_component_id) = 1076;
|
|
|
10
10
|
// an 'instant' transition (like using speed/time = 0)
|
|
11
11
|
// * The lookAtEntity defines to which entity the Camera has to look at constantly (independent from
|
|
12
12
|
// the holding entity transform).
|
|
13
|
-
// * The fov defines the Field of View of the virtual camera
|
|
14
13
|
message PBVirtualCamera {
|
|
15
14
|
optional common.CameraTransition default_transition = 1;
|
|
16
15
|
optional uint32 look_at_entity = 2;
|
|
17
|
-
optional float fov = 3; // default: 60
|
|
18
16
|
}
|