@dcl/sdk 7.0.0-3229738194.commit-4629198 → 7.0.0-3244243254.commit-d5804ee
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/dist/ecs7/index.d.ts +148 -170
- package/dist/ecs7/index.js +177 -211
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/README.md +3 -3
- package/dist/ecs7/proto-definitions/{Animator.proto → animator.proto} +3 -2
- package/dist/ecs7/proto-definitions/{AudioSource.proto → audio_source.proto} +3 -2
- package/dist/ecs7/proto-definitions/{AudioStream.proto → audio_stream.proto} +3 -2
- package/dist/ecs7/proto-definitions/avatar_attach.proto +19 -0
- package/dist/ecs7/proto-definitions/avatar_modifier_area.proto +19 -0
- package/dist/ecs7/proto-definitions/{AvatarShape.proto → avatar_shape.proto} +7 -6
- package/dist/ecs7/proto-definitions/{Billboard.proto → billboard.proto} +3 -2
- package/dist/ecs7/proto-definitions/camera_mode.proto +10 -0
- package/dist/ecs7/proto-definitions/camera_mode_area.proto +14 -0
- package/dist/ecs7/proto-definitions/common/camera_type.proto +8 -0
- package/dist/ecs7/proto-definitions/common/id.proto +1 -0
- package/dist/ecs7/proto-definitions/common/input_action.proto +20 -0
- package/dist/ecs7/proto-definitions/common/texts.proto +14 -0
- package/dist/ecs7/proto-definitions/{GltfContainer.proto → gltf_container.proto} +3 -2
- package/dist/ecs7/proto-definitions/material.proto +59 -0
- package/dist/ecs7/proto-definitions/mesh_collider.proto +35 -0
- package/dist/ecs7/proto-definitions/{MeshRenderer.proto → mesh_renderer.proto} +3 -2
- package/dist/ecs7/proto-definitions/nft_shape.proto +40 -0
- package/dist/ecs7/proto-definitions/pointer_events.proto +31 -0
- package/dist/ecs7/proto-definitions/{PointerEventsResult.proto → pointer_events_result.proto} +10 -7
- package/dist/ecs7/proto-definitions/pointer_lock.proto +9 -0
- package/dist/ecs7/proto-definitions/raycast.proto +21 -0
- package/dist/ecs7/proto-definitions/raycast_result.proto +25 -0
- package/dist/ecs7/proto-definitions/{TextShape.proto → text_shape.proto} +13 -11
- package/dist/ecs7/proto-definitions/ui_background.proto +11 -0
- package/dist/ecs7/proto-definitions/ui_text.proto +17 -0
- package/dist/ecs7/proto-definitions/{UiTransform.proto → ui_transform.proto} +50 -49
- package/dist/ecs7/proto-definitions/visibility_component.proto +9 -0
- package/dist/playground/snippets/cube-spawner.ts +3 -3
- package/dist/playground/snippets/material.ts +1 -1
- package/dist/playground/snippets/pointer-events.ts +6 -6
- package/dist/playground/snippets/raycast-hit-many.ts +1 -1
- package/dist/playground/snippets/raycast-hit-oscilator.ts +1 -1
- package/dist/playground/snippets/raycast-hit.ts +1 -1
- package/dist/playground/snippets/ui.tsx +3 -3
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +148 -170
- package/types/rpc-modules/CommunicationsController/index.d.ts +1 -1
- package/types/rpc-modules/DevTools/index.d.ts +1 -1
- package/types/rpc-modules/{EngineAPI → EngineApi}/index.d.ts +24 -24
- package/types/rpc-modules/{EnvironmentAPI → EnvironmentApi}/index.d.ts +3 -3
- package/types/rpc-modules/EthereumController/index.d.ts +1 -1
- package/types/rpc-modules/{ExperimentalAPI → ExperimentalApi}/index.d.ts +2 -2
- package/types/rpc-modules/ParcelIdentity/index.d.ts +2 -2
- package/types/rpc-modules/Permissions/index.d.ts +6 -6
- package/types/rpc-modules/Players/index.d.ts +3 -3
- package/types/rpc-modules/PortableExperiences/index.d.ts +1 -1
- package/types/rpc-modules/RestrictedActions/index.d.ts +1 -1
- package/types/rpc-modules/SignedFetch/index.d.ts +1 -1
- package/types/rpc-modules/SocialController/index.d.ts +1 -1
- package/types/rpc-modules/UserActionModule/index.d.ts +1 -1
- package/types/rpc-modules/UserIdentity/index.d.ts +3 -3
- package/types/tsconfig.ecs7.json +3 -3
- package/dist/ecs7/proto-definitions/AvatarAttach.proto +0 -16
- package/dist/ecs7/proto-definitions/AvatarModifierArea.proto +0 -16
- package/dist/ecs7/proto-definitions/CameraMode.proto +0 -9
- package/dist/ecs7/proto-definitions/CameraModeArea.proto +0 -11
- package/dist/ecs7/proto-definitions/Material.proto +0 -59
- package/dist/ecs7/proto-definitions/MeshCollider.proto +0 -35
- package/dist/ecs7/proto-definitions/NFTShape.proto +0 -38
- package/dist/ecs7/proto-definitions/PointerEvents.proto +0 -28
- package/dist/ecs7/proto-definitions/PointerLock.proto +0 -8
- package/dist/ecs7/proto-definitions/Raycast.proto +0 -19
- package/dist/ecs7/proto-definitions/RaycastResult.proto +0 -24
- package/dist/ecs7/proto-definitions/UiBackground.proto +0 -10
- package/dist/ecs7/proto-definitions/UiText.proto +0 -25
- package/dist/ecs7/proto-definitions/VisibilityComponent.proto +0 -8
- package/dist/ecs7/proto-definitions/common/ActionButton.proto +0 -18
- package/dist/ecs7/proto-definitions/common/CameraModeValue.proto +0 -6
- package/dist/ecs7/proto-definitions/common/Color3.proto +0 -8
- package/dist/ecs7/proto-definitions/common/Color4.proto +0 -8
- package/dist/ecs7/proto-definitions/common/Vector3.proto +0 -7
- package/types/rpc-modules/SceneStateStorageController/index.d.ts +0 -90
@@ -8,7 +8,7 @@ declare module "~system/ParcelIdentity" {
|
|
8
8
|
|
9
9
|
// ########### BLOCK
|
10
10
|
|
11
|
-
// importtype { ContentMapping } from "proto/common/
|
11
|
+
// importtype { ContentMapping } from "proto/decentraland/common/content_mapping.gen";
|
12
12
|
export interface MappingsResponse {
|
13
13
|
parcelId: string;
|
14
14
|
rootCid: string;
|
@@ -40,7 +40,7 @@ declare module "~system/ParcelIdentity" {
|
|
40
40
|
|
41
41
|
// ########### BLOCK
|
42
42
|
|
43
|
-
// importtype { GetParcelRequest, GetParcelResponse, GetSceneIdRequest, GetSceneIdResponse, GetIsEmptyRequest, GetIsEmptyResponse } from "proto/kernel/apis/
|
43
|
+
// importtype { GetParcelRequest, GetParcelResponse, GetSceneIdRequest, GetSceneIdResponse, GetIsEmptyRequest, GetIsEmptyResponse } from "proto/decentraland/kernel/apis/parcel_identity.gen";
|
44
44
|
export function getParcel(body: GetParcelRequest): Promise<GetParcelResponse>;
|
45
45
|
export function getSceneId(body: GetSceneIdRequest): Promise<GetSceneIdResponse>;
|
46
46
|
export function getIsEmpty(body: GetIsEmptyRequest): Promise<GetIsEmptyResponse>;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
declare module "~system/Permissions" {
|
2
2
|
|
3
3
|
export enum PermissionItem {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
PI_ALLOW_TO_MOVE_PLAYER_INSIDE_SCENE = 0,
|
5
|
+
PI_ALLOW_TO_TRIGGER_AVATAR_EMOTE = 1,
|
6
|
+
PI_USE_WEB3_API = 2,
|
7
|
+
PI_USE_WEBSOCKET = 3,
|
8
|
+
PI_USE_FETCH = 4,
|
9
9
|
UNRECOGNIZED = -1
|
10
10
|
}
|
11
11
|
export interface PermissionResponse {
|
@@ -23,7 +23,7 @@ declare module "~system/Permissions" {
|
|
23
23
|
|
24
24
|
// ########### BLOCK
|
25
25
|
|
26
|
-
// importtype { HasPermissionRequest, PermissionResponse, HasManyPermissionRequest, HasManyPermissionResponse } from "proto/kernel/apis/
|
26
|
+
// importtype { HasPermissionRequest, PermissionResponse, HasManyPermissionRequest, HasManyPermissionResponse } from "proto/decentraland/kernel/apis/permissions.gen";
|
27
27
|
export function hasPermission(body: HasPermissionRequest): Promise<PermissionResponse>;
|
28
28
|
export function hasManyPermissions(body: HasManyPermissionRequest): Promise<HasManyPermissionResponse>;
|
29
29
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
declare module "~system/Players" {
|
2
2
|
|
3
|
-
|
3
|
+
export const protobufPackage = "decentraland.common.sdk";
|
4
4
|
export interface Snapshots {
|
5
5
|
face256: string;
|
6
6
|
body: string;
|
@@ -24,7 +24,7 @@ declare module "~system/Players" {
|
|
24
24
|
|
25
25
|
// ########### BLOCK
|
26
26
|
|
27
|
-
// importtype { UserData } from "proto/
|
27
|
+
// importtype { UserData } from "proto/decentraland/common/sdk/user_data.gen";
|
28
28
|
export interface Player {
|
29
29
|
userId: string;
|
30
30
|
}
|
@@ -44,7 +44,7 @@ declare module "~system/Players" {
|
|
44
44
|
|
45
45
|
// ########### BLOCK
|
46
46
|
|
47
|
-
// importtype { GetPlayerDataRequest, PlayersGetUserDataResponse, GetPlayersInSceneRequest, PlayerListResponse, GetConnectedPlayersRequest } from "proto/kernel/apis/
|
47
|
+
// importtype { GetPlayerDataRequest, PlayersGetUserDataResponse, GetPlayersInSceneRequest, PlayerListResponse, GetConnectedPlayersRequest } from "proto/decentraland/kernel/apis/players.gen";
|
48
48
|
export function getPlayerData(body: GetPlayerDataRequest): Promise<PlayersGetUserDataResponse>;
|
49
49
|
export function getPlayersInScene(body: GetPlayersInSceneRequest): Promise<PlayerListResponse>;
|
50
50
|
export function getConnectedPlayers(body: GetConnectedPlayersRequest): Promise<PlayerListResponse>;
|
@@ -29,7 +29,7 @@ declare module "~system/PortableExperiences" {
|
|
29
29
|
|
30
30
|
// ########### BLOCK
|
31
31
|
|
32
|
-
// importtype { SpawnRequest, SpawnResponse, KillRequest, KillResponse, ExitRequest, ExitResponse, GetPortableExperiencesLoadedRequest, GetPortableExperiencesLoadedResponse } from "proto/kernel/apis/
|
32
|
+
// importtype { SpawnRequest, SpawnResponse, KillRequest, KillResponse, ExitRequest, ExitResponse, GetPortableExperiencesLoadedRequest, GetPortableExperiencesLoadedResponse } from "proto/decentraland/kernel/apis/portable_experiences.gen";
|
33
33
|
export function spawn(body: SpawnRequest): Promise<SpawnResponse>;
|
34
34
|
export function kill(body: KillRequest): Promise<KillResponse>;
|
35
35
|
export function exit(body: ExitRequest): Promise<ExitResponse>;
|
@@ -19,7 +19,7 @@ declare module "~system/RestrictedActions" {
|
|
19
19
|
|
20
20
|
// ########### BLOCK
|
21
21
|
|
22
|
-
// importtype { MovePlayerToRequest, MovePlayerToResponse, TriggerEmoteRequest, TriggerEmoteResponse } from "proto/kernel/apis/
|
22
|
+
// importtype { MovePlayerToRequest, MovePlayerToResponse, TriggerEmoteRequest, TriggerEmoteResponse } from "proto/decentraland/kernel/apis/restricted_actions.gen";
|
23
23
|
export function movePlayerTo(body: MovePlayerToRequest): Promise<MovePlayerToResponse>;
|
24
24
|
export function triggerEmote(body: TriggerEmoteRequest): Promise<TriggerEmoteResponse>;
|
25
25
|
|
@@ -31,7 +31,7 @@ declare module "~system/SignedFetch" {
|
|
31
31
|
|
32
32
|
// ########### BLOCK
|
33
33
|
|
34
|
-
// importtype { SignedFetchRequest, FlatFetchResponse } from "proto/kernel/apis/
|
34
|
+
// importtype { SignedFetchRequest, FlatFetchResponse } from "proto/decentraland/kernel/apis/signed_fetch.gen";
|
35
35
|
export function signedFetch(body: SignedFetchRequest): Promise<FlatFetchResponse>;
|
36
36
|
|
37
37
|
}
|
@@ -12,7 +12,7 @@ declare module "~system/SocialController" {
|
|
12
12
|
|
13
13
|
// ########### BLOCK
|
14
14
|
|
15
|
-
// importtype { InitRequest, GetAvatarEventsResponse } from "proto/kernel/apis/
|
15
|
+
// importtype { InitRequest, GetAvatarEventsResponse } from "proto/decentraland/kernel/apis/social_controller.gen";
|
16
16
|
export function pullAvatarEvents(body: InitRequest): Promise<GetAvatarEventsResponse>;
|
17
17
|
|
18
18
|
}
|
@@ -8,7 +8,7 @@ declare module "~system/UserActionModule" {
|
|
8
8
|
|
9
9
|
// ########### BLOCK
|
10
10
|
|
11
|
-
// importtype { RequestTeleportRequest, RequestTeleportResponse } from "proto/kernel/apis/
|
11
|
+
// importtype { RequestTeleportRequest, RequestTeleportResponse } from "proto/decentraland/kernel/apis/user_action_module.gen";
|
12
12
|
export function requestTeleport(body: RequestTeleportRequest): Promise<RequestTeleportResponse>;
|
13
13
|
|
14
14
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
declare module "~system/UserIdentity" {
|
2
2
|
|
3
|
-
|
3
|
+
export const protobufPackage = "decentraland.common.sdk";
|
4
4
|
export interface Snapshots {
|
5
5
|
face256: string;
|
6
6
|
body: string;
|
@@ -24,7 +24,7 @@ declare module "~system/UserIdentity" {
|
|
24
24
|
|
25
25
|
// ########### BLOCK
|
26
26
|
|
27
|
-
// importtype { UserData } from "proto/
|
27
|
+
// importtype { UserData } from "proto/decentraland/common/sdk/user_data.gen";
|
28
28
|
export interface GetUserDataRequest {
|
29
29
|
}
|
30
30
|
export interface GetUserDataResponse {
|
@@ -38,7 +38,7 @@ declare module "~system/UserIdentity" {
|
|
38
38
|
|
39
39
|
// ########### BLOCK
|
40
40
|
|
41
|
-
// importtype { GetUserPublicKeyRequest, GetUserPublicKeyResponse, GetUserDataRequest, GetUserDataResponse } from "proto/kernel/apis/
|
41
|
+
// importtype { GetUserPublicKeyRequest, GetUserPublicKeyResponse, GetUserDataRequest, GetUserDataResponse } from "proto/decentraland/kernel/apis/user_identity.gen";
|
42
42
|
export function getUserPublicKey(body: GetUserPublicKeyRequest): Promise<GetUserPublicKeyResponse>;
|
43
43
|
export function getUserData(body: GetUserDataRequest): Promise<GetUserDataResponse>;
|
44
44
|
|
package/types/tsconfig.ecs7.json
CHANGED
@@ -26,10 +26,10 @@
|
|
26
26
|
"ecs7",
|
27
27
|
"rpc-modules/CommunicationsController",
|
28
28
|
"rpc-modules/DevTools",
|
29
|
-
"rpc-modules/
|
30
|
-
"rpc-modules/
|
29
|
+
"rpc-modules/EngineApi",
|
30
|
+
"rpc-modules/EnvironmentApi",
|
31
31
|
"rpc-modules/EthereumController",
|
32
|
-
"rpc-modules/
|
32
|
+
"rpc-modules/ExperimentalApi",
|
33
33
|
"rpc-modules/ParcelIdentity",
|
34
34
|
"rpc-modules/Permissions",
|
35
35
|
"rpc-modules/Players",
|
@@ -1,16 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
import "ecs/components/common/id.proto";
|
4
|
-
option (ecs_component_id) = 1073;
|
5
|
-
|
6
|
-
enum AvatarAnchorPoint {
|
7
|
-
POSITION = 0;
|
8
|
-
NAME_TAG = 1;
|
9
|
-
LEFT_HAND = 2;
|
10
|
-
RIGHT_HAND = 3;
|
11
|
-
}
|
12
|
-
|
13
|
-
message PBAvatarAttach {
|
14
|
-
string avatar_id = 1;
|
15
|
-
AvatarAnchorPoint anchor_point_id = 2;
|
16
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
import "ecs/components/common/id.proto";
|
4
|
-
option (ecs_component_id) = 1070;
|
5
|
-
import "ecs/components/common/Vector3.proto";
|
6
|
-
|
7
|
-
enum AvatarModifier {
|
8
|
-
HIDE_AVATARS = 0;
|
9
|
-
DISABLE_PASSPORTS = 1;
|
10
|
-
}
|
11
|
-
|
12
|
-
message PBAvatarModifierArea {
|
13
|
-
Vector3 area = 1;
|
14
|
-
repeated string exclude_ids = 2;
|
15
|
-
repeated AvatarModifier modifiers = 3;
|
16
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
import "ecs/components/common/id.proto";
|
4
|
-
option (ecs_component_id) = 1071;
|
5
|
-
import "ecs/components/common/Vector3.proto";
|
6
|
-
import "ecs/components/common/CameraModeValue.proto";
|
7
|
-
|
8
|
-
message PBCameraModeArea {
|
9
|
-
Vector3 area = 1;
|
10
|
-
CameraModeValue mode = 2;
|
11
|
-
}
|
@@ -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,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,90 +0,0 @@
|
|
1
|
-
declare module "~system/SceneStateStorageController" {
|
2
|
-
|
3
|
-
export interface SerializedSceneState {
|
4
|
-
entities: SerializedEntity[];
|
5
|
-
}
|
6
|
-
export interface SerializedComponent {
|
7
|
-
type: number;
|
8
|
-
valueJson: string;
|
9
|
-
}
|
10
|
-
export interface SerializedEntity {
|
11
|
-
id: string;
|
12
|
-
components: SerializedComponent[];
|
13
|
-
}
|
14
|
-
export interface GetProjectManifestRequest {
|
15
|
-
projectId: string;
|
16
|
-
}
|
17
|
-
export interface GetProjectManifestResponse {
|
18
|
-
state?: SerializedSceneState | undefined;
|
19
|
-
}
|
20
|
-
export interface GetProjectManifestByCoordinatesRequest {
|
21
|
-
land: string;
|
22
|
-
}
|
23
|
-
export interface GetProjectManifestByCoordinatesResponse {
|
24
|
-
state?: SerializedSceneState | undefined;
|
25
|
-
}
|
26
|
-
export interface CreateProjectWithCoordsRequest {
|
27
|
-
coordinates: string;
|
28
|
-
}
|
29
|
-
export interface CreateProjectWithCoordsResponse {
|
30
|
-
ok: boolean;
|
31
|
-
}
|
32
|
-
export interface SaveSceneStateRequest {
|
33
|
-
serializedSceneState: SerializedSceneState | undefined;
|
34
|
-
}
|
35
|
-
export interface SaveSceneStateResponse {
|
36
|
-
ok: boolean;
|
37
|
-
error?: string | undefined;
|
38
|
-
}
|
39
|
-
export interface SaveProjectInfoRequest {
|
40
|
-
sceneState: SerializedSceneState | undefined;
|
41
|
-
projectName: string;
|
42
|
-
projectDescription: string;
|
43
|
-
projectScreenshot: string;
|
44
|
-
}
|
45
|
-
export interface SaveProjectInfoResponse {
|
46
|
-
ok: boolean;
|
47
|
-
}
|
48
|
-
export interface PublishSceneStateRequest {
|
49
|
-
sceneId: string;
|
50
|
-
sceneName: string;
|
51
|
-
sceneDescription: string;
|
52
|
-
sceneScreenshot: string;
|
53
|
-
sceneState: SerializedSceneState | undefined;
|
54
|
-
}
|
55
|
-
export interface PublishSceneStateResponse {
|
56
|
-
ok: boolean;
|
57
|
-
error?: string | undefined;
|
58
|
-
}
|
59
|
-
export interface GetStoredStateRequest {
|
60
|
-
sceneId: string;
|
61
|
-
}
|
62
|
-
export interface GetStoredStateResponse {
|
63
|
-
state?: SerializedSceneState | undefined;
|
64
|
-
}
|
65
|
-
export interface CreateProjectFromStateDefinitionRequest {
|
66
|
-
}
|
67
|
-
export interface CreateProjectFromStateDefinitionResponse {
|
68
|
-
state?: SerializedSceneState | undefined;
|
69
|
-
}
|
70
|
-
export interface SendAssetsToRendererRequest {
|
71
|
-
state: SerializedSceneState | undefined;
|
72
|
-
}
|
73
|
-
export interface SendAssetsToRendererResponse {
|
74
|
-
state: string;
|
75
|
-
}
|
76
|
-
|
77
|
-
// ########### BLOCK
|
78
|
-
|
79
|
-
// importtype { GetProjectManifestRequest, GetProjectManifestResponse, GetProjectManifestByCoordinatesRequest, GetProjectManifestByCoordinatesResponse, CreateProjectWithCoordsRequest, CreateProjectWithCoordsResponse, SaveSceneStateRequest, SaveSceneStateResponse, SaveProjectInfoRequest, SaveProjectInfoResponse, PublishSceneStateRequest, PublishSceneStateResponse, GetStoredStateRequest, GetStoredStateResponse, CreateProjectFromStateDefinitionRequest, CreateProjectFromStateDefinitionResponse, SendAssetsToRendererRequest, SendAssetsToRendererResponse } from "proto/kernel/apis/SceneStateStorageController.gen";
|
80
|
-
export function getProjectManifest(body: GetProjectManifestRequest): Promise<GetProjectManifestResponse>;
|
81
|
-
export function getProjectManifestByCoordinates(body: GetProjectManifestByCoordinatesRequest): Promise<GetProjectManifestByCoordinatesResponse>;
|
82
|
-
export function createProjectWithCoords(body: CreateProjectWithCoordsRequest): Promise<CreateProjectWithCoordsResponse>;
|
83
|
-
export function saveSceneState(body: SaveSceneStateRequest): Promise<SaveSceneStateResponse>;
|
84
|
-
export function saveProjectInfo(body: SaveProjectInfoRequest): Promise<SaveProjectInfoResponse>;
|
85
|
-
export function publishSceneState(body: PublishSceneStateRequest): Promise<PublishSceneStateResponse>;
|
86
|
-
export function getStoredState(body: GetStoredStateRequest): Promise<GetStoredStateResponse>;
|
87
|
-
export function createProjectFromStateDefinition(body: CreateProjectFromStateDefinitionRequest): Promise<CreateProjectFromStateDefinitionResponse>;
|
88
|
-
export function sendAssetsToRenderer(body: SendAssetsToRendererRequest): Promise<SendAssetsToRendererResponse>;
|
89
|
-
|
90
|
-
}
|