@dcl/protocol 1.0.0-3055298061.commit-653f46e → 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
|
+
}
|
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-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": "
|
|
21
|
+
"commit": "f2e0efe655a38a2218ed4afc6974af89fc66beff"
|
|
22
22
|
}
|