Skip to content
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
package-lock.json
.DS_Store
out-*
proto/google
proto/google
.idea
38 changes: 37 additions & 1 deletion proto/decentraland/kernel/apis/comms_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,42 @@ message VideoTracksActiveStreamsData {
VideoTrackSourceType source_type = 3;
}

message SubscribeToTopicRequest {
string topic = 1;
}

message SubscribeToTopicResponse {}

message UnsubscribeFromTopicRequest {
string topic = 1;
}

message UnsubscribeFromTopicResponse {}

message PublishDataRequest {
string topic = 1;
string data = 2;
}

message PublishDataResponse {}

message ConsumeMessagesRequest {
string topic = 1;
}

message ConsumeMessages {
string sender = 1;
string data = 2;
}

message ConsumeMessagesResponse {
repeated ConsumeMessages messages = 1;
}

service CommsApiService {
rpc GetActiveVideoStreams(VideoTracksActiveStreamsRequest) returns (VideoTracksActiveStreamsResponse) {}
}
rpc SubscribeToTopic(SubscribeToTopicRequest) returns (SubscribeToTopicResponse) {}
rpc UnsubscribeFromTopic(UnsubscribeFromTopicRequest) returns (UnsubscribeFromTopicResponse) {}
rpc PublishData(PublishDataRequest) returns (PublishDataResponse) {}
rpc ConsumeMessages(ConsumeMessagesRequest) returns (ConsumeMessagesResponse) {}
}
25 changes: 25 additions & 0 deletions proto/decentraland/kernel/comms/rfc4/comms.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ message Packet {
PlayerEmote player_emote = 9;
SceneEmote scene_emote = 10;
MovementCompressed movement_compressed = 12;
LookAtPosition look_at_position = 13;
Reaction reaction = 14;
ChatReaction chat_reaction = 15;
}
uint32 protocol_version = 11;
}
Expand Down Expand Up @@ -138,3 +141,25 @@ message Voice {
VC_OPUS = 0;
}
}

// Message sent to force an avatar to look at a position
message LookAtPosition {
float timestamp = 1;
// world position
float position_x = 2;
float position_y = 3;
float position_z = 4;
string target_avatar_wallet_address = 5;
}

message Reaction {
int32 emoji_index = 1;
float timestamp = 2;
int32 count = 3;
}

message ChatReaction {
int32 emoji_index = 1;
string message_id = 2;
string address = 3;
}
44 changes: 44 additions & 0 deletions proto/decentraland/sdk/components/audio_analysis.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
syntax = "proto3";
package decentraland.sdk.components;

import "decentraland/sdk/components/common/id.proto";
option (common.ecs_component_id) = 1212;

enum PBAudioAnalysisMode {
MODE_RAW = 0;
MODE_LOGARITHMIC = 1;
}

message PBAudioAnalysis {

// Parameters section
PBAudioAnalysisMode mode = 1;

// Used only when mode == MODE_LOGARITHMIC
optional float amplitude_gain = 100;
optional float bands_gain = 101;
// End when mode == MODE_LOGARITHMIC

// End Parameters section

// Result section
float amplitude = 200;

// Protobuf doesn't support fixed arrays -> 8 band fields
float band_0 = 201;
float band_1 = 202;
float band_2 = 203;
float band_3 = 204;
float band_4 = 205;
float band_5 = 206;
float band_6 = 207;
float band_7 = 208;

// End Result section

// Future fields
// float spectral_centroid = 13;
// float spectral_flux = 14;
// bool onset = 15;
// float bpm = 16;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ enum InputAction {
IA_ACTION_4 = 11;
IA_ACTION_5 = 12;
IA_ACTION_6 = 13;
// Modifier key (Shift on desktop)
IA_MODIFIER = 14;
}

Expand Down
6 changes: 5 additions & 1 deletion proto/decentraland/sdk/components/particle_system.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ message PBParticleSystem {
optional PlaybackState playback_state = 22; // default = PS_PLAYING

// --- Emission Bursts ---
repeated Burst bursts = 29;
optional BurstConfiguration bursts = 29;

// ---- Nested types ----

Expand Down Expand Up @@ -102,6 +102,10 @@ message PBParticleSystem {
}

// Emission burst configuration.
message BurstConfiguration {
repeated Burst values = 1;
}

message Burst {
float time = 1; // Seconds from start of cycle.
uint32 count = 2; // Particles to emit.
Expand Down
Loading