@dcl/protocol 1.0.0-22583117520.commit-28394c4 → 1.0.0-22584828914.commit-50f6aeb
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 +58 -0
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +393 -19
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +10 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +52 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +5 -1
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +31 -3
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -1
- package/out-js/decentraland/sdk/components/tween.gen.d.ts +36 -0
- package/out-js/decentraland/sdk/components/tween.gen.js +302 -6
- package/out-js/decentraland/sdk/components/tween.gen.js.map +1 -1
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +451 -3
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +51 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +44 -3
- package/out-ts/decentraland/sdk/components/tween.gen.ts +333 -0
- package/package.json +3 -3
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +38 -1
- package/proto/decentraland/sdk/components/audio_analysis.proto +44 -0
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +21 -0
- package/proto/decentraland/sdk/components/common/input_action.proto +8 -0
- package/proto/decentraland/sdk/components/input_modifier.proto +2 -0
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/pointer_events.proto +2 -0
- package/proto/decentraland/sdk/components/tween.proto +18 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +2 -0
|
@@ -18,6 +18,7 @@ message Packet {
|
|
|
18
18
|
PlayerEmote player_emote = 9;
|
|
19
19
|
SceneEmote scene_emote = 10;
|
|
20
20
|
MovementCompressed movement_compressed = 12;
|
|
21
|
+
LookAtPosition look_at_position = 13;
|
|
21
22
|
}
|
|
22
23
|
uint32 protocol_version = 11;
|
|
23
24
|
}
|
|
@@ -51,26 +52,58 @@ message Movement {
|
|
|
51
52
|
float movement_blend_value = 8;
|
|
52
53
|
float slide_blend_value = 9;
|
|
53
54
|
bool is_grounded = 10;
|
|
54
|
-
bool is_jumping = 11;
|
|
55
|
+
bool is_jumping = 11; // deprecated
|
|
56
|
+
int32 jump_count = 24;
|
|
55
57
|
bool is_long_jump = 12;
|
|
56
58
|
bool is_long_fall = 13;
|
|
57
59
|
bool is_falling = 14;
|
|
58
60
|
bool is_stunned = 15;
|
|
61
|
+
GlideState glide_state = 23;
|
|
59
62
|
float rotation_y = 16;
|
|
60
63
|
// interpolation
|
|
61
64
|
bool is_instant = 17;
|
|
62
65
|
bool is_emoting = 18;
|
|
66
|
+
// head-sync (enabled flags + world-space yaw and pitch angles, in degrees)
|
|
67
|
+
bool head_ik_yaw_enabled = 19;
|
|
68
|
+
bool head_ik_pitch_enabled = 20;
|
|
69
|
+
float head_yaw = 21;
|
|
70
|
+
float head_pitch = 22;
|
|
71
|
+
enum GlideState {
|
|
72
|
+
PROP_CLOSED = 0;
|
|
73
|
+
OPENING_PROP = 1;
|
|
74
|
+
GLIDING = 2;
|
|
75
|
+
CLOSING_PROP = 3;
|
|
76
|
+
}
|
|
63
77
|
}
|
|
64
78
|
|
|
65
79
|
message MovementCompressed {
|
|
66
80
|
int32 temporal_data = 1; // bit-compressed: timestamp + animations
|
|
67
81
|
int64 movement_data = 2; // bit-compressed: position + velocity
|
|
82
|
+
int32 head_sync_data = 3; // bit-compressed: enabled flags + yaw + pitch
|
|
68
83
|
}
|
|
69
84
|
|
|
70
85
|
message PlayerEmote {
|
|
71
86
|
uint32 incremental_id = 1;
|
|
72
87
|
string urn = 2;
|
|
73
88
|
float timestamp = 3;
|
|
89
|
+
optional bool is_stopping = 4; // true means the emote has been stopped in the sender's client
|
|
90
|
+
optional bool is_repeating = 5; // true when it is not the first time the looping animation plays
|
|
91
|
+
optional int32 interaction_id = 6; // identifies an interaction univocaly, established when the start animation is triggered
|
|
92
|
+
optional int32 social_emote_outcome = 7; // -1 means it does not use an outcome animation
|
|
93
|
+
optional bool is_reacting = 8; // to a social emote started by other user
|
|
94
|
+
optional string social_emote_initiator = 9; // wallet address of the user that initiated social emote
|
|
95
|
+
optional string target_avatar = 10; // wallet address of the user whose avatar is the target of a directed emote
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Message sent to force an avatar to look at a position
|
|
99
|
+
message LookAtPosition
|
|
100
|
+
{
|
|
101
|
+
float timestamp = 1;
|
|
102
|
+
// world position
|
|
103
|
+
float position_x = 2;
|
|
104
|
+
float position_y = 3;
|
|
105
|
+
float position_z = 4;
|
|
106
|
+
string target_avatar_wallet_address = 5;
|
|
74
107
|
}
|
|
75
108
|
|
|
76
109
|
message SceneEmote {
|
|
@@ -103,6 +136,10 @@ message ProfileResponse {
|
|
|
103
136
|
message Chat {
|
|
104
137
|
string message = 1;
|
|
105
138
|
double timestamp = 2;
|
|
139
|
+
|
|
140
|
+
// Extension: optional forwarded_from to identify the original sender when
|
|
141
|
+
// messages are forwarded through an SFU
|
|
142
|
+
optional string forwarded_from = 3;
|
|
106
143
|
}
|
|
107
144
|
|
|
108
145
|
message Scene {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package decentraland.sdk.components;
|
|
3
|
+
|
|
4
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
5
|
+
option (common.ecs_component_id) = 1212;
|
|
6
|
+
|
|
7
|
+
enum PBAudioAnalysisMode {
|
|
8
|
+
MODE_RAW = 0;
|
|
9
|
+
MODE_LOGARITHMIC = 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message PBAudioAnalysis {
|
|
13
|
+
|
|
14
|
+
// Parameters section
|
|
15
|
+
PBAudioAnalysisMode mode = 1;
|
|
16
|
+
|
|
17
|
+
// Used only when mode == MODE_LOGARITHMIC
|
|
18
|
+
optional float amplitude_gain = 100;
|
|
19
|
+
optional float bands_gain = 101;
|
|
20
|
+
// End when mode == MODE_LOGARITHMIC
|
|
21
|
+
|
|
22
|
+
// End Parameters section
|
|
23
|
+
|
|
24
|
+
// Result section
|
|
25
|
+
float amplitude = 200;
|
|
26
|
+
|
|
27
|
+
// Protobuf doesn't support fixed arrays -> 8 band fields
|
|
28
|
+
float band_0 = 201;
|
|
29
|
+
float band_1 = 202;
|
|
30
|
+
float band_2 = 203;
|
|
31
|
+
float band_3 = 204;
|
|
32
|
+
float band_4 = 205;
|
|
33
|
+
float band_5 = 206;
|
|
34
|
+
float band_6 = 207;
|
|
35
|
+
float band_7 = 208;
|
|
36
|
+
|
|
37
|
+
// End Result section
|
|
38
|
+
|
|
39
|
+
// Future fields
|
|
40
|
+
// float spectral_centroid = 13;
|
|
41
|
+
// float spectral_flux = 14;
|
|
42
|
+
// bool onset = 15;
|
|
43
|
+
// float bpm = 16;
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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) = 1211;
|
|
8
|
+
|
|
9
|
+
// The PBAvatarLocomotionSettings component allows scenes to modify locomotion settings defining things such
|
|
10
|
+
// as the avatar movement speed, jump height etc.
|
|
11
|
+
message PBAvatarLocomotionSettings {
|
|
12
|
+
optional float walk_speed = 1; // Maximum speed when walking (in meters per second)
|
|
13
|
+
optional float jog_speed = 2; // Maximum speed when jogging (in meters per second)
|
|
14
|
+
optional float run_speed = 3; // Maximum speed when running (in meters per second)
|
|
15
|
+
optional float jump_height = 4; // Height of a regular jump (in meters)
|
|
16
|
+
optional float run_jump_height = 5; // Height of a jump while running (in meters)
|
|
17
|
+
optional float hard_landing_cooldown = 6; // Cooldown time after a hard landing before the avatar can move again (in seconds)
|
|
18
|
+
optional float double_jump_height = 7; // Height of the double jump (in meters)
|
|
19
|
+
optional float gliding_speed = 8; // Maximum speed when gliding (in meters per second)
|
|
20
|
+
optional float gliding_falling_speed = 9; // Maximum falling speed when gliding (in meters per second)
|
|
21
|
+
}
|
|
@@ -17,6 +17,7 @@ enum InputAction {
|
|
|
17
17
|
IA_ACTION_4 = 11;
|
|
18
18
|
IA_ACTION_5 = 12;
|
|
19
19
|
IA_ACTION_6 = 13;
|
|
20
|
+
IA_MODIFIER = 14;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
// PointerEventType is a kind of interaction that can be detected.
|
|
@@ -25,4 +26,11 @@ enum PointerEventType {
|
|
|
25
26
|
PET_DOWN = 1;
|
|
26
27
|
PET_HOVER_ENTER = 2;
|
|
27
28
|
PET_HOVER_LEAVE = 3;
|
|
29
|
+
PET_PROXIMITY_ENTER = 4;
|
|
30
|
+
PET_PROXIMITY_LEAVE = 5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
enum InteractionType {
|
|
34
|
+
CURSOR = 0;
|
|
35
|
+
PROXIMITY = 1;
|
|
28
36
|
}
|
|
@@ -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
|
+
}
|
|
@@ -51,11 +51,13 @@ message PBPointerEvents {
|
|
|
51
51
|
optional bool show_feedback = 4; // enable or disable hover text and highlight (default true)
|
|
52
52
|
optional bool show_highlight = 5; // enable or disable hover highlight (default true)
|
|
53
53
|
optional float max_player_distance = 6; // range of interaction from the avatar's position (default 0)
|
|
54
|
+
optional uint32 priority = 7; // resolution order when multiple events overlap, higher wins (default 0)
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
message Entry {
|
|
57
58
|
common.PointerEventType event_type = 1; // the kind of interaction to detect
|
|
58
59
|
Info event_info = 2; // additional configuration for this detection
|
|
60
|
+
optional common.InteractionType interaction_type = 3; // the type of interaction source (default 0 == CURSOR)
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
repeated Entry pointer_events = 1; // the list of relevant events to detect
|
|
@@ -19,6 +19,8 @@ message PBTween {
|
|
|
19
19
|
RotateContinuous rotate_continuous = 9;
|
|
20
20
|
MoveContinuous move_continuous = 10;
|
|
21
21
|
TextureMoveContinuous texture_move_continuous = 11;
|
|
22
|
+
MoveRotateScale move_rotate_scale = 12;
|
|
23
|
+
MoveRotateScaleContinuous move_rotate_scale_continuous = 13;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
optional bool playing = 6; // default true (pause or running)
|
|
@@ -41,6 +43,15 @@ message Scale {
|
|
|
41
43
|
decentraland.common.Vector3 end = 2;
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
message MoveRotateScale {
|
|
47
|
+
decentraland.common.Vector3 position_start = 1;
|
|
48
|
+
decentraland.common.Vector3 position_end = 2;
|
|
49
|
+
decentraland.common.Quaternion rotation_start = 3;
|
|
50
|
+
decentraland.common.Quaternion rotation_end = 4;
|
|
51
|
+
decentraland.common.Vector3 scale_start = 5;
|
|
52
|
+
decentraland.common.Vector3 scale_end = 6;
|
|
53
|
+
}
|
|
54
|
+
|
|
44
55
|
// This tween mode allows to move the texture of a PbrMaterial or UnlitMaterial.
|
|
45
56
|
// You can also specify the movement type (offset or tiling)
|
|
46
57
|
message TextureMove {
|
|
@@ -59,6 +70,13 @@ message MoveContinuous {
|
|
|
59
70
|
float speed = 2;
|
|
60
71
|
}
|
|
61
72
|
|
|
73
|
+
message MoveRotateScaleContinuous {
|
|
74
|
+
decentraland.common.Vector3 position_direction = 1;
|
|
75
|
+
decentraland.common.Quaternion rotation_direction = 2;
|
|
76
|
+
decentraland.common.Vector3 scale_direction = 3;
|
|
77
|
+
float speed = 4;
|
|
78
|
+
}
|
|
79
|
+
|
|
62
80
|
message TextureMoveContinuous {
|
|
63
81
|
decentraland.common.Vector2 direction = 1;
|
|
64
82
|
float speed = 2;
|
|
@@ -10,7 +10,9 @@ 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
|
|
13
14
|
message PBVirtualCamera {
|
|
14
15
|
optional common.CameraTransition default_transition = 1;
|
|
15
16
|
optional uint32 look_at_entity = 2;
|
|
17
|
+
optional float fov = 3; // default: 60
|
|
16
18
|
}
|