@dcl/protocol 1.0.0-23421238265.commit-3882f15 → 1.0.0-23951495761.commit-bf007b9
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/common/colors.gen.d.ts +13 -0
- package/out-js/decentraland/common/colors.gen.js +72 -1
- package/out-js/decentraland/common/colors.gen.js.map +1 -1
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.d.ts +0 -39
- package/out-js/decentraland/kernel/comms/rfc4/comms.gen.js +9 -248
- 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 +0 -1
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +0 -6
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -1
- package/out-ts/decentraland/common/colors.gen.ts +79 -0
- package/out-ts/decentraland/kernel/comms/rfc4/comms.gen.ts +2 -298
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +0 -6
- package/package.json +3 -3
- package/proto/decentraland/common/colors.proto +6 -0
- package/proto/decentraland/common/floats.proto +8 -0
- package/proto/decentraland/kernel/comms/rfc4/comms.proto +1 -24
- package/proto/decentraland/sdk/components/common/input_action.proto +0 -1
- package/proto/decentraland/sdk/components/light_source.proto +1 -1
- package/proto/decentraland/sdk/components/particle_system.proto +129 -0
- package/proto/decentraland/sdk/components/virtual_camera.proto +0 -2
- package/proto/decentraland/sdk/components/audio_analysis.proto +0 -44
- package/proto/decentraland/sdk/components/avatar_locomotion_settings.proto +0 -21
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package decentraland.sdk.components;
|
|
4
|
+
|
|
5
|
+
import "decentraland/common/colors.proto";
|
|
6
|
+
import "decentraland/common/floats.proto";
|
|
7
|
+
import "decentraland/common/texture.proto";
|
|
8
|
+
import "decentraland/common/vectors.proto";
|
|
9
|
+
import "decentraland/sdk/components/common/id.proto";
|
|
10
|
+
|
|
11
|
+
option (common.ecs_component_id) = 1217;
|
|
12
|
+
|
|
13
|
+
message PBParticleSystem {
|
|
14
|
+
// --- Emission ---
|
|
15
|
+
optional bool active = 1; // default = true
|
|
16
|
+
optional float rate = 2; // default = 10. Particles emitted per second.
|
|
17
|
+
optional uint32 max_particles = 3; // default = 1000. Maximum number of live particles.
|
|
18
|
+
optional float lifetime = 4; // default = 5. Particle lifetime in seconds.
|
|
19
|
+
|
|
20
|
+
// --- Motion ---
|
|
21
|
+
optional float gravity = 5; // default = 0. Multiplier of Explorer's physics engine Gravity (normally -9.81)
|
|
22
|
+
optional decentraland.common.Vector3 additional_force = 6; // Constant force vector applied to each particle (world space).
|
|
23
|
+
|
|
24
|
+
// --- Size ---
|
|
25
|
+
optional decentraland.common.FloatRange initial_size = 7; // default = {1, 1}. Particle size at spawn.
|
|
26
|
+
optional decentraland.common.FloatRange size_over_time = 8; // default = {1, 1}. Particle size lerped from start to end over its lifetime.
|
|
27
|
+
|
|
28
|
+
// --- Rotation ---
|
|
29
|
+
optional decentraland.common.Quaternion initial_rotation = 9; // default = identity (0,0,0,1). 3D start rotation for each particle.
|
|
30
|
+
optional decentraland.common.Quaternion rotation_over_time = 10; // default = identity (0,0,0,1). Per-axis angular velocity as quaternion; converted to Euler XYZ.
|
|
31
|
+
optional bool face_travel_direction = 28; // default = false. Particles orient along their velocity direction.
|
|
32
|
+
|
|
33
|
+
// --- Color ---
|
|
34
|
+
optional decentraland.common.ColorRange initial_color = 11; // default = {white, white}. Particle color at spawn, randomized between start and end.
|
|
35
|
+
optional decentraland.common.ColorRange color_over_time = 12; // default = {white, white}. Particle color lerped from start to end over its lifetime.
|
|
36
|
+
|
|
37
|
+
// --- Velocity ---
|
|
38
|
+
optional decentraland.common.FloatRange initial_velocity_speed = 13; // default = {1, 1}. Initial speed in m/s, randomized between start and end.
|
|
39
|
+
|
|
40
|
+
// --- Rendering ---
|
|
41
|
+
optional decentraland.common.Texture texture = 14; // Particle texture. default = null (plain white quad).
|
|
42
|
+
optional BlendMode blend_mode = 15; // default = PSB_ALPHA
|
|
43
|
+
optional bool billboard = 16; // default = true
|
|
44
|
+
|
|
45
|
+
// --- Sprite Sheet Animation ---
|
|
46
|
+
optional SpriteSheetAnimation sprite_sheet = 17;
|
|
47
|
+
|
|
48
|
+
// --- Emitter Shape ---
|
|
49
|
+
oneof shape {
|
|
50
|
+
Point point = 18;
|
|
51
|
+
Sphere sphere = 19;
|
|
52
|
+
Cone cone = 20;
|
|
53
|
+
Box box = 21;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// --- Simulation ---
|
|
57
|
+
optional bool loop = 24; // default = true. Loop the emission cycle.
|
|
58
|
+
optional bool prewarm = 25; // default = false. Start as if already simulated for one full loop cycle. Requires loop = true.
|
|
59
|
+
optional SimulationSpace simulation_space = 27; // default = PSS_LOCAL. Controls whether particles simulate in local or world space.
|
|
60
|
+
|
|
61
|
+
// --- Limit Velocity Over Lifetime ---
|
|
62
|
+
optional LimitVelocity limit_velocity = 26; // Clamps particle speed over its lifetime.
|
|
63
|
+
|
|
64
|
+
// --- Playback ---
|
|
65
|
+
optional PlaybackState playback_state = 22; // default = PS_PLAYING
|
|
66
|
+
|
|
67
|
+
// --- Emission Bursts ---
|
|
68
|
+
repeated Burst bursts = 29;
|
|
69
|
+
|
|
70
|
+
// ---- Nested types ----
|
|
71
|
+
|
|
72
|
+
// Sprite sheet (texture atlas) animation settings.
|
|
73
|
+
message SpriteSheetAnimation {
|
|
74
|
+
uint32 tiles_x = 1; // Number of columns in the sprite sheet.
|
|
75
|
+
uint32 tiles_y = 2; // Number of rows in the sprite sheet.
|
|
76
|
+
optional float frames_per_second = 3; // default = 30. Playback speed in frames per second.
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Clamps particle speed over lifetime.
|
|
80
|
+
message LimitVelocity {
|
|
81
|
+
float speed = 1; // Maximum particle speed (m/s).
|
|
82
|
+
optional float dampen = 2; // default = 1. Fraction (0–1) of excess velocity removed per frame. 1 = hard clamp.
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Emitter spawns particles from a single point.
|
|
86
|
+
message Point {}
|
|
87
|
+
|
|
88
|
+
// Emitter spawns particles from the surface or volume of a sphere.
|
|
89
|
+
message Sphere {
|
|
90
|
+
optional float radius = 1; // default = 1
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Emitter spawns particles from the base of a cone and projects them outward.
|
|
94
|
+
message Cone {
|
|
95
|
+
optional float angle = 1; // default = 25. Half-angle of the cone in degrees.
|
|
96
|
+
optional float radius = 2; // default = 1. Base radius in meters.
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Emitter spawns particles from the surface or volume of a box.
|
|
100
|
+
message Box {
|
|
101
|
+
optional decentraland.common.Vector3 size = 1; // default = {1, 1, 1}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Emission burst configuration.
|
|
105
|
+
message Burst {
|
|
106
|
+
float time = 1; // Seconds from start of cycle.
|
|
107
|
+
uint32 count = 2; // Particles to emit.
|
|
108
|
+
optional int32 cycles = 3; // default = 1. Repeat count (0 = infinite).
|
|
109
|
+
optional float interval = 4; // default = 0.01. Seconds between cycles.
|
|
110
|
+
optional float probability = 5; // default = 1.0. Emission chance [0,1].
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
enum BlendMode {
|
|
114
|
+
PSB_ALPHA = 0; // Standard alpha transparency.
|
|
115
|
+
PSB_ADD = 1; // Additive blending (brightens underlying pixels).
|
|
116
|
+
PSB_MULTIPLY = 2; // Multiply blending (darkens underlying pixels).
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
enum PlaybackState {
|
|
120
|
+
PS_PLAYING = 0; // Particle system is emitting and simulating.
|
|
121
|
+
PS_PAUSED = 1; // Simulation is frozen; no new particles are emitted.
|
|
122
|
+
PS_STOPPED = 2; // Simulation stopped and existing particles cleared.
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
enum SimulationSpace {
|
|
126
|
+
PSS_LOCAL = 0; // Particles move with the entity transform.
|
|
127
|
+
PSS_WORLD = 1; // Particles stay in world position after emission.
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|