Skip to content

Commit

Permalink
add realm info & player clicked component
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 committed Apr 12, 2024
1 parent a3dc095 commit bd22833
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions proto/decentraland/sdk/components/player_clicked.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
syntax = "proto3";
package decentraland.sdk.components;

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

option (common.ecs_component_id) = 1107;

// The PlayerClicked component is added to the RootEntity every time the user clicks on an avatar.
// GOS component
message PBPlayerClicked {
uint32 timestamp = 1;
string address = 2;
decentraland.common.Vector3 direction = 3;
decentraland.common.Vector3 origin = 4;
uint32 distance = 5;
}
12 changes: 12 additions & 0 deletions proto/decentraland/sdk/components/realm_info.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax = "proto3";
package decentraland.sdk.components;

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

message PBRealmInfo {
string base_url = 1;
string realm_name = 2;
int32 network_id = 3;
string comms_adapter = 4;
}
2 changes: 2 additions & 0 deletions public/sdk-components.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ import public "decentraland/sdk/components/mesh_collider.proto";
import public "decentraland/sdk/components/mesh_renderer.proto";
import public "decentraland/sdk/components/nft_shape.proto";
import public "decentraland/sdk/components/player_identity_data.proto";
import public "decentraland/sdk/components/player_clicked.proto";
import public "decentraland/sdk/components/pointer_events_result.proto";
import public "decentraland/sdk/components/pointer_events.proto";
import public "decentraland/sdk/components/pointer_lock.proto";
import public "decentraland/sdk/components/raycast_result.proto";
import public "decentraland/sdk/components/raycast.proto";
import public "decentraland/sdk/components/realm_info.proto";
import public "decentraland/sdk/components/text_shape.proto";
import public "decentraland/sdk/components/tween.proto";
import public "decentraland/sdk/components/tween_state.proto";
Expand Down

0 comments on commit bd22833

Please sign in to comment.