Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions proto/decentraland/kernel/apis/restricted_actions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ syntax = "proto3";
package decentraland.kernel.apis;

import "decentraland/common/vectors.proto";
import "decentraland/sdk/components/common/avatar_mask.proto";

message MovePlayerToRequest {
decentraland.common.Vector3 new_relative_position = 1;
Expand All @@ -16,7 +17,7 @@ message TeleportToRequest {

message TriggerEmoteRequest {
string predefined_emote = 1;
optional uint32 mask = 2;
optional decentraland.sdk.components.common.AvatarMask mask = 2;
}

message ChangeRealmRequest {
Expand All @@ -41,7 +42,7 @@ message CommsAdapterRequest {
message TriggerSceneEmoteRequest {
string src = 1;
optional bool loop = 2;
optional uint32 mask = 3;
optional decentraland.sdk.components.common.AvatarMask mask = 3;
}

message SuccessResponse {
Expand Down
12 changes: 9 additions & 3 deletions proto/decentraland/sdk/components/billboard.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@ import "decentraland/sdk/components/common/id.proto";
// https://adr.decentraland.org/adr/ADR-198
option (common.ecs_component_id) = 1090;

// The Billboard component makes an Entity automatically reorient its rotation to face the camera.
// As the name indicates, it’s used to display in-game billboards and frequently combined with
// The Billboard component makes an Entity automatically reorient its rotation to face a target.
// By default (when target_entity is unset), the billboard faces the main camera. When target_entity
// is set, the billboard faces that entity instead. Setting target_entity to the camera reserved
// entity (2) is equivalent to leaving the field unset. If the referenced target entity doesn’t exist
// or is deleted, the billboard reorientation is disabled until the target exists again.
//
// As the name indicates, it’s used to display in-game billboards and frequently combined with
// the TextShape component.
//
// Billboard only affects the Entity's rotation. Its scale and position are still determined by its
// Billboard only affects the Entitys rotation. Its scale and position are still determined by its
// Transform.
message PBBillboard {
optional BillboardMode billboard_mode = 1; // the BillboardMode (default: BM_ALL)
optional uint32 target_entity = 2; // entity to face instead of the camera; if the referenced entity doesn’t exist, the billboard behavior is disabled until it does
}

// BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form.
Expand Down
7 changes: 7 additions & 0 deletions proto/decentraland/sdk/components/common/avatar_mask.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
syntax = "proto3";
package decentraland.sdk.components.common;

// Mask for which bones an animation applies to.
enum AvatarMask {
AM_UPPER_BODY = 0;
}
Loading