@dcl/playground-assets 7.1.4-4491693391.commit-569ecab → 7.1.4-4495128859.commit-9f954df
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/alpha.d.ts +337 -58
- package/dist/beta.d.ts +337 -58
- package/dist/index.bundled.d.ts +337 -58
- package/dist/index.js +161 -108
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +14 -14
- package/dist/playground/snippets/raycast-hit-many.ts +7 -4
- package/dist/playground/snippets/raycast-hit.ts +9 -4
- package/dist/playground-assets.d.ts +337 -58
- package/etc/playground-assets.api.json +591 -152
- package/etc/playground-assets.api.md +48 -64
- package/package.json +17 -17
package/dist/index.js
CHANGED
|
@@ -7748,6 +7748,7 @@
|
|
|
7748
7748
|
};
|
|
7749
7749
|
|
|
7750
7750
|
/* eslint-disable */
|
|
7751
|
+
/** AvatarAnchorPointType determines the part of the avatar's body that anchors the Entity. */
|
|
7751
7752
|
/**
|
|
7752
7753
|
* @public
|
|
7753
7754
|
*/
|
|
@@ -7873,12 +7874,15 @@
|
|
|
7873
7874
|
};
|
|
7874
7875
|
|
|
7875
7876
|
/* eslint-disable */
|
|
7877
|
+
/** AvatarModifierType is an effect that should be applied to avatars inside the region. */
|
|
7876
7878
|
/**
|
|
7877
7879
|
* @public
|
|
7878
7880
|
*/
|
|
7879
7881
|
exports.AvatarModifierType = void 0;
|
|
7880
7882
|
(function (AvatarModifierType) {
|
|
7883
|
+
/** AMT_HIDE_AVATARS - avatars are invisible */
|
|
7881
7884
|
AvatarModifierType[AvatarModifierType["AMT_HIDE_AVATARS"] = 0] = "AMT_HIDE_AVATARS";
|
|
7885
|
+
/** AMT_DISABLE_PASSPORTS - selecting (e.g. clicking) an avatar will not bring up their profile. */
|
|
7882
7886
|
AvatarModifierType[AvatarModifierType["AMT_DISABLE_PASSPORTS"] = 1] = "AMT_DISABLE_PASSPORTS";
|
|
7883
7887
|
})(exports.AvatarModifierType || (exports.AvatarModifierType = {}));
|
|
7884
7888
|
function createBasePBAvatarModifierArea() {
|
|
@@ -9486,7 +9490,7 @@
|
|
|
9486
9490
|
message.expressionTriggerId = reader.string();
|
|
9487
9491
|
break;
|
|
9488
9492
|
case 8:
|
|
9489
|
-
message.expressionTriggerTimestamp = longToNumber
|
|
9493
|
+
message.expressionTriggerTimestamp = longToNumber(reader.int64());
|
|
9490
9494
|
break;
|
|
9491
9495
|
case 9:
|
|
9492
9496
|
message.talking = reader.bool();
|
|
@@ -9505,7 +9509,7 @@
|
|
|
9505
9509
|
return message;
|
|
9506
9510
|
},
|
|
9507
9511
|
};
|
|
9508
|
-
var tsProtoGlobalThis$
|
|
9512
|
+
var tsProtoGlobalThis$2 = (() => {
|
|
9509
9513
|
if (typeof globalThis !== "undefined") {
|
|
9510
9514
|
return globalThis;
|
|
9511
9515
|
}
|
|
@@ -9520,9 +9524,9 @@
|
|
|
9520
9524
|
}
|
|
9521
9525
|
throw "Unable to locate global object";
|
|
9522
9526
|
})();
|
|
9523
|
-
function longToNumber
|
|
9527
|
+
function longToNumber(long) {
|
|
9524
9528
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
9525
|
-
throw new tsProtoGlobalThis$
|
|
9529
|
+
throw new tsProtoGlobalThis$2.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
9526
9530
|
}
|
|
9527
9531
|
return long.toNumber();
|
|
9528
9532
|
}
|
|
@@ -9557,6 +9561,7 @@
|
|
|
9557
9561
|
};
|
|
9558
9562
|
|
|
9559
9563
|
/* eslint-disable */
|
|
9564
|
+
/** BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form. */
|
|
9560
9565
|
/**
|
|
9561
9566
|
* @public
|
|
9562
9567
|
*/
|
|
@@ -9566,6 +9571,7 @@
|
|
|
9566
9571
|
BillboardMode[BillboardMode["BM_X"] = 1] = "BM_X";
|
|
9567
9572
|
BillboardMode[BillboardMode["BM_Y"] = 2] = "BM_Y";
|
|
9568
9573
|
BillboardMode[BillboardMode["BM_Z"] = 4] = "BM_Z";
|
|
9574
|
+
/** BM_ALL - bitwise combination BM_X | BM_Y | BM_Z */
|
|
9569
9575
|
BillboardMode[BillboardMode["BM_ALL"] = 7] = "BM_ALL";
|
|
9570
9576
|
})(exports.BillboardMode || (exports.BillboardMode = {}));
|
|
9571
9577
|
function createBasePBBillboard() {
|
|
@@ -10294,14 +10300,33 @@
|
|
|
10294
10300
|
};
|
|
10295
10301
|
|
|
10296
10302
|
/* eslint-disable */
|
|
10303
|
+
/** ColliderLayer determines the kind of collision to detect, in OR-able bit flag form. */
|
|
10297
10304
|
/**
|
|
10298
10305
|
* @public
|
|
10299
10306
|
*/
|
|
10300
10307
|
exports.ColliderLayer = void 0;
|
|
10301
10308
|
(function (ColliderLayer) {
|
|
10309
|
+
/** CL_NONE - no collisions */
|
|
10302
10310
|
ColliderLayer[ColliderLayer["CL_NONE"] = 0] = "CL_NONE";
|
|
10311
|
+
/** CL_POINTER - collisions with the player's pointer ray (e.g. mouse cursor hovering) */
|
|
10303
10312
|
ColliderLayer[ColliderLayer["CL_POINTER"] = 1] = "CL_POINTER";
|
|
10313
|
+
/** CL_PHYSICS - collision affecting your player's physics i.e. walls, floor, moving platfroms */
|
|
10304
10314
|
ColliderLayer[ColliderLayer["CL_PHYSICS"] = 2] = "CL_PHYSICS";
|
|
10315
|
+
/** CL_VISIBLE_MESHES - all visible meshes, use with extreme care since the performance penalty is high */
|
|
10316
|
+
ColliderLayer[ColliderLayer["CL_VISIBLE_MESHES"] = 4] = "CL_VISIBLE_MESHES";
|
|
10317
|
+
ColliderLayer[ColliderLayer["CL_RESERVED2"] = 8] = "CL_RESERVED2";
|
|
10318
|
+
ColliderLayer[ColliderLayer["CL_RESERVED3"] = 16] = "CL_RESERVED3";
|
|
10319
|
+
ColliderLayer[ColliderLayer["CL_RESERVED4"] = 32] = "CL_RESERVED4";
|
|
10320
|
+
ColliderLayer[ColliderLayer["CL_RESERVED5"] = 64] = "CL_RESERVED5";
|
|
10321
|
+
ColliderLayer[ColliderLayer["CL_RESERVED6"] = 128] = "CL_RESERVED6";
|
|
10322
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM1"] = 256] = "CL_CUSTOM1";
|
|
10323
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM2"] = 512] = "CL_CUSTOM2";
|
|
10324
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM3"] = 1024] = "CL_CUSTOM3";
|
|
10325
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM4"] = 2048] = "CL_CUSTOM4";
|
|
10326
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM5"] = 4096] = "CL_CUSTOM5";
|
|
10327
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM6"] = 8192] = "CL_CUSTOM6";
|
|
10328
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM7"] = 16384] = "CL_CUSTOM7";
|
|
10329
|
+
ColliderLayer[ColliderLayer["CL_CUSTOM8"] = 32768] = "CL_CUSTOM8";
|
|
10305
10330
|
})(exports.ColliderLayer || (exports.ColliderLayer = {}));
|
|
10306
10331
|
function createBasePBMeshCollider() {
|
|
10307
10332
|
return { collisionMask: undefined, mesh: undefined };
|
|
@@ -10747,6 +10772,7 @@
|
|
|
10747
10772
|
};
|
|
10748
10773
|
|
|
10749
10774
|
/* eslint-disable */
|
|
10775
|
+
/** NftFrameType is a predefined framing style for the image. */
|
|
10750
10776
|
/**
|
|
10751
10777
|
* @public
|
|
10752
10778
|
*/
|
|
@@ -10849,16 +10875,6 @@
|
|
|
10849
10875
|
};
|
|
10850
10876
|
|
|
10851
10877
|
/* eslint-disable */
|
|
10852
|
-
/**
|
|
10853
|
-
* @public
|
|
10854
|
-
*/
|
|
10855
|
-
exports.PointerEventType = void 0;
|
|
10856
|
-
(function (PointerEventType) {
|
|
10857
|
-
PointerEventType[PointerEventType["PET_UP"] = 0] = "PET_UP";
|
|
10858
|
-
PointerEventType[PointerEventType["PET_DOWN"] = 1] = "PET_DOWN";
|
|
10859
|
-
PointerEventType[PointerEventType["PET_HOVER_ENTER"] = 2] = "PET_HOVER_ENTER";
|
|
10860
|
-
PointerEventType[PointerEventType["PET_HOVER_LEAVE"] = 3] = "PET_HOVER_LEAVE";
|
|
10861
|
-
})(exports.PointerEventType || (exports.PointerEventType = {}));
|
|
10862
10878
|
function createBasePBPointerEvents() {
|
|
10863
10879
|
return { pointerEvents: [] };
|
|
10864
10880
|
}
|
|
@@ -11012,62 +11028,10 @@
|
|
|
11012
11028
|
};
|
|
11013
11029
|
|
|
11014
11030
|
/* eslint-disable */
|
|
11015
|
-
function createBasePBRaycastResult() {
|
|
11016
|
-
return { timestamp: 0, origin: undefined, direction: undefined, hits: [] };
|
|
11017
|
-
}
|
|
11018
|
-
/**
|
|
11019
|
-
* @public
|
|
11020
|
-
*/
|
|
11021
|
-
/**
|
|
11022
|
-
* @internal
|
|
11023
|
-
*/
|
|
11024
|
-
const PBRaycastResult = {
|
|
11025
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
11026
|
-
if (message.timestamp !== 0) {
|
|
11027
|
-
writer.uint32(8).int32(message.timestamp);
|
|
11028
|
-
}
|
|
11029
|
-
if (message.origin !== undefined) {
|
|
11030
|
-
Vector3.encode(message.origin, writer.uint32(18).fork()).ldelim();
|
|
11031
|
-
}
|
|
11032
|
-
if (message.direction !== undefined) {
|
|
11033
|
-
Vector3.encode(message.direction, writer.uint32(26).fork()).ldelim();
|
|
11034
|
-
}
|
|
11035
|
-
for (const v of message.hits) {
|
|
11036
|
-
RaycastHit.encode(v, writer.uint32(34).fork()).ldelim();
|
|
11037
|
-
}
|
|
11038
|
-
return writer;
|
|
11039
|
-
},
|
|
11040
|
-
decode(input, length) {
|
|
11041
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
11042
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11043
|
-
const message = createBasePBRaycastResult();
|
|
11044
|
-
while (reader.pos < end) {
|
|
11045
|
-
const tag = reader.uint32();
|
|
11046
|
-
switch (tag >>> 3) {
|
|
11047
|
-
case 1:
|
|
11048
|
-
message.timestamp = reader.int32();
|
|
11049
|
-
break;
|
|
11050
|
-
case 2:
|
|
11051
|
-
message.origin = Vector3.decode(reader, reader.uint32());
|
|
11052
|
-
break;
|
|
11053
|
-
case 3:
|
|
11054
|
-
message.direction = Vector3.decode(reader, reader.uint32());
|
|
11055
|
-
break;
|
|
11056
|
-
case 4:
|
|
11057
|
-
message.hits.push(RaycastHit.decode(reader, reader.uint32()));
|
|
11058
|
-
break;
|
|
11059
|
-
default:
|
|
11060
|
-
reader.skipType(tag & 7);
|
|
11061
|
-
break;
|
|
11062
|
-
}
|
|
11063
|
-
}
|
|
11064
|
-
return message;
|
|
11065
|
-
},
|
|
11066
|
-
};
|
|
11067
11031
|
function createBaseRaycastHit() {
|
|
11068
11032
|
return {
|
|
11069
11033
|
position: undefined,
|
|
11070
|
-
|
|
11034
|
+
globalOrigin: undefined,
|
|
11071
11035
|
direction: undefined,
|
|
11072
11036
|
normalHit: undefined,
|
|
11073
11037
|
length: 0,
|
|
@@ -11086,8 +11050,8 @@
|
|
|
11086
11050
|
if (message.position !== undefined) {
|
|
11087
11051
|
Vector3.encode(message.position, writer.uint32(10).fork()).ldelim();
|
|
11088
11052
|
}
|
|
11089
|
-
if (message.
|
|
11090
|
-
Vector3.encode(message.
|
|
11053
|
+
if (message.globalOrigin !== undefined) {
|
|
11054
|
+
Vector3.encode(message.globalOrigin, writer.uint32(18).fork()).ldelim();
|
|
11091
11055
|
}
|
|
11092
11056
|
if (message.direction !== undefined) {
|
|
11093
11057
|
Vector3.encode(message.direction, writer.uint32(26).fork()).ldelim();
|
|
@@ -11102,7 +11066,7 @@
|
|
|
11102
11066
|
writer.uint32(50).string(message.meshName);
|
|
11103
11067
|
}
|
|
11104
11068
|
if (message.entityId !== undefined) {
|
|
11105
|
-
writer.uint32(56).
|
|
11069
|
+
writer.uint32(56).uint32(message.entityId);
|
|
11106
11070
|
}
|
|
11107
11071
|
return writer;
|
|
11108
11072
|
},
|
|
@@ -11117,7 +11081,7 @@
|
|
|
11117
11081
|
message.position = Vector3.decode(reader, reader.uint32());
|
|
11118
11082
|
break;
|
|
11119
11083
|
case 2:
|
|
11120
|
-
message.
|
|
11084
|
+
message.globalOrigin = Vector3.decode(reader, reader.uint32());
|
|
11121
11085
|
break;
|
|
11122
11086
|
case 3:
|
|
11123
11087
|
message.direction = Vector3.decode(reader, reader.uint32());
|
|
@@ -11132,7 +11096,7 @@
|
|
|
11132
11096
|
message.meshName = reader.string();
|
|
11133
11097
|
break;
|
|
11134
11098
|
case 7:
|
|
11135
|
-
message.entityId =
|
|
11099
|
+
message.entityId = reader.uint32();
|
|
11136
11100
|
break;
|
|
11137
11101
|
default:
|
|
11138
11102
|
reader.skipType(tag & 7);
|
|
@@ -11142,31 +11106,6 @@
|
|
|
11142
11106
|
return message;
|
|
11143
11107
|
},
|
|
11144
11108
|
};
|
|
11145
|
-
var tsProtoGlobalThis$2 = (() => {
|
|
11146
|
-
if (typeof globalThis !== "undefined") {
|
|
11147
|
-
return globalThis;
|
|
11148
|
-
}
|
|
11149
|
-
if (typeof self !== "undefined") {
|
|
11150
|
-
return self;
|
|
11151
|
-
}
|
|
11152
|
-
if (typeof window !== "undefined") {
|
|
11153
|
-
return window;
|
|
11154
|
-
}
|
|
11155
|
-
if (typeof global !== "undefined") {
|
|
11156
|
-
return global;
|
|
11157
|
-
}
|
|
11158
|
-
throw "Unable to locate global object";
|
|
11159
|
-
})();
|
|
11160
|
-
function longToNumber(long) {
|
|
11161
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
11162
|
-
throw new tsProtoGlobalThis$2.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
11163
|
-
}
|
|
11164
|
-
return long.toNumber();
|
|
11165
|
-
}
|
|
11166
|
-
if (_m0.util.Long !== Long) {
|
|
11167
|
-
_m0.util.Long = Long;
|
|
11168
|
-
_m0.configure();
|
|
11169
|
-
}
|
|
11170
11109
|
|
|
11171
11110
|
/* eslint-disable */
|
|
11172
11111
|
function createBasePBPointerEventsResult() {
|
|
@@ -11190,7 +11129,7 @@
|
|
|
11190
11129
|
writer.uint32(32).int32(message.state);
|
|
11191
11130
|
}
|
|
11192
11131
|
if (message.timestamp !== 0) {
|
|
11193
|
-
writer.uint32(40).
|
|
11132
|
+
writer.uint32(40).uint32(message.timestamp);
|
|
11194
11133
|
}
|
|
11195
11134
|
if (message.analog !== undefined) {
|
|
11196
11135
|
writer.uint32(53).float(message.analog);
|
|
@@ -11214,7 +11153,7 @@
|
|
|
11214
11153
|
message.state = reader.int32();
|
|
11215
11154
|
break;
|
|
11216
11155
|
case 5:
|
|
11217
|
-
message.timestamp = reader.
|
|
11156
|
+
message.timestamp = reader.uint32();
|
|
11218
11157
|
break;
|
|
11219
11158
|
case 6:
|
|
11220
11159
|
message.analog = reader.float();
|
|
@@ -11315,16 +11254,29 @@
|
|
|
11315
11254
|
};
|
|
11316
11255
|
|
|
11317
11256
|
/* eslint-disable */
|
|
11257
|
+
/** RaycastQueryType indicates whether the ray should stop on the first collition, or continue. */
|
|
11318
11258
|
/**
|
|
11319
11259
|
* @public
|
|
11320
11260
|
*/
|
|
11321
11261
|
exports.RaycastQueryType = void 0;
|
|
11322
11262
|
(function (RaycastQueryType) {
|
|
11263
|
+
/** RQT_HIT_FIRST - Pick the first (not necessarily the closest) hit within the range */
|
|
11323
11264
|
RaycastQueryType[RaycastQueryType["RQT_HIT_FIRST"] = 0] = "RQT_HIT_FIRST";
|
|
11265
|
+
/** RQT_QUERY_ALL - Pick all hits within the range */
|
|
11324
11266
|
RaycastQueryType[RaycastQueryType["RQT_QUERY_ALL"] = 1] = "RQT_QUERY_ALL";
|
|
11267
|
+
/** RQT_NONE - Do not perform the raycast, only set the raycast result with empty hits */
|
|
11268
|
+
RaycastQueryType[RaycastQueryType["RQT_NONE"] = 2] = "RQT_NONE";
|
|
11325
11269
|
})(exports.RaycastQueryType || (exports.RaycastQueryType = {}));
|
|
11326
11270
|
function createBasePBRaycast() {
|
|
11327
|
-
return {
|
|
11271
|
+
return {
|
|
11272
|
+
timestamp: undefined,
|
|
11273
|
+
originOffset: undefined,
|
|
11274
|
+
direction: undefined,
|
|
11275
|
+
maxDistance: 0,
|
|
11276
|
+
queryType: 0,
|
|
11277
|
+
continuous: undefined,
|
|
11278
|
+
collisionMask: undefined,
|
|
11279
|
+
};
|
|
11328
11280
|
}
|
|
11329
11281
|
/**
|
|
11330
11282
|
* @public
|
|
@@ -11334,11 +11286,23 @@
|
|
|
11334
11286
|
*/
|
|
11335
11287
|
const PBRaycast = {
|
|
11336
11288
|
encode(message, writer = _m0.Writer.create()) {
|
|
11337
|
-
if (message.
|
|
11338
|
-
|
|
11289
|
+
if (message.timestamp !== undefined) {
|
|
11290
|
+
writer.uint32(8).uint32(message.timestamp);
|
|
11339
11291
|
}
|
|
11340
|
-
if (message.
|
|
11341
|
-
Vector3.encode(message.
|
|
11292
|
+
if (message.originOffset !== undefined) {
|
|
11293
|
+
Vector3.encode(message.originOffset, writer.uint32(18).fork()).ldelim();
|
|
11294
|
+
}
|
|
11295
|
+
if (message.direction?.$case === "localDirection") {
|
|
11296
|
+
Vector3.encode(message.direction.localDirection, writer.uint32(50).fork()).ldelim();
|
|
11297
|
+
}
|
|
11298
|
+
if (message.direction?.$case === "globalDirection") {
|
|
11299
|
+
Vector3.encode(message.direction.globalDirection, writer.uint32(26).fork()).ldelim();
|
|
11300
|
+
}
|
|
11301
|
+
if (message.direction?.$case === "globalTarget") {
|
|
11302
|
+
Vector3.encode(message.direction.globalTarget, writer.uint32(58).fork()).ldelim();
|
|
11303
|
+
}
|
|
11304
|
+
if (message.direction?.$case === "targetEntity") {
|
|
11305
|
+
writer.uint32(80).uint32(message.direction.targetEntity);
|
|
11342
11306
|
}
|
|
11343
11307
|
if (message.maxDistance !== 0) {
|
|
11344
11308
|
writer.uint32(37).float(message.maxDistance);
|
|
@@ -11346,6 +11310,12 @@
|
|
|
11346
11310
|
if (message.queryType !== 0) {
|
|
11347
11311
|
writer.uint32(40).int32(message.queryType);
|
|
11348
11312
|
}
|
|
11313
|
+
if (message.continuous !== undefined) {
|
|
11314
|
+
writer.uint32(64).bool(message.continuous);
|
|
11315
|
+
}
|
|
11316
|
+
if (message.collisionMask !== undefined) {
|
|
11317
|
+
writer.uint32(72).uint32(message.collisionMask);
|
|
11318
|
+
}
|
|
11349
11319
|
return writer;
|
|
11350
11320
|
},
|
|
11351
11321
|
decode(input, length) {
|
|
@@ -11355,11 +11325,23 @@
|
|
|
11355
11325
|
while (reader.pos < end) {
|
|
11356
11326
|
const tag = reader.uint32();
|
|
11357
11327
|
switch (tag >>> 3) {
|
|
11328
|
+
case 1:
|
|
11329
|
+
message.timestamp = reader.uint32();
|
|
11330
|
+
break;
|
|
11358
11331
|
case 2:
|
|
11359
|
-
message.
|
|
11332
|
+
message.originOffset = Vector3.decode(reader, reader.uint32());
|
|
11333
|
+
break;
|
|
11334
|
+
case 6:
|
|
11335
|
+
message.direction = { $case: "localDirection", localDirection: Vector3.decode(reader, reader.uint32()) };
|
|
11360
11336
|
break;
|
|
11361
11337
|
case 3:
|
|
11362
|
-
message.direction = Vector3.decode(reader, reader.uint32());
|
|
11338
|
+
message.direction = { $case: "globalDirection", globalDirection: Vector3.decode(reader, reader.uint32()) };
|
|
11339
|
+
break;
|
|
11340
|
+
case 7:
|
|
11341
|
+
message.direction = { $case: "globalTarget", globalTarget: Vector3.decode(reader, reader.uint32()) };
|
|
11342
|
+
break;
|
|
11343
|
+
case 10:
|
|
11344
|
+
message.direction = { $case: "targetEntity", targetEntity: reader.uint32() };
|
|
11363
11345
|
break;
|
|
11364
11346
|
case 4:
|
|
11365
11347
|
message.maxDistance = reader.float();
|
|
@@ -11367,6 +11349,12 @@
|
|
|
11367
11349
|
case 5:
|
|
11368
11350
|
message.queryType = reader.int32();
|
|
11369
11351
|
break;
|
|
11352
|
+
case 8:
|
|
11353
|
+
message.continuous = reader.bool();
|
|
11354
|
+
break;
|
|
11355
|
+
case 9:
|
|
11356
|
+
message.collisionMask = reader.uint32();
|
|
11357
|
+
break;
|
|
11370
11358
|
default:
|
|
11371
11359
|
reader.skipType(tag & 7);
|
|
11372
11360
|
break;
|
|
@@ -11401,6 +11389,60 @@
|
|
|
11401
11389
|
}
|
|
11402
11390
|
};
|
|
11403
11391
|
|
|
11392
|
+
/* eslint-disable */
|
|
11393
|
+
function createBasePBRaycastResult() {
|
|
11394
|
+
return { timestamp: undefined, globalOrigin: undefined, direction: undefined, hits: [] };
|
|
11395
|
+
}
|
|
11396
|
+
/**
|
|
11397
|
+
* @public
|
|
11398
|
+
*/
|
|
11399
|
+
/**
|
|
11400
|
+
* @internal
|
|
11401
|
+
*/
|
|
11402
|
+
const PBRaycastResult = {
|
|
11403
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
11404
|
+
if (message.timestamp !== undefined) {
|
|
11405
|
+
writer.uint32(8).uint32(message.timestamp);
|
|
11406
|
+
}
|
|
11407
|
+
if (message.globalOrigin !== undefined) {
|
|
11408
|
+
Vector3.encode(message.globalOrigin, writer.uint32(18).fork()).ldelim();
|
|
11409
|
+
}
|
|
11410
|
+
if (message.direction !== undefined) {
|
|
11411
|
+
Vector3.encode(message.direction, writer.uint32(26).fork()).ldelim();
|
|
11412
|
+
}
|
|
11413
|
+
for (const v of message.hits) {
|
|
11414
|
+
RaycastHit.encode(v, writer.uint32(34).fork()).ldelim();
|
|
11415
|
+
}
|
|
11416
|
+
return writer;
|
|
11417
|
+
},
|
|
11418
|
+
decode(input, length) {
|
|
11419
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
11420
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
11421
|
+
const message = createBasePBRaycastResult();
|
|
11422
|
+
while (reader.pos < end) {
|
|
11423
|
+
const tag = reader.uint32();
|
|
11424
|
+
switch (tag >>> 3) {
|
|
11425
|
+
case 1:
|
|
11426
|
+
message.timestamp = reader.uint32();
|
|
11427
|
+
break;
|
|
11428
|
+
case 2:
|
|
11429
|
+
message.globalOrigin = Vector3.decode(reader, reader.uint32());
|
|
11430
|
+
break;
|
|
11431
|
+
case 3:
|
|
11432
|
+
message.direction = Vector3.decode(reader, reader.uint32());
|
|
11433
|
+
break;
|
|
11434
|
+
case 4:
|
|
11435
|
+
message.hits.push(RaycastHit.decode(reader, reader.uint32()));
|
|
11436
|
+
break;
|
|
11437
|
+
default:
|
|
11438
|
+
reader.skipType(tag & 7);
|
|
11439
|
+
break;
|
|
11440
|
+
}
|
|
11441
|
+
}
|
|
11442
|
+
return message;
|
|
11443
|
+
},
|
|
11444
|
+
};
|
|
11445
|
+
|
|
11404
11446
|
/**
|
|
11405
11447
|
* @internal
|
|
11406
11448
|
*/
|
|
@@ -13327,12 +13369,10 @@
|
|
|
13327
13369
|
PBUiTransform: PBUiTransform,
|
|
13328
13370
|
PBVideoPlayer: PBVideoPlayer,
|
|
13329
13371
|
PBVisibilityComponent: PBVisibilityComponent,
|
|
13330
|
-
get PointerEventType () { return exports.PointerEventType; },
|
|
13331
13372
|
PointerEvents: PointerEvents$1,
|
|
13332
13373
|
PointerEventsResult: PointerEventsResult$1,
|
|
13333
13374
|
PointerLock: PointerLock$1,
|
|
13334
13375
|
Raycast: Raycast$1,
|
|
13335
|
-
RaycastHit: RaycastHit,
|
|
13336
13376
|
get RaycastQueryType () { return exports.RaycastQueryType; },
|
|
13337
13377
|
RaycastResult: RaycastResult$1,
|
|
13338
13378
|
TextShape: TextShape$1,
|
|
@@ -16227,6 +16267,8 @@
|
|
|
16227
16267
|
(function (CameraType) {
|
|
16228
16268
|
CameraType[CameraType["CT_FIRST_PERSON"] = 0] = "CT_FIRST_PERSON";
|
|
16229
16269
|
CameraType[CameraType["CT_THIRD_PERSON"] = 1] = "CT_THIRD_PERSON";
|
|
16270
|
+
/** CT_CINEMATIC - controlled by the scene */
|
|
16271
|
+
CameraType[CameraType["CT_CINEMATIC"] = 2] = "CT_CINEMATIC";
|
|
16230
16272
|
})(exports.CameraType || (exports.CameraType = {}));
|
|
16231
16273
|
|
|
16232
16274
|
/* eslint-disable */
|
|
@@ -16250,6 +16292,17 @@
|
|
|
16250
16292
|
InputAction[InputAction["IA_ACTION_5"] = 12] = "IA_ACTION_5";
|
|
16251
16293
|
InputAction[InputAction["IA_ACTION_6"] = 13] = "IA_ACTION_6";
|
|
16252
16294
|
})(exports.InputAction || (exports.InputAction = {}));
|
|
16295
|
+
/** PointerEventType is a kind of interaction that can be detected. */
|
|
16296
|
+
/**
|
|
16297
|
+
* @public
|
|
16298
|
+
*/
|
|
16299
|
+
exports.PointerEventType = void 0;
|
|
16300
|
+
(function (PointerEventType) {
|
|
16301
|
+
PointerEventType[PointerEventType["PET_UP"] = 0] = "PET_UP";
|
|
16302
|
+
PointerEventType[PointerEventType["PET_DOWN"] = 1] = "PET_DOWN";
|
|
16303
|
+
PointerEventType[PointerEventType["PET_HOVER_ENTER"] = 2] = "PET_HOVER_ENTER";
|
|
16304
|
+
PointerEventType[PointerEventType["PET_HOVER_LEAVE"] = 3] = "PET_HOVER_LEAVE";
|
|
16305
|
+
})(exports.PointerEventType || (exports.PointerEventType = {}));
|
|
16253
16306
|
|
|
16254
16307
|
/* eslint-disable */
|
|
16255
16308
|
/**
|