@dcl/sdk 7.0.0-2677443638.commit-397d9fc → 7.0.0-2706310238.commit-e895a52
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 +48 -30
- package/dist/ecs7/index.js +87 -34
- package/dist/ecs7/index.min.js +1 -1
- package/dist/ecs7/index.min.js.map +1 -1
- package/dist/ecs7/proto-definitions/AudioSource.proto +1 -2
- package/dist/ecs7/proto-definitions/AvatarModifierArea.proto +6 -5
- package/dist/ecs7/proto-definitions/CameraModeArea.proto +5 -4
- package/dist/ecs7/proto-definitions/OnPointerDown.proto +2 -1
- package/dist/ecs7/proto-definitions/OnPointerDownResult.proto +2 -1
- package/dist/ecs7/proto-definitions/OnPointerUp.proto +2 -1
- package/dist/ecs7/proto-definitions/OnPointerUpResult.proto +2 -1
- package/dist/ecs7/proto-definitions/common/ActionButton.proto +18 -0
- package/package.json +4 -4
- package/types/ecs7/index.d.ts +47 -29
- package/types/tsconfig.ecs7.json +4 -1
package/dist/ecs7/index.d.ts
CHANGED
@@ -1,13 +1,43 @@
|
|
1
|
+
declare const enum ActionButton {
|
2
|
+
POINTER = 0,
|
3
|
+
PRIMARY = 1,
|
4
|
+
SECONDARY = 2,
|
5
|
+
ANY = 3,
|
6
|
+
FORWARD = 4,
|
7
|
+
BACKWARD = 5,
|
8
|
+
RIGHT = 6,
|
9
|
+
LEFT = 7,
|
10
|
+
JUMP = 8,
|
11
|
+
WALK = 9,
|
12
|
+
ACTION_3 = 10,
|
13
|
+
ACTION_4 = 11,
|
14
|
+
ACTION_5 = 12,
|
15
|
+
ACTION_6 = 13,
|
16
|
+
UNRECOGNIZED = -1
|
17
|
+
}
|
18
|
+
|
1
19
|
/**
|
2
20
|
* @public
|
3
21
|
*/
|
4
22
|
export declare function ArrayType<T>(type: EcsType<T>): EcsType<Array<T>>;
|
5
23
|
|
24
|
+
declare const enum AvatarModifier {
|
25
|
+
HIDE_AVATARS = 0,
|
26
|
+
DISABLE_PASSPORTS = 1,
|
27
|
+
UNRECOGNIZED = -1
|
28
|
+
}
|
29
|
+
|
6
30
|
/**
|
7
31
|
* @public
|
8
32
|
*/
|
9
33
|
export declare type ByteBuffer = ReturnType<typeof createByteBuffer>;
|
10
34
|
|
35
|
+
declare const enum CameraMode {
|
36
|
+
FIRST_PERSON = 0,
|
37
|
+
THIRD_PERSON = 1,
|
38
|
+
UNRECOGNIZED = -1
|
39
|
+
}
|
40
|
+
|
11
41
|
declare interface Color3 {
|
12
42
|
r: number;
|
13
43
|
g: number;
|
@@ -315,7 +345,8 @@ export declare type IEngine = {
|
|
315
345
|
addEntity(dynamic?: boolean): Entity;
|
316
346
|
addDynamicEntity(): Entity;
|
317
347
|
removeEntity(entity: Entity): void;
|
318
|
-
addSystem(system: Update): void;
|
348
|
+
addSystem(system: Update, priority?: number, name?: string): void;
|
349
|
+
removeSystem(selector: string | Update): boolean;
|
319
350
|
defineComponent<T extends EcsType>(componentId: number, spec: T): ComponentDefinition<T>;
|
320
351
|
mutableGroupOf<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...ComponentEcsType<T>]>;
|
321
352
|
groupOf<T extends [ComponentDefinition, ...ComponentDefinition[]]>(...components: T): Iterable<[Entity, ...DeepReadonly<ComponentEcsType<T>>]>;
|
@@ -1143,7 +1174,6 @@ declare interface PBAudioSource {
|
|
1143
1174
|
volume: number;
|
1144
1175
|
loop: boolean;
|
1145
1176
|
pitch: number;
|
1146
|
-
playedAtTimestamp: number;
|
1147
1177
|
audioClipUrl: string;
|
1148
1178
|
}
|
1149
1179
|
|
@@ -1161,13 +1191,7 @@ declare interface PBAvatarAttach {
|
|
1161
1191
|
declare interface PBAvatarModifierArea {
|
1162
1192
|
area: Vector3_2 | undefined;
|
1163
1193
|
excludeIds: string[];
|
1164
|
-
modifiers:
|
1165
|
-
}
|
1166
|
-
|
1167
|
-
declare enum PBAvatarModifierArea_Modifier {
|
1168
|
-
HIDE_AVATARS = 0,
|
1169
|
-
DISABLE_PASSPORTS = 1,
|
1170
|
-
UNRECOGNIZED = -1
|
1194
|
+
modifiers: AvatarModifier[];
|
1171
1195
|
}
|
1172
1196
|
|
1173
1197
|
declare interface PBAvatarShape {
|
@@ -1200,13 +1224,7 @@ declare interface PBBoxShape {
|
|
1200
1224
|
|
1201
1225
|
declare interface PBCameraModeArea {
|
1202
1226
|
area: Vector3_2 | undefined;
|
1203
|
-
mode:
|
1204
|
-
}
|
1205
|
-
|
1206
|
-
declare enum PBCameraModeArea_CameraMode {
|
1207
|
-
FIRST_PERSON = 0,
|
1208
|
-
THIRD_PERSON = 1,
|
1209
|
-
UNRECOGNIZED = -1
|
1227
|
+
mode: CameraMode;
|
1210
1228
|
}
|
1211
1229
|
|
1212
1230
|
declare interface PBCylinderShape {
|
@@ -1235,14 +1253,14 @@ declare interface PBNFTShape {
|
|
1235
1253
|
}
|
1236
1254
|
|
1237
1255
|
declare interface PBOnPointerDown {
|
1238
|
-
button:
|
1256
|
+
button: ActionButton;
|
1239
1257
|
hoverText: string;
|
1240
1258
|
distance: number;
|
1241
1259
|
showFeedback: boolean;
|
1242
1260
|
}
|
1243
1261
|
|
1244
1262
|
declare interface PBOnPointerDownResult {
|
1245
|
-
button:
|
1263
|
+
button: ActionButton;
|
1246
1264
|
meshName: string;
|
1247
1265
|
origin: Vector3_2 | undefined;
|
1248
1266
|
direction: Vector3_2 | undefined;
|
@@ -1253,14 +1271,14 @@ declare interface PBOnPointerDownResult {
|
|
1253
1271
|
}
|
1254
1272
|
|
1255
1273
|
declare interface PBOnPointerUp {
|
1256
|
-
button:
|
1274
|
+
button: ActionButton;
|
1257
1275
|
hoverText: string;
|
1258
1276
|
distance: number;
|
1259
1277
|
showFeedback: boolean;
|
1260
1278
|
}
|
1261
1279
|
|
1262
1280
|
declare interface PBOnPointerUpResult {
|
1263
|
-
button:
|
1281
|
+
button: ActionButton;
|
1264
1282
|
meshName: string;
|
1265
1283
|
origin: Vector3_2 | undefined;
|
1266
1284
|
direction: Vector3_2 | undefined;
|
@@ -1735,7 +1753,7 @@ export declare type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
1735
1753
|
/**
|
1736
1754
|
* @public
|
1737
1755
|
*/
|
1738
|
-
|
1756
|
+
declare type Update = (dt: number) => void;
|
1739
1757
|
|
1740
1758
|
/**
|
1741
1759
|
* @public
|
@@ -1970,7 +1988,7 @@ declare namespace WireMessage {
|
|
1970
1988
|
function readHeader(buf: ByteBuffer): Header | null;
|
1971
1989
|
}
|
1972
1990
|
|
1973
|
-
declare enum YGAlign {
|
1991
|
+
declare const enum YGAlign {
|
1974
1992
|
YGAlignAuto = 0,
|
1975
1993
|
YGAlignFlexStart = 1,
|
1976
1994
|
YGAlignCenter = 2,
|
@@ -1982,20 +2000,20 @@ declare enum YGAlign {
|
|
1982
2000
|
UNRECOGNIZED = -1
|
1983
2001
|
}
|
1984
2002
|
|
1985
|
-
declare enum YGDirection {
|
2003
|
+
declare const enum YGDirection {
|
1986
2004
|
YGDirectionInherit = 0,
|
1987
2005
|
YGDirectionLTR = 1,
|
1988
2006
|
YGDirectionRTL = 2,
|
1989
2007
|
UNRECOGNIZED = -1
|
1990
2008
|
}
|
1991
2009
|
|
1992
|
-
declare enum YGDisplay {
|
2010
|
+
declare const enum YGDisplay {
|
1993
2011
|
YGDisplayFlex = 0,
|
1994
2012
|
YGDisplayNone = 1,
|
1995
2013
|
UNRECOGNIZED = -1
|
1996
2014
|
}
|
1997
2015
|
|
1998
|
-
declare enum YGFlexDirection {
|
2016
|
+
declare const enum YGFlexDirection {
|
1999
2017
|
YGFlexDirectionColumn = 0,
|
2000
2018
|
YGFlexDirectionColumnReverse = 1,
|
2001
2019
|
YGFlexDirectionRow = 2,
|
@@ -2003,7 +2021,7 @@ declare enum YGFlexDirection {
|
|
2003
2021
|
UNRECOGNIZED = -1
|
2004
2022
|
}
|
2005
2023
|
|
2006
|
-
declare enum YGJustify {
|
2024
|
+
declare const enum YGJustify {
|
2007
2025
|
YGJustifyFlexStart = 0,
|
2008
2026
|
YGJustifyCenter = 1,
|
2009
2027
|
YGJustifyFlexEnd = 2,
|
@@ -2013,21 +2031,21 @@ declare enum YGJustify {
|
|
2013
2031
|
UNRECOGNIZED = -1
|
2014
2032
|
}
|
2015
2033
|
|
2016
|
-
declare enum YGOverflow {
|
2034
|
+
declare const enum YGOverflow {
|
2017
2035
|
YGOverflowVisible = 0,
|
2018
2036
|
YGOverflowHidden = 1,
|
2019
2037
|
YGOverflowScroll = 2,
|
2020
2038
|
UNRECOGNIZED = -1
|
2021
2039
|
}
|
2022
2040
|
|
2023
|
-
declare enum YGPositionType {
|
2041
|
+
declare const enum YGPositionType {
|
2024
2042
|
YGPositionTypeStatic = 0,
|
2025
2043
|
YGPositionTypeRelative = 1,
|
2026
2044
|
YGPositionTypeAbsolute = 2,
|
2027
2045
|
UNRECOGNIZED = -1
|
2028
2046
|
}
|
2029
2047
|
|
2030
|
-
declare enum YGUnit {
|
2048
|
+
declare const enum YGUnit {
|
2031
2049
|
YGUnitUndefined = 0,
|
2032
2050
|
YGUnitPoint = 1,
|
2033
2051
|
YGUnitPercent = 2,
|
@@ -2035,7 +2053,7 @@ declare enum YGUnit {
|
|
2035
2053
|
UNRECOGNIZED = -1
|
2036
2054
|
}
|
2037
2055
|
|
2038
|
-
declare enum YGWrap {
|
2056
|
+
declare const enum YGWrap {
|
2039
2057
|
YGWrapNoWrap = 0,
|
2040
2058
|
YGWrapWrap = 1,
|
2041
2059
|
YGWrapWrapReverse = 2,
|