@dcl/protocol 1.0.0-3220294254.commit-23e191b → 1.0.0-3237582415.commit-28fe6ac
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-ts/{bff/authentication-service.gen.ts → decentraland/bff/authentication_service.gen.ts} +0 -0
- package/out-ts/{bff/comms-director-service.gen.ts → decentraland/bff/comms_director_service.gen.ts} +2 -2
- package/out-ts/{bff/comms-service.gen.ts → decentraland/bff/comms_service.gen.ts} +1 -1
- package/out-ts/{bff/http-endpoints.gen.ts → decentraland/bff/http_endpoints.gen.ts} +1 -1
- package/out-ts/{bff/topics-service.gen.ts → decentraland/bff/topics_service.gen.ts} +0 -0
- package/out-ts/{common/ContentMapping.gen.ts → decentraland/common/content_mapping.gen.ts} +0 -0
- package/out-ts/{kernel/apis/common-sdk/UserData.gen.ts → decentraland/common/sdk/user_data.gen.ts} +1 -1
- package/out-ts/{common/Vectors.gen.ts → decentraland/common/vectors.gen.ts} +0 -0
- package/out-ts/{kernel/apis/CommunicationsController.gen.ts → decentraland/kernel/apis/communications_controller.gen.ts} +2 -2
- package/out-ts/{kernel/apis/DevTools.gen.ts → decentraland/kernel/apis/dev_tools.gen.ts} +2 -2
- package/out-ts/{kernel/apis/EngineAPI.gen.ts → decentraland/kernel/apis/engine_api.gen.ts} +112 -112
- package/out-ts/{kernel/apis/EnvironmentAPI.gen.ts → decentraland/kernel/apis/environment_api.gen.ts} +3 -3
- package/out-ts/{kernel/apis/EthereumController.gen.ts → decentraland/kernel/apis/ethereum_controller.gen.ts} +2 -2
- package/out-ts/{kernel/apis/ExperimentalAPI.gen.ts → decentraland/kernel/apis/experimental_api.gen.ts} +2 -2
- package/out-ts/{kernel/apis/ParcelIdentity.gen.ts → decentraland/kernel/apis/parcel_identity.gen.ts} +3 -3
- package/out-ts/{kernel/apis/Permissions.gen.ts → decentraland/kernel/apis/permissions.gen.ts} +27 -27
- package/out-ts/{kernel/apis/Players.gen.ts → decentraland/kernel/apis/players.gen.ts} +3 -3
- package/out-ts/{kernel/apis/PortableExperiences.gen.ts → decentraland/kernel/apis/portable_experiences.gen.ts} +2 -2
- package/out-ts/{kernel/apis/RestrictedActions.gen.ts → decentraland/kernel/apis/restricted_actions.gen.ts} +2 -2
- package/out-ts/{kernel/apis/SignedFetch.gen.ts → decentraland/kernel/apis/signed_fetch.gen.ts} +2 -2
- package/out-ts/{kernel/apis/SocialController.gen.ts → decentraland/kernel/apis/social_controller.gen.ts} +2 -2
- package/out-ts/{kernel/apis/UserActionModule.gen.ts → decentraland/kernel/apis/user_action_module.gen.ts} +2 -2
- package/out-ts/{kernel/apis/UserIdentity.gen.ts → decentraland/kernel/apis/user_identity.gen.ts} +3 -3
- package/package.json +5 -9
- package/proto/buf.yaml +45 -0
- package/{bff/authentication-service.proto → proto/decentraland/bff/authentication_service.proto} +0 -1
- package/{bff/comms-director-service.proto → proto/decentraland/bff/comms_director_service.proto} +1 -1
- package/{bff/comms-service.proto → proto/decentraland/bff/comms_service.proto} +2 -2
- package/{bff/http-endpoints.proto → proto/decentraland/bff/http_endpoints.proto} +1 -2
- package/{bff/topics-service.proto → proto/decentraland/bff/topics_service.proto} +0 -1
- package/proto/decentraland/common/colors.proto +15 -0
- package/{common/ContentMapping.proto → proto/decentraland/common/content_mapping.proto} +0 -0
- package/{common/Entity.proto → proto/decentraland/common/entity.proto} +1 -1
- package/{kernel/apis/common-sdk/UserData.proto → proto/decentraland/common/sdk/user_data.proto} +1 -0
- package/{common/Vectors.proto → proto/decentraland/common/vectors.proto} +0 -0
- package/{kernel/apis/CommunicationsController.proto → proto/decentraland/kernel/apis/communications_controller.proto} +1 -0
- package/{kernel/apis/DevTools.proto → proto/decentraland/kernel/apis/dev_tools.proto} +1 -0
- package/proto/decentraland/kernel/apis/engine_api.proto +179 -0
- package/{kernel/apis/EnvironmentAPI.proto → proto/decentraland/kernel/apis/environment_api.proto} +3 -2
- package/{kernel/apis/EthereumController.proto → proto/decentraland/kernel/apis/ethereum_controller.proto} +2 -1
- package/{kernel/apis/ExperimentalAPI.proto → proto/decentraland/kernel/apis/experimental_api.proto} +1 -0
- package/{kernel/apis/ParcelIdentity.proto → proto/decentraland/kernel/apis/parcel_identity.proto} +2 -1
- package/proto/decentraland/kernel/apis/permissions.proto +32 -0
- package/{kernel/apis/Players.proto → proto/decentraland/kernel/apis/players.proto} +3 -2
- package/{kernel/apis/PortableExperiences.proto → proto/decentraland/kernel/apis/portable_experiences.proto} +1 -0
- package/{kernel/apis/RestrictedActions.proto → proto/decentraland/kernel/apis/restricted_actions.proto} +1 -0
- package/{kernel/apis/SignedFetch.proto → proto/decentraland/kernel/apis/signed_fetch.proto} +1 -0
- package/{kernel/apis/SocialController.proto → proto/decentraland/kernel/apis/social_controller.proto} +1 -0
- package/{kernel/apis/UserActionModule.proto → proto/decentraland/kernel/apis/user_action_module.proto} +1 -0
- package/{kernel/apis/UserIdentity.proto → proto/decentraland/kernel/apis/user_identity.proto} +3 -2
- package/{kernel/comms/comms-rfc-4.proto → proto/decentraland/kernel/comms/rfc4/comms.proto} +2 -2
- package/{kernel/comms/ws-comms-rfc-5.proto → proto/decentraland/kernel/comms/rfc5/ws_comms.proto} +1 -1
- package/proto/decentraland/kernel/comms/v1/broker.proto +114 -0
- package/proto/decentraland/kernel/comms/v1/comms.proto +68 -0
- package/proto/decentraland/kernel/comms/v2/comms.proto +61 -0
- package/{kernel → proto/decentraland/kernel}/comms/v3/archipelago.proto +7 -7
- package/{kernel → proto/decentraland/kernel}/comms/v3/comms.proto +3 -3
- package/{renderer-protocol/EngineInterface.proto → proto/decentraland/renderer/engine_interface.proto} +2 -2
- package/{renderer-protocol/RendererProtocol.proto → proto/decentraland/renderer/protocol.proto} +2 -0
- package/{ecs → proto/decentraland/sdk}/components/README.md +3 -3
- package/{ecs → proto/decentraland/sdk}/components/Transform.md +0 -0
- package/{ecs/components/Animator.proto → proto/decentraland/sdk/components/animator.proto} +3 -2
- package/{ecs/components/AudioSource.proto → proto/decentraland/sdk/components/audio_source.proto} +3 -2
- package/{ecs/components/AudioStream.proto → proto/decentraland/sdk/components/audio_stream.proto} +3 -2
- package/proto/decentraland/sdk/components/avatar_attach.proto +19 -0
- package/proto/decentraland/sdk/components/avatar_modifier_area.proto +19 -0
- package/{ecs/components/AvatarShape.proto → proto/decentraland/sdk/components/avatar_shape.proto} +7 -6
- package/{ecs/components/Billboard.proto → proto/decentraland/sdk/components/billboard.proto} +3 -2
- package/proto/decentraland/sdk/components/camera_mode.proto +10 -0
- package/proto/decentraland/sdk/components/camera_mode_area.proto +12 -0
- package/proto/decentraland/sdk/components/common/action_button.proto +20 -0
- package/proto/decentraland/sdk/components/common/camera_mode_value.proto +8 -0
- package/{ecs → proto/decentraland/sdk}/components/common/id.md +0 -0
- package/{ecs → proto/decentraland/sdk}/components/common/id.proto +1 -0
- package/proto/decentraland/sdk/components/common/texts.proto +14 -0
- package/{ecs/components/GltfContainer.proto → proto/decentraland/sdk/components/gltf_container.proto} +3 -2
- package/proto/decentraland/sdk/components/material.proto +59 -0
- package/proto/decentraland/sdk/components/mesh_collider.proto +35 -0
- package/{ecs/components/MeshRenderer.proto → proto/decentraland/sdk/components/mesh_renderer.proto} +3 -2
- package/proto/decentraland/sdk/components/nft_shape.proto +40 -0
- package/proto/decentraland/sdk/components/pointer_events.proto +29 -0
- package/{ecs/components/PointerEventsResult.proto → proto/decentraland/sdk/components/pointer_events_result.proto} +7 -6
- package/proto/decentraland/sdk/components/pointer_lock.proto +9 -0
- package/proto/decentraland/sdk/components/raycast.proto +21 -0
- package/proto/decentraland/sdk/components/raycast_result.proto +25 -0
- package/{ecs/components/TextShape.proto → proto/decentraland/sdk/components/text_shape.proto} +11 -10
- package/proto/decentraland/sdk/components/ui_background.proto +11 -0
- package/proto/decentraland/sdk/components/ui_text.proto +16 -0
- package/{ecs/components/UiTransform.proto → proto/decentraland/sdk/components/ui_transform.proto} +50 -49
- package/proto/decentraland/sdk/components/visibility_component.proto +9 -0
- package/proto/google/LICENSE +27 -0
- package/proto/google/README.md +1 -0
- package/proto/google/api/annotations.json +83 -0
- package/proto/google/api/annotations.proto +11 -0
- package/proto/google/api/http.json +86 -0
- package/proto/google/api/http.proto +31 -0
- package/proto/google/protobuf/api.json +118 -0
- package/proto/google/protobuf/api.proto +34 -0
- package/proto/google/protobuf/descriptor.json +739 -0
- package/proto/google/protobuf/descriptor.proto +286 -0
- package/proto/google/protobuf/source_context.json +20 -0
- package/proto/google/protobuf/source_context.proto +7 -0
- package/proto/google/protobuf/type.json +202 -0
- package/proto/google/protobuf/type.proto +89 -0
- package/{bff-services.proto → public/bff-services.proto} +5 -5
- package/public/sdk-apis.proto +21 -0
- package/ecs/components/AvatarAttach.proto +0 -16
- package/ecs/components/AvatarModifierArea.proto +0 -16
- package/ecs/components/CameraMode.proto +0 -9
- package/ecs/components/CameraModeArea.proto +0 -11
- package/ecs/components/Material.proto +0 -59
- package/ecs/components/MeshCollider.proto +0 -35
- package/ecs/components/NFTShape.proto +0 -38
- package/ecs/components/OnPointerDown.proto +0 -12
- package/ecs/components/OnPointerDownResult.proto +0 -17
- package/ecs/components/OnPointerUp.proto +0 -12
- package/ecs/components/OnPointerUpResult.proto +0 -17
- package/ecs/components/PointerEvents.proto +0 -28
- package/ecs/components/PointerLock.proto +0 -8
- package/ecs/components/Raycast.proto +0 -19
- package/ecs/components/RaycastResult.proto +0 -24
- package/ecs/components/UiBackground.proto +0 -10
- package/ecs/components/UiText.proto +0 -25
- package/ecs/components/VisibilityComponent.proto +0 -8
- package/ecs/components/common/ActionButton.proto +0 -18
- package/ecs/components/common/CameraModeValue.proto +0 -6
- package/ecs/components/common/Color3.proto +0 -8
- package/ecs/components/common/Color4.proto +0 -8
- package/ecs/components/common/Vector3.proto +0 -7
- package/kernel/apis/EngineAPI.proto +0 -180
- package/kernel/apis/Permissions.proto +0 -30
- package/kernel/apis/SceneStateStorageController.proto +0 -114
- package/kernel/comms/v1/broker.proto +0 -114
- package/kernel/comms/v1/comms.proto +0 -68
- package/kernel/comms/v2/comms.proto +0 -61
- package/out-ts/kernel/apis/SceneStateStorageController.gen.ts +0 -1331
- package/sdk-apis.proto +0 -22
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1017;
|
|
5
|
-
|
|
6
|
-
import "ecs/components/common/Color3.proto";
|
|
7
|
-
|
|
8
|
-
enum TextureWrapMode {
|
|
9
|
-
Repeat = 0;
|
|
10
|
-
Clamp = 1;
|
|
11
|
-
Mirror = 2;
|
|
12
|
-
MirrorOnce = 3;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
enum FilterMode
|
|
16
|
-
{
|
|
17
|
-
Point = 0;
|
|
18
|
-
Bilinear = 1;
|
|
19
|
-
Trilinear = 2;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
enum TransparencyMode
|
|
23
|
-
{
|
|
24
|
-
Opaque = 0;
|
|
25
|
-
AlphaTest = 1;
|
|
26
|
-
AlphaBlend = 2;
|
|
27
|
-
AlphaTestAndAlphaBlend = 3;
|
|
28
|
-
Auto = 4;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message PBMaterial {
|
|
32
|
-
message Texture {
|
|
33
|
-
string src = 1;
|
|
34
|
-
optional TextureWrapMode wrapMode = 2; // default = TextureWrapMode.Clamp
|
|
35
|
-
optional FilterMode filterMode = 3; // default = FilterMode.Bilinear
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
optional Texture texture = 1; // default = null
|
|
39
|
-
optional float alphaTest = 2; // default = 0.5. range value: from 0 to 1
|
|
40
|
-
optional bool castShadows = 3; // default = true
|
|
41
|
-
|
|
42
|
-
optional Texture alphaTexture = 4; // default = null
|
|
43
|
-
optional Texture emissiveTexture = 5; // default = null
|
|
44
|
-
optional Texture bumpTexture = 6; // default = null
|
|
45
|
-
|
|
46
|
-
optional Color3 albedoColor = 7; // default = white;
|
|
47
|
-
optional Color3 emissiveColor = 8; // default = black;
|
|
48
|
-
optional Color3 reflectivityColor = 9; // default = white;
|
|
49
|
-
|
|
50
|
-
optional TransparencyMode transparencyMode = 10; // default = TransparencyMode.Auto
|
|
51
|
-
|
|
52
|
-
optional float metallic = 11; // default = 0.5
|
|
53
|
-
optional float roughness = 12; // default = 0.5
|
|
54
|
-
optional float glossiness = 13; // default = 1
|
|
55
|
-
|
|
56
|
-
optional float specularIntensity = 14; // default = 1
|
|
57
|
-
optional float emissiveIntensity = 15; // default = 2
|
|
58
|
-
optional float directIntensity = 16; // default = 1
|
|
59
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1019;
|
|
5
|
-
|
|
6
|
-
enum ColliderLayer {
|
|
7
|
-
None = 0;
|
|
8
|
-
Pointer = 1;
|
|
9
|
-
Physics = 2;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
message PBMeshCollider {
|
|
13
|
-
message BoxMesh {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
message CylinderMesh {
|
|
17
|
-
optional float radius_top = 1; // default=1.0
|
|
18
|
-
optional float radius_bottom = 2; // default=1.0
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
message PlaneMesh {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
message SphereMesh {
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
optional int32 collision_mask = 1; // default = ColliderLayer.Physics | ColliderLayer.Pointer
|
|
28
|
-
|
|
29
|
-
oneof mesh {
|
|
30
|
-
BoxMesh box = 2;
|
|
31
|
-
SphereMesh sphere = 3;
|
|
32
|
-
CylinderMesh cylinder = 4;
|
|
33
|
-
PlaneMesh plane = 5;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1040;
|
|
5
|
-
|
|
6
|
-
import "ecs/components/common/Color3.proto";
|
|
7
|
-
|
|
8
|
-
message PBNFTShape {
|
|
9
|
-
enum PictureFrameStyle {
|
|
10
|
-
Classic = 0;
|
|
11
|
-
Baroque_Ornament = 1;
|
|
12
|
-
Diamond_Ornament = 2;
|
|
13
|
-
Minimal_Wide = 3;
|
|
14
|
-
Minimal_Grey = 4;
|
|
15
|
-
Blocky = 5;
|
|
16
|
-
Gold_Edges = 6;
|
|
17
|
-
Gold_Carved = 7;
|
|
18
|
-
Gold_Wide = 8;
|
|
19
|
-
Gold_Rounded = 9;
|
|
20
|
-
Metal_Medium = 10;
|
|
21
|
-
Metal_Wide = 11;
|
|
22
|
-
Metal_Slim = 12;
|
|
23
|
-
Metal_Rounded = 13;
|
|
24
|
-
Pins = 14;
|
|
25
|
-
Minimal_Black = 15;
|
|
26
|
-
Minimal_White = 16;
|
|
27
|
-
Tape = 17;
|
|
28
|
-
Wood_Slim = 18;
|
|
29
|
-
Wood_Wide = 19;
|
|
30
|
-
Wood_Twigs = 20;
|
|
31
|
-
Canvas = 21;
|
|
32
|
-
None = 22;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
string src = 1;
|
|
36
|
-
optional PictureFrameStyle style = 2; // default = PictureFrameStyle.Classic
|
|
37
|
-
optional Color3 color = 3; // default = Color3(0.6404918, 0.611472, 0.8584906)
|
|
38
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1060;
|
|
5
|
-
import "ecs/components/common/ActionButton.proto";
|
|
6
|
-
|
|
7
|
-
message PBOnPointerDown {
|
|
8
|
-
optional ActionButton button = 1; // default=ActionButton.ANY
|
|
9
|
-
optional string hover_text = 2; // default='Interact'
|
|
10
|
-
optional float max_distance = 3; // default=10
|
|
11
|
-
optional bool show_feedback = 4; // default=true
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1066;
|
|
5
|
-
import "ecs/components/common/Vector3.proto";
|
|
6
|
-
import "ecs/components/common/ActionButton.proto";
|
|
7
|
-
|
|
8
|
-
message PBOnPointerDownResult {
|
|
9
|
-
ActionButton button = 2;
|
|
10
|
-
string meshName = 3;
|
|
11
|
-
Vector3 origin = 4;
|
|
12
|
-
Vector3 direction = 5;
|
|
13
|
-
Vector3 point = 6;
|
|
14
|
-
Vector3 normal = 7;
|
|
15
|
-
float distance = 8;
|
|
16
|
-
int32 timestamp = 9;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1061;
|
|
5
|
-
import "ecs/components/common/ActionButton.proto";
|
|
6
|
-
|
|
7
|
-
message PBOnPointerUp {
|
|
8
|
-
optional ActionButton button = 1; // default=ActionButton.ANY
|
|
9
|
-
optional string hover_text = 2; // default='Interact'
|
|
10
|
-
optional float max_distance = 3; // default=10
|
|
11
|
-
optional bool show_feedback = 4; // default=true
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1065;
|
|
5
|
-
import "ecs/components/common/Vector3.proto";
|
|
6
|
-
import "ecs/components/common/ActionButton.proto";
|
|
7
|
-
|
|
8
|
-
message PBOnPointerUpResult {
|
|
9
|
-
ActionButton button = 2;
|
|
10
|
-
string meshName = 3;
|
|
11
|
-
Vector3 origin = 4;
|
|
12
|
-
Vector3 direction = 5;
|
|
13
|
-
Vector3 point = 6;
|
|
14
|
-
Vector3 normal = 7;
|
|
15
|
-
float distance = 8;
|
|
16
|
-
int32 timestamp = 9;
|
|
17
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1062;
|
|
5
|
-
import "ecs/components/common/ActionButton.proto";
|
|
6
|
-
|
|
7
|
-
enum PointerEventType {
|
|
8
|
-
UP = 0;
|
|
9
|
-
DOWN = 1;
|
|
10
|
-
HOVER_ENTER = 2;
|
|
11
|
-
HOVER_LEAVE = 3;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message PBPointerEvents {
|
|
15
|
-
message Info {
|
|
16
|
-
optional ActionButton button = 1; // default=ActionButton.ANY
|
|
17
|
-
optional string hover_text = 2; // default='Interact'
|
|
18
|
-
optional float max_distance = 3; // default=10
|
|
19
|
-
optional bool show_feedback = 4; // default=true
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
message Entry {
|
|
23
|
-
PointerEventType eventType = 1;
|
|
24
|
-
Info eventInfo = 2;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
repeated Entry pointerEvents = 1;
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1067;
|
|
5
|
-
|
|
6
|
-
import "ecs/components/common/Vector3.proto";
|
|
7
|
-
|
|
8
|
-
enum RaycastQueryType {
|
|
9
|
-
HIT_FIRST = 0;
|
|
10
|
-
QUERY_ALL = 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
message PBRaycast {
|
|
14
|
-
int32 timestamp = 1;
|
|
15
|
-
Vector3 origin = 2;
|
|
16
|
-
Vector3 direction = 3;
|
|
17
|
-
float max_distance = 4;
|
|
18
|
-
RaycastQueryType query_type = 5;
|
|
19
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
import "ecs/components/common/Vector3.proto";
|
|
5
|
-
|
|
6
|
-
option (ecs_component_id) = 1068;
|
|
7
|
-
|
|
8
|
-
message PBRaycastResult {
|
|
9
|
-
int32 timestamp = 1;
|
|
10
|
-
Vector3 origin = 2;
|
|
11
|
-
Vector3 direction = 3;
|
|
12
|
-
repeated RaycastHit hits = 4;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Position will be relative to the scene
|
|
16
|
-
message RaycastHit {
|
|
17
|
-
Vector3 position = 1;
|
|
18
|
-
Vector3 origin = 2;
|
|
19
|
-
Vector3 direction = 3;
|
|
20
|
-
Vector3 normal_hit = 4;
|
|
21
|
-
float length = 5;
|
|
22
|
-
optional string mesh_name = 6;
|
|
23
|
-
optional int64 entity_id = 7;
|
|
24
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
import "ecs/components/common/id.proto";
|
|
4
|
-
option (ecs_component_id) = 1052;
|
|
5
|
-
|
|
6
|
-
import "ecs/components/common/Color3.proto";
|
|
7
|
-
|
|
8
|
-
enum TextAlign {
|
|
9
|
-
Center = 0;
|
|
10
|
-
Left = 1;
|
|
11
|
-
Right = 2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
enum Font {
|
|
15
|
-
LiberationSans = 0;
|
|
16
|
-
SansSerif = 1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message PBUiText {
|
|
20
|
-
string value = 1;
|
|
21
|
-
optional Color3 color = 2; // default=(1.0,1.0,1.0)
|
|
22
|
-
optional TextAlign text_align = 3; // default='center'
|
|
23
|
-
optional Font font = 4; // default=0
|
|
24
|
-
optional int32 font_size = 5; // default=10
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
enum ActionButton {
|
|
4
|
-
POINTER = 0;
|
|
5
|
-
PRIMARY = 1;
|
|
6
|
-
SECONDARY = 2;
|
|
7
|
-
ANY = 3;
|
|
8
|
-
FORWARD = 4;
|
|
9
|
-
BACKWARD = 5;
|
|
10
|
-
RIGHT = 6;
|
|
11
|
-
LEFT = 7;
|
|
12
|
-
JUMP = 8;
|
|
13
|
-
WALK = 9;
|
|
14
|
-
ACTION_3 = 10;
|
|
15
|
-
ACTION_4 = 11;
|
|
16
|
-
ACTION_5 = 12;
|
|
17
|
-
ACTION_6 = 13;
|
|
18
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
message OpenExternalUrlBody {
|
|
4
|
-
string url = 1;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
message OpenNFTDialogBody {
|
|
8
|
-
string asset_contract_address = 1;
|
|
9
|
-
string token_id = 2;
|
|
10
|
-
optional string comment = 3;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
message CreateEntityBody {
|
|
14
|
-
string id = 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message RemoveEntityBody {
|
|
18
|
-
string id = 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
message UpdateEntityComponentBody {
|
|
22
|
-
string entity_id = 1;
|
|
23
|
-
int32 class_id = 2;
|
|
24
|
-
string name = 3;
|
|
25
|
-
string json = 4;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message AttachEntityComponentBody {
|
|
29
|
-
string entity_id = 1;
|
|
30
|
-
string name = 2;
|
|
31
|
-
string id = 3;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message ComponentRemovedBody {
|
|
35
|
-
string entity_id = 1;
|
|
36
|
-
string name = 2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
message SetEntityParentBody {
|
|
40
|
-
string entity_id = 1;
|
|
41
|
-
string parent_id = 2;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
enum QueryType {
|
|
45
|
-
InvalidQueryType = 0;
|
|
46
|
-
HitFirst = 1;
|
|
47
|
-
HitAll = 2;
|
|
48
|
-
HitFirstAvatar = 3;
|
|
49
|
-
HitAllAvatars = 4;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message QueryBody {
|
|
53
|
-
QueryType query_id = 1;
|
|
54
|
-
string payload = 2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message ComponentCreatedBody {
|
|
58
|
-
string id = 1;
|
|
59
|
-
int32 class_id = 2;
|
|
60
|
-
string name = 3;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
message ComponentDisposedBody {
|
|
64
|
-
string id = 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message ComponentUpdatedBody {
|
|
68
|
-
string id = 1;
|
|
69
|
-
string json = 2;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
message InitMessagesFinishedBody {
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message Payload {
|
|
77
|
-
optional OpenExternalUrlBody open_external_url = 1;
|
|
78
|
-
optional OpenNFTDialogBody open_nft_dialog = 2;
|
|
79
|
-
optional CreateEntityBody create_entity = 3;
|
|
80
|
-
optional RemoveEntityBody remove_entity = 4;
|
|
81
|
-
optional UpdateEntityComponentBody update_entity_component = 5;
|
|
82
|
-
optional AttachEntityComponentBody attach_entity_component = 6;
|
|
83
|
-
optional ComponentRemovedBody component_removed = 7;
|
|
84
|
-
optional SetEntityParentBody set_entity_parent = 8;
|
|
85
|
-
optional QueryBody query = 9;
|
|
86
|
-
optional ComponentCreatedBody component_created = 10;
|
|
87
|
-
optional ComponentDisposedBody component_disposed = 11;
|
|
88
|
-
optional ComponentUpdatedBody component_updated = 12;
|
|
89
|
-
optional InitMessagesFinishedBody init_messages_finished = 13;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
enum EAType {
|
|
93
|
-
InvalidEAType = 0;
|
|
94
|
-
OpenExternalUrl = 1;
|
|
95
|
-
OpenNFTDialog = 2;
|
|
96
|
-
CreateEntity = 3;
|
|
97
|
-
RemoveEntity = 4;
|
|
98
|
-
UpdateEntityComponent = 5;
|
|
99
|
-
AttachEntityComponent = 6;
|
|
100
|
-
ComponentRemoved = 7;
|
|
101
|
-
SetEntityParent = 8;
|
|
102
|
-
Query = 9;
|
|
103
|
-
ComponentCreated = 10;
|
|
104
|
-
ComponentDisposed = 11;
|
|
105
|
-
ComponentUpdated = 12;
|
|
106
|
-
InitMessagesFinished = 13;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
message EntityAction {
|
|
110
|
-
EAType type = 1;
|
|
111
|
-
optional string tag = 2;
|
|
112
|
-
Payload payload = 3;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
message ManyEntityAction {
|
|
116
|
-
repeated EntityAction actions = 1;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message SendBatchResponse {
|
|
120
|
-
repeated EventData events = 1;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
message UnsubscribeRequest {
|
|
124
|
-
string event_id = 1;
|
|
125
|
-
}
|
|
126
|
-
message SubscribeRequest {
|
|
127
|
-
string event_id = 1;
|
|
128
|
-
}
|
|
129
|
-
message SubscribeResponse {}
|
|
130
|
-
message UnsubscribeResponse {}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
// Events
|
|
134
|
-
enum EventDataType {
|
|
135
|
-
Generic = 0;
|
|
136
|
-
PositionChanged = 1;
|
|
137
|
-
RotationChanged = 2;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
message GenericPayload {
|
|
141
|
-
string event_id = 3;
|
|
142
|
-
string event_data = 4;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
message ReadOnlyVector3 {
|
|
146
|
-
float x = 1;
|
|
147
|
-
float y = 2;
|
|
148
|
-
float z = 3;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
message ReadOnlyQuaternion {
|
|
152
|
-
float x = 1;
|
|
153
|
-
float y = 2;
|
|
154
|
-
float z = 3;
|
|
155
|
-
float w = 4;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
message PositionChangedPayload {
|
|
159
|
-
ReadOnlyVector3 position = 1;
|
|
160
|
-
ReadOnlyVector3 camera_position = 2;
|
|
161
|
-
float player_height = 3;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
message RotationChangedPayload {
|
|
165
|
-
ReadOnlyVector3 rotation = 1;
|
|
166
|
-
ReadOnlyQuaternion quaternion = 2;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
message EventData {
|
|
170
|
-
EventDataType type = 1;
|
|
171
|
-
optional GenericPayload generic = 2;
|
|
172
|
-
optional PositionChangedPayload position_changed = 3;
|
|
173
|
-
optional RotationChangedPayload rotation_changed = 4;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
service EngineAPIService {
|
|
177
|
-
rpc SendBatch(ManyEntityAction) returns (SendBatchResponse) {}
|
|
178
|
-
rpc Subscribe(SubscribeRequest) returns (SubscribeResponse) {}
|
|
179
|
-
rpc Unsubscribe(UnsubscribeRequest) returns (UnsubscribeResponse) {}
|
|
180
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
enum PermissionItem {
|
|
4
|
-
ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0;
|
|
5
|
-
ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1;
|
|
6
|
-
USE_WEB3_API = 2;
|
|
7
|
-
USE_WEBSOCKET = 3;
|
|
8
|
-
USE_FETCH = 4;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
message PermissionResponse {
|
|
12
|
-
bool has_permission = 1;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message HasPermissionRequest {
|
|
16
|
-
PermissionItem permission = 1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message HasManyPermissionRequest {
|
|
20
|
-
repeated PermissionItem permissions = 1;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message HasManyPermissionResponse {
|
|
24
|
-
repeated bool has_many_permission = 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
service PermissionsService {
|
|
28
|
-
rpc HasPermission(HasPermissionRequest) returns (PermissionResponse) {}
|
|
29
|
-
rpc HasManyPermissions(HasManyPermissionRequest) returns (HasManyPermissionResponse) {}
|
|
30
|
-
}
|