Skip to content

Commit 9fe6ed4

Browse files
popuzmikhail-dclNickKhalow
authored
Feat: E@ new proto messages (iteration I) (#194)
* added full movement message for explorer-alpha * forgotten one-of * add simple emote message * Adjust Emotes protocol * protocol_version for Packet --------- Co-authored-by: Mikhail Agapov <[email protected]> Co-authored-by: Mikhail Agapov <[email protected]> Co-authored-by: nickkhalow <[email protected]>
1 parent f692c7a commit 9fe6ed4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

proto/decentraland/kernel/comms/rfc4/comms.proto

+37
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ message Packet {
1414
Chat chat = 5;
1515
Scene scene = 6;
1616
Voice voice = 7;
17+
Movement movement = 8;
18+
PlayerEmote player_emote = 9;
19+
SceneEmote scene_emote = 10;
1720
}
21+
uint32 protocol_version = 11;
1822
}
1923

2024
message Position {
@@ -31,6 +35,39 @@ message Position {
3135
float rotation_w = 9;
3236
}
3337

38+
message Movement {
39+
// command number
40+
float timestamp = 1;
41+
// world position
42+
float position_x = 2;
43+
float position_y = 3;
44+
float position_z = 4;
45+
// velocity
46+
float velocity_x = 5;
47+
float velocity_y = 6;
48+
float velocity_z = 7;
49+
// animations
50+
float movement_blend_value = 8;
51+
float slide_blend_value = 9;
52+
bool is_grounded = 10;
53+
bool is_jumping = 11;
54+
bool is_long_jump = 12;
55+
bool is_long_fall = 13;
56+
bool is_falling = 14;
57+
58+
bool is_stunned = 15;
59+
}
60+
61+
message PlayerEmote {
62+
uint32 incremental_id = 1;
63+
string urn = 2;
64+
}
65+
66+
message SceneEmote {
67+
string scene_entity_id = 1;
68+
string source = 2;
69+
}
70+
3471
message AnnounceProfileVersion {
3572
uint32 profile_version = 1;
3673

0 commit comments

Comments
 (0)