Skip to content

Commit 44aab53

Browse files
add realm info (#196)
* add realm info & player clicked component * remove player clicked, used pointereventsresult instead * reuse realminfo message * Update proto/decentraland/sdk/components/realm_info.proto Co-authored-by: Lean Mendoza <[email protected]> Signed-off-by: Gon Pombo <[email protected]> --------- Signed-off-by: Gon Pombo <[email protected]> Co-authored-by: Lean Mendoza <[email protected]>
1 parent 4ba546c commit 44aab53

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

proto/decentraland/kernel/apis/runtime.proto

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@ syntax = "proto3";
22
package decentraland.kernel.apis;
33

44
import "decentraland/common/content_mapping.proto";
5+
import "decentraland/sdk/components/realm_info.proto";
56

67
// This API will contain all the information related to the world runtime.
78
// Things related to the user, players or the scene itself has they own api, and
89
// won't live here. (UserIdentity, Players, ParcelIdentity)
910

10-
message RealmInfo {
11-
string base_url = 1;
12-
string realm_name = 2;
13-
int32 network_id = 3;
14-
string comms_adapter = 4;
15-
bool is_preview = 5;
16-
}
17-
1811
message GetRealmResponse {
19-
optional RealmInfo realm_info = 1;
12+
optional decentraland.sdk.components.PBRealmInfo realm_info = 1;
2013
}
2114

2215
message GetWorldTimeResponse {
@@ -72,7 +65,7 @@ service RuntimeService {
7265
rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {}
7366
// Returns information about the current scene. This is the replacement of GetBootstrapData
7467
rpc GetSceneInformation(CurrentSceneEntityRequest) returns (CurrentSceneEntityResponse) {}
75-
76-
// Provides information about the explorer
68+
69+
// Provides information about the explorer
7770
rpc GetExplorerInformation(GetExplorerInformationRequest) returns (GetExplorerInformationResponse) {}
7871
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
syntax = "proto3";
2+
package decentraland.sdk.components;
3+
4+
import "decentraland/sdk/components/common/id.proto";
5+
option (common.ecs_component_id) = 1106;
6+
7+
message PBRealmInfo {
8+
string base_url = 1;
9+
string realm_name = 2;
10+
int32 network_id = 3;
11+
string comms_adapter = 4;
12+
bool is_preview = 5;
13+
optional string room = 6;
14+
}

public/sdk-components.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import public "decentraland/sdk/components/pointer_events.proto";
2626
import public "decentraland/sdk/components/pointer_lock.proto";
2727
import public "decentraland/sdk/components/raycast_result.proto";
2828
import public "decentraland/sdk/components/raycast.proto";
29+
import public "decentraland/sdk/components/realm_info.proto";
2930
import public "decentraland/sdk/components/text_shape.proto";
3031
import public "decentraland/sdk/components/tween.proto";
3132
import public "decentraland/sdk/components/tween_state.proto";

0 commit comments

Comments
 (0)