@dcl/protocol 1.0.0-3048308847.commit-5f7d537 → 1.0.0-3061598530.commit-f2e0efe

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.
@@ -0,0 +1,71 @@
1
+ // This file maps to the definition in https://rfc.decentraland.org/rfc/RFC-4
2
+ // It is mandatory to also update that RFC when modifying this file
3
+
4
+ syntax = "proto3";
5
+
6
+ package protocol.comms.rfc4;
7
+
8
+ message Packet {
9
+ oneof message {
10
+ Position position = 1;
11
+ AnnounceProfileVersion profile_version = 2;
12
+ ProfileRequest profile_request = 3;
13
+ ProfileResponse profile_response = 4;
14
+ Chat chat = 5;
15
+ Scene scene = 6;
16
+ Voice voice = 7;
17
+ }
18
+ }
19
+
20
+ message Position {
21
+ // command number
22
+ uint32 index = 1;
23
+ // world position
24
+ float position_x = 3;
25
+ float position_y = 4;
26
+ float position_z = 5;
27
+ // quaternion
28
+ float rotation_x = 6;
29
+ float rotation_y = 7;
30
+ float rotation_z = 8;
31
+ float rotation_w = 9;
32
+ }
33
+
34
+ message AnnounceProfileVersion {
35
+ uint32 profile_version = 1;
36
+
37
+ // Extension: optional download_url to fetch the profile from a profile service
38
+ // optional string download_url = 2;
39
+ }
40
+
41
+ message ProfileRequest {
42
+ string address = 4;
43
+ uint32 profile_version = 3;
44
+ }
45
+
46
+ message ProfileResponse {
47
+ string serialized_profile = 1;
48
+
49
+ // Extension: when Lambdas serializes profiles for the RPC, we could extend
50
+ // this format to prevent transmitting the serialized JSON and leverage protobuf
51
+ // directly
52
+ // Profile profile = 2;
53
+ }
54
+
55
+ message Chat {
56
+ string message = 1;
57
+ }
58
+
59
+ message Scene {
60
+ string scene_id = 1;
61
+ bytes data = 2;
62
+ }
63
+
64
+ message Voice {
65
+ bytes encoded_samples = 1;
66
+ uint32 index = 2;
67
+ VoiceCodec codec = 3;
68
+ enum VoiceCodec {
69
+ VoiceCodec_OPUS = 0;
70
+ }
71
+ }
@@ -0,0 +1,42 @@
1
+ syntax = "proto3";
2
+
3
+ package protocol.comms.v3;
4
+
5
+ message Position3DMessage {
6
+ double x = 1;
7
+ double y = 2;
8
+ double z = 3;
9
+ }
10
+
11
+ message HeartbeatMessage {
12
+ Position3DMessage position = 1;
13
+ }
14
+
15
+ message IslandChangedMessage {
16
+ string island_id = 1;
17
+ string conn_str = 2;
18
+ optional string from_island_id = 3;
19
+ map<string, Position3DMessage> peers = 4;
20
+ }
21
+
22
+ message LeftIslandMessage {
23
+ string island_id = 1;
24
+ string peer_id = 2;
25
+ }
26
+
27
+ message JoinIslandMessage {
28
+ string island_id = 1;
29
+ string peer_id = 2;
30
+ }
31
+
32
+ message IslandData {
33
+ string id = 1;
34
+ repeated string peers = 2;
35
+ uint32 maxPeers = 3;
36
+ Position3DMessage center = 4;
37
+ double radius = 5;
38
+ }
39
+
40
+ message IslandStatusMessage {
41
+ repeated IslandData data = 1;
42
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-3048308847.commit-5f7d537",
3
+ "version": "1.0.0-3061598530.commit-f2e0efe",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,5 +18,5 @@
18
18
  "ecs",
19
19
  "bff"
20
20
  ],
21
- "commit": "5f7d53705711d65a6bf2f57635e7f24e82d017f8"
21
+ "commit": "f2e0efe655a38a2218ed4afc6974af89fc66beff"
22
22
  }