connected-spaces-platform.web 5.1.0 → 5.3.1
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/Debug/ConnectedSpacesPlatform_WASM.js +116 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +2 -23
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +313 -5
- package/connectedspacesplatform.js +578 -4
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1064 -2
- package/package.json +1 -1
|
@@ -510,6 +510,14 @@ function csp_multiplayer_ButtonPropertyKeysFactory(
|
|
|
510
510
|
ProxyClassFactories["csp_multiplayer_ButtonPropertyKeys"] =
|
|
511
511
|
csp_multiplayer_ButtonPropertyKeysFactory;
|
|
512
512
|
|
|
513
|
+
function csp_multiplayer_CinematicCameraPropertyKeysFactory(
|
|
514
|
+
nativePointer: NativePointer,
|
|
515
|
+
): Multiplayer.CinematicCameraPropertyKeys {
|
|
516
|
+
return nativePointer.pointer as Multiplayer.CinematicCameraPropertyKeys;
|
|
517
|
+
}
|
|
518
|
+
ProxyClassFactories["csp_multiplayer_CinematicCameraPropertyKeys"] =
|
|
519
|
+
csp_multiplayer_CinematicCameraPropertyKeysFactory;
|
|
520
|
+
|
|
513
521
|
function csp_multiplayer_CollisionPropertyKeysFactory(
|
|
514
522
|
nativePointer: NativePointer,
|
|
515
523
|
): Multiplayer.CollisionPropertyKeys {
|
|
@@ -969,6 +977,13 @@ function csp_common_VariantFactory(
|
|
|
969
977
|
}
|
|
970
978
|
ProxyClassFactories["csp_common_Variant"] = csp_common_VariantFactory;
|
|
971
979
|
|
|
980
|
+
function csp_common_Vector2Factory(
|
|
981
|
+
nativePointer: NativePointer,
|
|
982
|
+
): NativeClassWrapper {
|
|
983
|
+
return new Common.Vector2(nativePointer);
|
|
984
|
+
}
|
|
985
|
+
ProxyClassFactories["csp_common_Vector2"] = csp_common_Vector2Factory;
|
|
986
|
+
|
|
972
987
|
function csp_common_Vector3Factory(
|
|
973
988
|
nativePointer: NativePointer,
|
|
974
989
|
): NativeClassWrapper {
|
|
@@ -1031,6 +1046,14 @@ function csp_multiplayer_SequenceHierarchyChangedParamsFactory(
|
|
|
1031
1046
|
ProxyClassFactories["csp_multiplayer_SequenceHierarchyChangedParams"] =
|
|
1032
1047
|
csp_multiplayer_SequenceHierarchyChangedParamsFactory;
|
|
1033
1048
|
|
|
1049
|
+
function csp_multiplayer_SequenceHotspotChangedParamsFactory(
|
|
1050
|
+
nativePointer: NativePointer,
|
|
1051
|
+
): NativeClassWrapper {
|
|
1052
|
+
return new Multiplayer.SequenceHotspotChangedParams(nativePointer);
|
|
1053
|
+
}
|
|
1054
|
+
ProxyClassFactories["csp_multiplayer_SequenceHotspotChangedParams"] =
|
|
1055
|
+
csp_multiplayer_SequenceHotspotChangedParamsFactory;
|
|
1056
|
+
|
|
1034
1057
|
function csp_multiplayer_MultiplayerConnectionFactory(
|
|
1035
1058
|
nativePointer: NativePointer,
|
|
1036
1059
|
): NativeClassWrapper {
|
|
@@ -1581,6 +1604,14 @@ function csp_multiplayer_ButtonSpaceComponentFactory(
|
|
|
1581
1604
|
ProxyClassFactories["csp_multiplayer_ButtonSpaceComponent"] =
|
|
1582
1605
|
csp_multiplayer_ButtonSpaceComponentFactory;
|
|
1583
1606
|
|
|
1607
|
+
function csp_multiplayer_CinematicCameraSpaceComponentFactory(
|
|
1608
|
+
nativePointer: NativePointer,
|
|
1609
|
+
): NativeClassWrapper {
|
|
1610
|
+
return new Multiplayer.CinematicCameraSpaceComponent(nativePointer);
|
|
1611
|
+
}
|
|
1612
|
+
ProxyClassFactories["csp_multiplayer_CinematicCameraSpaceComponent"] =
|
|
1613
|
+
csp_multiplayer_CinematicCameraSpaceComponentFactory;
|
|
1614
|
+
|
|
1584
1615
|
function csp_multiplayer_CollisionSpaceComponentFactory(
|
|
1585
1616
|
nativePointer: NativePointer,
|
|
1586
1617
|
): NativeClassWrapper {
|
|
@@ -3035,6 +3066,7 @@ export namespace Multiplayer {
|
|
|
3035
3066
|
GaussianSplat,
|
|
3036
3067
|
Text,
|
|
3037
3068
|
Hotspot,
|
|
3069
|
+
CinematicCamera,
|
|
3038
3070
|
}
|
|
3039
3071
|
}
|
|
3040
3072
|
|
|
@@ -3070,6 +3102,7 @@ export namespace Multiplayer {
|
|
|
3070
3102
|
Update,
|
|
3071
3103
|
Rename,
|
|
3072
3104
|
Delete,
|
|
3105
|
+
Invalid,
|
|
3073
3106
|
}
|
|
3074
3107
|
}
|
|
3075
3108
|
|
|
@@ -3108,6 +3141,7 @@ export namespace Multiplayer {
|
|
|
3108
3141
|
Integer,
|
|
3109
3142
|
Float,
|
|
3110
3143
|
String,
|
|
3144
|
+
Vector2,
|
|
3111
3145
|
Vector3,
|
|
3112
3146
|
Vector4,
|
|
3113
3147
|
}
|
|
@@ -3330,6 +3364,28 @@ export namespace Multiplayer {
|
|
|
3330
3364
|
}
|
|
3331
3365
|
}
|
|
3332
3366
|
|
|
3367
|
+
export namespace Multiplayer {
|
|
3368
|
+
/**
|
|
3369
|
+
* @description Enumerates the list of properties that can be replicated for a CinematicCamera component.
|
|
3370
|
+
*/
|
|
3371
|
+
export enum CinematicCameraPropertyKeys {
|
|
3372
|
+
Position = 0,
|
|
3373
|
+
Rotation,
|
|
3374
|
+
IsEnabled,
|
|
3375
|
+
FocalLength,
|
|
3376
|
+
AspectRatio,
|
|
3377
|
+
SensorSize,
|
|
3378
|
+
NearClip,
|
|
3379
|
+
FarClip,
|
|
3380
|
+
Iso,
|
|
3381
|
+
ShutterSpeed,
|
|
3382
|
+
Aperture,
|
|
3383
|
+
IsViewerCamera,
|
|
3384
|
+
ThirdPartyComponentRef,
|
|
3385
|
+
Num,
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3333
3389
|
export namespace Multiplayer {
|
|
3334
3390
|
/**
|
|
3335
3391
|
* @description Enumerates the list of properties that can be replicated for a collision component.
|
|
@@ -4181,6 +4237,12 @@ export namespace Multiplayer {
|
|
|
4181
4237
|
*/
|
|
4182
4238
|
writeString: (value: string) => void;
|
|
4183
4239
|
|
|
4240
|
+
/**
|
|
4241
|
+
* @description Write a vector2 field of the entity.
|
|
4242
|
+
* @param value - The value to write.
|
|
4243
|
+
*/
|
|
4244
|
+
writeVector2: (value: Common.Vector2) => void;
|
|
4245
|
+
|
|
4184
4246
|
/**
|
|
4185
4247
|
* @description Write a vector3 field of the entity.
|
|
4186
4248
|
* @param value - The value to write.
|
|
@@ -4301,6 +4363,12 @@ export namespace Multiplayer {
|
|
|
4301
4363
|
*/
|
|
4302
4364
|
readString: () => string;
|
|
4303
4365
|
|
|
4366
|
+
/**
|
|
4367
|
+
* @description Reads a vector2 from the deserialiser.
|
|
4368
|
+
* @return The deserialised vector2.
|
|
4369
|
+
*/
|
|
4370
|
+
readVector2: () => Common.Vector2;
|
|
4371
|
+
|
|
4304
4372
|
/**
|
|
4305
4373
|
* @description Reads a vector3 from the deserialiser.
|
|
4306
4374
|
* @return The deserialised vector3.
|
|
@@ -20949,6 +21017,170 @@ export namespace Common {
|
|
|
20949
21017
|
}
|
|
20950
21018
|
}
|
|
20951
21019
|
|
|
21020
|
+
export namespace Common {
|
|
21021
|
+
/**
|
|
21022
|
+
* @description Represents a 2 dimensional vector.
|
|
21023
|
+
*/
|
|
21024
|
+
export class Vector2 extends NativeClassWrapper implements INativeResource {
|
|
21025
|
+
/** @internal */
|
|
21026
|
+
constructor(pointer: NativePointer) {
|
|
21027
|
+
super(pointer);
|
|
21028
|
+
}
|
|
21029
|
+
|
|
21030
|
+
/**
|
|
21031
|
+
* @description Returns a Vector2 with all fields set to 0.
|
|
21032
|
+
* @return Const vector2&
|
|
21033
|
+
*/
|
|
21034
|
+
|
|
21035
|
+
static zero(): Common.Vector2 {
|
|
21036
|
+
var _ret = Module._malloc(8);
|
|
21037
|
+
|
|
21038
|
+
Module.ccall(
|
|
21039
|
+
"csp_common_Vector2_Zero_Vector2RC",
|
|
21040
|
+
"void",
|
|
21041
|
+
["number"],
|
|
21042
|
+
[_ret],
|
|
21043
|
+
);
|
|
21044
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
21045
|
+
Module._free(_ret);
|
|
21046
|
+
|
|
21047
|
+
return _nPtr;
|
|
21048
|
+
}
|
|
21049
|
+
|
|
21050
|
+
/**
|
|
21051
|
+
* @description Returns a Vector2 with all fields set to 1.
|
|
21052
|
+
* @return Const vector2&
|
|
21053
|
+
*/
|
|
21054
|
+
|
|
21055
|
+
static one(): Common.Vector2 {
|
|
21056
|
+
var _ret = Module._malloc(8);
|
|
21057
|
+
|
|
21058
|
+
Module.ccall(
|
|
21059
|
+
"csp_common_Vector2_One_Vector2RC",
|
|
21060
|
+
"void",
|
|
21061
|
+
["number"],
|
|
21062
|
+
[_ret],
|
|
21063
|
+
);
|
|
21064
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
21065
|
+
Module._free(_ret);
|
|
21066
|
+
|
|
21067
|
+
return _nPtr;
|
|
21068
|
+
}
|
|
21069
|
+
|
|
21070
|
+
/**
|
|
21071
|
+
* @description Constructs a Vector2 with all fields set to 0.
|
|
21072
|
+
*/
|
|
21073
|
+
static create(): Vector2 {
|
|
21074
|
+
var _ptr = Module._malloc(8);
|
|
21075
|
+
Module.ccall("csp_common_Vector2_Ctor", "void", ["number"], [_ptr]);
|
|
21076
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21077
|
+
|
|
21078
|
+
return new Vector2(_nPtr);
|
|
21079
|
+
}
|
|
21080
|
+
|
|
21081
|
+
/**
|
|
21082
|
+
* @description Constructs a Vector2 with the given x, y values.
|
|
21083
|
+
* @param x - Float
|
|
21084
|
+
* @param y - Float
|
|
21085
|
+
*/
|
|
21086
|
+
static create_x_y(x: number, y: number): Vector2 {
|
|
21087
|
+
var _ptr = Module._malloc(8);
|
|
21088
|
+
Module.ccall(
|
|
21089
|
+
"csp_common_Vector2_Ctor_float_float",
|
|
21090
|
+
"void",
|
|
21091
|
+
["number", "number", "number"],
|
|
21092
|
+
[_ptr, x, y],
|
|
21093
|
+
);
|
|
21094
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21095
|
+
|
|
21096
|
+
return new Vector2(_nPtr);
|
|
21097
|
+
}
|
|
21098
|
+
|
|
21099
|
+
/**
|
|
21100
|
+
* @description Member by member addition with another Vector2
|
|
21101
|
+
* @param vector2 - Other
|
|
21102
|
+
*/
|
|
21103
|
+
// operator+
|
|
21104
|
+
|
|
21105
|
+
/**
|
|
21106
|
+
* @description Subtracts another Vector2 from this one
|
|
21107
|
+
* @param vector2 - Other
|
|
21108
|
+
*/
|
|
21109
|
+
// operator-
|
|
21110
|
+
|
|
21111
|
+
/**
|
|
21112
|
+
* @description Divides the Vector2 by divisor
|
|
21113
|
+
* @param float - Divisor
|
|
21114
|
+
*/
|
|
21115
|
+
// operator/
|
|
21116
|
+
|
|
21117
|
+
/**
|
|
21118
|
+
* @description Member by member multiplication with another Vector2
|
|
21119
|
+
* @param vector2 - Other
|
|
21120
|
+
*/
|
|
21121
|
+
// operator*
|
|
21122
|
+
|
|
21123
|
+
/**
|
|
21124
|
+
* @description Multiplies the Vector2 by a scalar
|
|
21125
|
+
* @param float - Scalar
|
|
21126
|
+
*/
|
|
21127
|
+
// operator*
|
|
21128
|
+
|
|
21129
|
+
delete(): void {
|
|
21130
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21131
|
+
Module.ccall(
|
|
21132
|
+
"csp_common_Vector2_Dtor",
|
|
21133
|
+
"void",
|
|
21134
|
+
["number"],
|
|
21135
|
+
[this.pointer],
|
|
21136
|
+
);
|
|
21137
|
+
|
|
21138
|
+
this.disposed = true;
|
|
21139
|
+
}
|
|
21140
|
+
}
|
|
21141
|
+
|
|
21142
|
+
get x(): number {
|
|
21143
|
+
let _result = Module.ccall(
|
|
21144
|
+
"csp_common_Vector2__Get_X",
|
|
21145
|
+
"number",
|
|
21146
|
+
["number"],
|
|
21147
|
+
[this.pointer],
|
|
21148
|
+
);
|
|
21149
|
+
|
|
21150
|
+
return _result;
|
|
21151
|
+
}
|
|
21152
|
+
|
|
21153
|
+
set x(value: number) {
|
|
21154
|
+
Module.ccall(
|
|
21155
|
+
"csp_common_Vector2__Set_X",
|
|
21156
|
+
"void",
|
|
21157
|
+
["number", "number"],
|
|
21158
|
+
[this.pointer, value],
|
|
21159
|
+
);
|
|
21160
|
+
}
|
|
21161
|
+
|
|
21162
|
+
get y(): number {
|
|
21163
|
+
let _result = Module.ccall(
|
|
21164
|
+
"csp_common_Vector2__Get_Y",
|
|
21165
|
+
"number",
|
|
21166
|
+
["number"],
|
|
21167
|
+
[this.pointer],
|
|
21168
|
+
);
|
|
21169
|
+
|
|
21170
|
+
return _result;
|
|
21171
|
+
}
|
|
21172
|
+
|
|
21173
|
+
set y(value: number) {
|
|
21174
|
+
Module.ccall(
|
|
21175
|
+
"csp_common_Vector2__Set_Y",
|
|
21176
|
+
"void",
|
|
21177
|
+
["number", "number"],
|
|
21178
|
+
[this.pointer, value],
|
|
21179
|
+
);
|
|
21180
|
+
}
|
|
21181
|
+
}
|
|
21182
|
+
}
|
|
21183
|
+
|
|
20952
21184
|
export namespace Common {
|
|
20953
21185
|
/**
|
|
20954
21186
|
* @description Represents a 3 dimensional vector.
|
|
@@ -22124,6 +22356,124 @@ export namespace Multiplayer {
|
|
|
22124
22356
|
}
|
|
22125
22357
|
}
|
|
22126
22358
|
|
|
22359
|
+
export namespace Multiplayer {
|
|
22360
|
+
export class SequenceHotspotChangedParams
|
|
22361
|
+
extends NativeClassWrapper
|
|
22362
|
+
implements INativeResource
|
|
22363
|
+
{
|
|
22364
|
+
/** @internal */
|
|
22365
|
+
constructor(pointer: NativePointer) {
|
|
22366
|
+
super(pointer);
|
|
22367
|
+
}
|
|
22368
|
+
|
|
22369
|
+
static create(): SequenceHotspotChangedParams {
|
|
22370
|
+
var _ptr = Module._malloc(8);
|
|
22371
|
+
Module.ccall(
|
|
22372
|
+
"csp_multiplayer_SequenceHotspotChangedParams_Ctor",
|
|
22373
|
+
"void",
|
|
22374
|
+
["number"],
|
|
22375
|
+
[_ptr],
|
|
22376
|
+
);
|
|
22377
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22378
|
+
|
|
22379
|
+
return new SequenceHotspotChangedParams(_nPtr);
|
|
22380
|
+
}
|
|
22381
|
+
|
|
22382
|
+
delete(): void {
|
|
22383
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22384
|
+
Module.ccall(
|
|
22385
|
+
"csp_multiplayer_SequenceHotspotChangedParams_Dtor",
|
|
22386
|
+
"void",
|
|
22387
|
+
["number"],
|
|
22388
|
+
[this.pointer],
|
|
22389
|
+
);
|
|
22390
|
+
|
|
22391
|
+
this.disposed = true;
|
|
22392
|
+
}
|
|
22393
|
+
}
|
|
22394
|
+
|
|
22395
|
+
get updateType(): Multiplayer.ESequenceUpdateType {
|
|
22396
|
+
let _result = Module.ccall(
|
|
22397
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Get_UpdateType",
|
|
22398
|
+
"number",
|
|
22399
|
+
["number"],
|
|
22400
|
+
[this.pointer],
|
|
22401
|
+
);
|
|
22402
|
+
|
|
22403
|
+
return _result;
|
|
22404
|
+
}
|
|
22405
|
+
|
|
22406
|
+
set updateType(value: Multiplayer.ESequenceUpdateType) {
|
|
22407
|
+
Module.ccall(
|
|
22408
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Set_UpdateType",
|
|
22409
|
+
"void",
|
|
22410
|
+
["number", "number"],
|
|
22411
|
+
[this.pointer, value],
|
|
22412
|
+
);
|
|
22413
|
+
}
|
|
22414
|
+
|
|
22415
|
+
get spaceId(): string {
|
|
22416
|
+
let _result = Module.ccall(
|
|
22417
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Get_SpaceId",
|
|
22418
|
+
"string",
|
|
22419
|
+
["number"],
|
|
22420
|
+
[this.pointer],
|
|
22421
|
+
);
|
|
22422
|
+
|
|
22423
|
+
return _result;
|
|
22424
|
+
}
|
|
22425
|
+
|
|
22426
|
+
set spaceId(value: string) {
|
|
22427
|
+
Module.ccall(
|
|
22428
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Set_SpaceId",
|
|
22429
|
+
"void",
|
|
22430
|
+
["number", "string"],
|
|
22431
|
+
[this.pointer, value],
|
|
22432
|
+
);
|
|
22433
|
+
}
|
|
22434
|
+
|
|
22435
|
+
get name(): string {
|
|
22436
|
+
let _result = Module.ccall(
|
|
22437
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Get_Name",
|
|
22438
|
+
"string",
|
|
22439
|
+
["number"],
|
|
22440
|
+
[this.pointer],
|
|
22441
|
+
);
|
|
22442
|
+
|
|
22443
|
+
return _result;
|
|
22444
|
+
}
|
|
22445
|
+
|
|
22446
|
+
set name(value: string) {
|
|
22447
|
+
Module.ccall(
|
|
22448
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Set_Name",
|
|
22449
|
+
"void",
|
|
22450
|
+
["number", "string"],
|
|
22451
|
+
[this.pointer, value],
|
|
22452
|
+
);
|
|
22453
|
+
}
|
|
22454
|
+
|
|
22455
|
+
get newName(): string {
|
|
22456
|
+
let _result = Module.ccall(
|
|
22457
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Get_NewName",
|
|
22458
|
+
"string",
|
|
22459
|
+
["number"],
|
|
22460
|
+
[this.pointer],
|
|
22461
|
+
);
|
|
22462
|
+
|
|
22463
|
+
return _result;
|
|
22464
|
+
}
|
|
22465
|
+
|
|
22466
|
+
set newName(value: string) {
|
|
22467
|
+
Module.ccall(
|
|
22468
|
+
"csp_multiplayer_SequenceHotspotChangedParams__Set_NewName",
|
|
22469
|
+
"void",
|
|
22470
|
+
["number", "string"],
|
|
22471
|
+
[this.pointer, value],
|
|
22472
|
+
);
|
|
22473
|
+
}
|
|
22474
|
+
}
|
|
22475
|
+
}
|
|
22476
|
+
|
|
22127
22477
|
export namespace Multiplayer {
|
|
22128
22478
|
/**
|
|
22129
22479
|
@ingroup Multiplayer
|
|
@@ -22396,6 +22746,31 @@ export namespace Multiplayer {
|
|
|
22396
22746
|
);
|
|
22397
22747
|
}
|
|
22398
22748
|
|
|
22749
|
+
/**
|
|
22750
|
+
* @description Sets a callback to be fired when a hotspot sequence is changed.
|
|
22751
|
+
* @param callback - Callback to receive data for the hotspot sequence that has been changed.
|
|
22752
|
+
*/
|
|
22753
|
+
setHotspotSequenceChangedCallback(
|
|
22754
|
+
callback: (arg1: Multiplayer.SequenceHotspotChangedParams) => void,
|
|
22755
|
+
) {
|
|
22756
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
22757
|
+
var _arg1 = new Multiplayer.SequenceHotspotChangedParams(
|
|
22758
|
+
getNativePointer(arg1),
|
|
22759
|
+
);
|
|
22760
|
+
|
|
22761
|
+
callback(_arg1);
|
|
22762
|
+
};
|
|
22763
|
+
|
|
22764
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
22765
|
+
|
|
22766
|
+
Module.ccall(
|
|
22767
|
+
"csp_multiplayer_MultiplayerConnection_SetHotspotSequenceChangedCallback_void_HotspotSequenceChangedCallbackHandler",
|
|
22768
|
+
"void",
|
|
22769
|
+
["number", "number", "number"],
|
|
22770
|
+
[this.pointer, _callbackPtr, 0],
|
|
22771
|
+
);
|
|
22772
|
+
}
|
|
22773
|
+
|
|
22399
22774
|
/**
|
|
22400
22775
|
* @description Registers a callback to listen for the named event.
|
|
22401
22776
|
* @param eventName - The identifying name for the event to listen for.
|
|
@@ -22652,6 +23027,23 @@ export namespace Multiplayer {
|
|
|
22652
23027
|
return new ReplicatedValue(_nPtr);
|
|
22653
23028
|
}
|
|
22654
23029
|
|
|
23030
|
+
/**
|
|
23031
|
+
* @description Construct a ReplicatedValue based on a csp::common::Vector2 type.
|
|
23032
|
+
* @param inVector2Value - Initial value.
|
|
23033
|
+
*/
|
|
23034
|
+
static create_vector2Value(vector2Value: Common.Vector2): ReplicatedValue {
|
|
23035
|
+
var _ptr = Module._malloc(8);
|
|
23036
|
+
Module.ccall(
|
|
23037
|
+
"csp_multiplayer_ReplicatedValue_Ctor_Vector2RC",
|
|
23038
|
+
"void",
|
|
23039
|
+
["number", "number"],
|
|
23040
|
+
[_ptr, vector2Value.pointer],
|
|
23041
|
+
);
|
|
23042
|
+
var _nPtr = getNativePointer(_ptr);
|
|
23043
|
+
|
|
23044
|
+
return new ReplicatedValue(_nPtr);
|
|
23045
|
+
}
|
|
23046
|
+
|
|
22655
23047
|
/**
|
|
22656
23048
|
* @description Construct a ReplicatedValue based on a csp::common::Vector3 type.
|
|
22657
23049
|
* @param inVector3Value - Initial value.
|
|
@@ -22883,6 +23275,40 @@ export namespace Multiplayer {
|
|
|
22883
23275
|
return _result;
|
|
22884
23276
|
}
|
|
22885
23277
|
|
|
23278
|
+
/**
|
|
23279
|
+
* @description Set a Vector2 value for this replicated value from a csp::common::Vector2, will overwrite and previous value.
|
|
23280
|
+
*/
|
|
23281
|
+
|
|
23282
|
+
setVector2(value: Common.Vector2): void {
|
|
23283
|
+
Module.ccall(
|
|
23284
|
+
"csp_multiplayer_ReplicatedValue_SetVector2_void_Vector2RC",
|
|
23285
|
+
"void",
|
|
23286
|
+
["number", "number"],
|
|
23287
|
+
[this.pointer, value.pointer],
|
|
23288
|
+
);
|
|
23289
|
+
}
|
|
23290
|
+
|
|
23291
|
+
/**
|
|
23292
|
+
* @description Get a csp::common::Vector2 value from this replicated value, will assert if not a csp::common::Vector2 type.
|
|
23293
|
+
* /// Use ReplicatedValue::GetReplicatedValueType to ensure type before accessing.
|
|
23294
|
+
* /// @return csp::common::Vector2
|
|
23295
|
+
*/
|
|
23296
|
+
|
|
23297
|
+
getVector2(): Common.Vector2 {
|
|
23298
|
+
var _ret = Module._malloc(8);
|
|
23299
|
+
|
|
23300
|
+
Module.ccall(
|
|
23301
|
+
"csp_multiplayer_ReplicatedValue_GetVector2C_Vector2RC",
|
|
23302
|
+
"void",
|
|
23303
|
+
["number", "number"],
|
|
23304
|
+
[_ret, this.pointer],
|
|
23305
|
+
);
|
|
23306
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
23307
|
+
Module._free(_ret);
|
|
23308
|
+
|
|
23309
|
+
return _nPtr;
|
|
23310
|
+
}
|
|
23311
|
+
|
|
22886
23312
|
/**
|
|
22887
23313
|
* @description Set a Vector3 value for this replicated value from a csp::common::Vector3, will overwrite and previous value.
|
|
22888
23314
|
*/
|
|
@@ -33568,7 +33994,7 @@ export namespace Systems {
|
|
|
33568
33994
|
|
|
33569
33995
|
export namespace Systems {
|
|
33570
33996
|
/**
|
|
33571
|
-
* @description Data structure for an Agora user token, giving userID, channel name and settings regarding sharing of audio/video/screenshare.
|
|
33997
|
+
* @description Data structure for an Agora user token, giving userID, referenceID, channel name and settings regarding sharing of audio/video/screenshare.
|
|
33572
33998
|
*/
|
|
33573
33999
|
export class AgoraUserTokenParams
|
|
33574
34000
|
extends NativeClassWrapper
|
|
@@ -33645,6 +34071,26 @@ export namespace Systems {
|
|
|
33645
34071
|
);
|
|
33646
34072
|
}
|
|
33647
34073
|
|
|
34074
|
+
get referenceId(): string {
|
|
34075
|
+
let _result = Module.ccall(
|
|
34076
|
+
"csp_systems_AgoraUserTokenParams__Get_ReferenceId",
|
|
34077
|
+
"string",
|
|
34078
|
+
["number"],
|
|
34079
|
+
[this.pointer],
|
|
34080
|
+
);
|
|
34081
|
+
|
|
34082
|
+
return _result;
|
|
34083
|
+
}
|
|
34084
|
+
|
|
34085
|
+
set referenceId(value: string) {
|
|
34086
|
+
Module.ccall(
|
|
34087
|
+
"csp_systems_AgoraUserTokenParams__Set_ReferenceId",
|
|
34088
|
+
"void",
|
|
34089
|
+
["number", "string"],
|
|
34090
|
+
[this.pointer, value],
|
|
34091
|
+
);
|
|
34092
|
+
}
|
|
34093
|
+
|
|
33648
34094
|
get lifespan(): number {
|
|
33649
34095
|
let _result = Module.ccall(
|
|
33650
34096
|
"csp_systems_AgoraUserTokenParams__Get_Lifespan",
|
|
@@ -36095,6 +36541,530 @@ export namespace Multiplayer {
|
|
|
36095
36541
|
}
|
|
36096
36542
|
}
|
|
36097
36543
|
|
|
36544
|
+
export namespace Multiplayer {
|
|
36545
|
+
/**
|
|
36546
|
+
@ingroup CinematicCameraSpaceComponent
|
|
36547
|
+
* @description Data representation of an CinematicCameraSpaceComponent.
|
|
36548
|
+
*/
|
|
36549
|
+
export class CinematicCameraSpaceComponent
|
|
36550
|
+
extends Multiplayer.ComponentBase
|
|
36551
|
+
implements
|
|
36552
|
+
Multiplayer.IThirdPartyComponentRef,
|
|
36553
|
+
Multiplayer.IPositionComponent,
|
|
36554
|
+
Multiplayer.IRotationComponent,
|
|
36555
|
+
Multiplayer.IEnableableComponent,
|
|
36556
|
+
INativeResource
|
|
36557
|
+
{
|
|
36558
|
+
/** @internal */
|
|
36559
|
+
constructor(pointer: NativePointer) {
|
|
36560
|
+
super(pointer);
|
|
36561
|
+
}
|
|
36562
|
+
|
|
36563
|
+
static fromComponentBase(
|
|
36564
|
+
baseInstance: Multiplayer.ComponentBase,
|
|
36565
|
+
): Multiplayer.CinematicCameraSpaceComponent {
|
|
36566
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
36567
|
+
return new Multiplayer.CinematicCameraSpaceComponent(
|
|
36568
|
+
new NativePointer(
|
|
36569
|
+
nativeClassWrapper.pointer,
|
|
36570
|
+
nativeClassWrapper.ownsPointer,
|
|
36571
|
+
),
|
|
36572
|
+
);
|
|
36573
|
+
}
|
|
36574
|
+
|
|
36575
|
+
/**
|
|
36576
|
+
* @description Constructs the CinematicCamera space component, and associates it with the specified Parent space entity.
|
|
36577
|
+
* @param parent - The Space entity that owns this component.
|
|
36578
|
+
*/
|
|
36579
|
+
static create_parent(
|
|
36580
|
+
parent: Multiplayer.SpaceEntity,
|
|
36581
|
+
): CinematicCameraSpaceComponent {
|
|
36582
|
+
var _ptr = Module._malloc(8);
|
|
36583
|
+
Module.ccall(
|
|
36584
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_Ctor_SpaceEntityP",
|
|
36585
|
+
"void",
|
|
36586
|
+
["number", "number"],
|
|
36587
|
+
[_ptr, parent.pointer],
|
|
36588
|
+
);
|
|
36589
|
+
var _nPtr = getNativePointer(_ptr);
|
|
36590
|
+
|
|
36591
|
+
return new CinematicCameraSpaceComponent(_nPtr);
|
|
36592
|
+
}
|
|
36593
|
+
|
|
36594
|
+
/**
|
|
36595
|
+
* @description Gived the sensor size and focal length, return the horizonal fov
|
|
36596
|
+
* @return FOV in degrees
|
|
36597
|
+
*/
|
|
36598
|
+
|
|
36599
|
+
getFov(): number {
|
|
36600
|
+
let _result = Module.ccall(
|
|
36601
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetFovC_float",
|
|
36602
|
+
"number",
|
|
36603
|
+
["number"],
|
|
36604
|
+
[this.pointer],
|
|
36605
|
+
);
|
|
36606
|
+
|
|
36607
|
+
return _result;
|
|
36608
|
+
}
|
|
36609
|
+
|
|
36610
|
+
/**
|
|
36611
|
+
* \addtogroup IPositionComponent
|
|
36612
|
+
@{
|
|
36613
|
+
@copydoc IPositionComponent::GetPosition()
|
|
36614
|
+
*/
|
|
36615
|
+
|
|
36616
|
+
getPosition(): Common.Vector3 {
|
|
36617
|
+
var _ret = Module._malloc(8);
|
|
36618
|
+
|
|
36619
|
+
Module.ccall(
|
|
36620
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetPositionC_Vector3RC",
|
|
36621
|
+
"void",
|
|
36622
|
+
["number", "number"],
|
|
36623
|
+
[_ret, this.pointer],
|
|
36624
|
+
);
|
|
36625
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36626
|
+
Module._free(_ret);
|
|
36627
|
+
|
|
36628
|
+
return _nPtr;
|
|
36629
|
+
}
|
|
36630
|
+
|
|
36631
|
+
/**
|
|
36632
|
+
@copydoc IPositionComponent::SetPosition()
|
|
36633
|
+
*/
|
|
36634
|
+
|
|
36635
|
+
setPosition(value: Common.Vector3): void {
|
|
36636
|
+
Module.ccall(
|
|
36637
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetPosition_void_Vector3RC",
|
|
36638
|
+
"void",
|
|
36639
|
+
["number", "number"],
|
|
36640
|
+
[this.pointer, value.pointer],
|
|
36641
|
+
);
|
|
36642
|
+
}
|
|
36643
|
+
|
|
36644
|
+
/**
|
|
36645
|
+
@}
|
|
36646
|
+
* \addtogroup IRotationComponent
|
|
36647
|
+
@{
|
|
36648
|
+
@copydoc IRotationComponent::GetRotation()
|
|
36649
|
+
*/
|
|
36650
|
+
|
|
36651
|
+
getRotation(): Common.Vector4 {
|
|
36652
|
+
var _ret = Module._malloc(8);
|
|
36653
|
+
|
|
36654
|
+
Module.ccall(
|
|
36655
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetRotationC_Vector4RC",
|
|
36656
|
+
"void",
|
|
36657
|
+
["number", "number"],
|
|
36658
|
+
[_ret, this.pointer],
|
|
36659
|
+
);
|
|
36660
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
36661
|
+
Module._free(_ret);
|
|
36662
|
+
|
|
36663
|
+
return _nPtr;
|
|
36664
|
+
}
|
|
36665
|
+
|
|
36666
|
+
/**
|
|
36667
|
+
@copydoc IRotationComponent::SetRotation()
|
|
36668
|
+
*/
|
|
36669
|
+
|
|
36670
|
+
setRotation(value: Common.Vector4): void {
|
|
36671
|
+
Module.ccall(
|
|
36672
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetRotation_void_Vector4RC",
|
|
36673
|
+
"void",
|
|
36674
|
+
["number", "number"],
|
|
36675
|
+
[this.pointer, value.pointer],
|
|
36676
|
+
);
|
|
36677
|
+
}
|
|
36678
|
+
|
|
36679
|
+
/**
|
|
36680
|
+
@}
|
|
36681
|
+
* @description Get focal length
|
|
36682
|
+
* @return Current focal length
|
|
36683
|
+
*/
|
|
36684
|
+
|
|
36685
|
+
getFocalLength(): number {
|
|
36686
|
+
let _result = Module.ccall(
|
|
36687
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetFocalLengthC_float",
|
|
36688
|
+
"number",
|
|
36689
|
+
["number"],
|
|
36690
|
+
[this.pointer],
|
|
36691
|
+
);
|
|
36692
|
+
|
|
36693
|
+
return _result;
|
|
36694
|
+
}
|
|
36695
|
+
|
|
36696
|
+
/**
|
|
36697
|
+
* @description Set focalLength
|
|
36698
|
+
* Note: Effects the result of GetFov()
|
|
36699
|
+
* @param value - Focallength
|
|
36700
|
+
*/
|
|
36701
|
+
|
|
36702
|
+
setFocalLength(value: number): void {
|
|
36703
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36704
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36705
|
+
|
|
36706
|
+
Module.ccall(
|
|
36707
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetFocalLength_void_float",
|
|
36708
|
+
"void",
|
|
36709
|
+
["number", "number"],
|
|
36710
|
+
[this.pointer, value],
|
|
36711
|
+
);
|
|
36712
|
+
}
|
|
36713
|
+
|
|
36714
|
+
/**
|
|
36715
|
+
* @description Get Current aspect ratio
|
|
36716
|
+
* @return Current aspect ratio
|
|
36717
|
+
*/
|
|
36718
|
+
|
|
36719
|
+
getAspectRatio(): number {
|
|
36720
|
+
let _result = Module.ccall(
|
|
36721
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetAspectRatioC_float",
|
|
36722
|
+
"number",
|
|
36723
|
+
["number"],
|
|
36724
|
+
[this.pointer],
|
|
36725
|
+
);
|
|
36726
|
+
|
|
36727
|
+
return _result;
|
|
36728
|
+
}
|
|
36729
|
+
|
|
36730
|
+
/**
|
|
36731
|
+
* @description Set Current aspect ratio
|
|
36732
|
+
* @param value - Current aspect ratio
|
|
36733
|
+
*/
|
|
36734
|
+
|
|
36735
|
+
setAspectRatio(value: number): void {
|
|
36736
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36737
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36738
|
+
|
|
36739
|
+
Module.ccall(
|
|
36740
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetAspectRatio_void_float",
|
|
36741
|
+
"void",
|
|
36742
|
+
["number", "number"],
|
|
36743
|
+
[this.pointer, value],
|
|
36744
|
+
);
|
|
36745
|
+
}
|
|
36746
|
+
|
|
36747
|
+
/**
|
|
36748
|
+
* @description Get sensor size
|
|
36749
|
+
* @return Current sensor size
|
|
36750
|
+
*/
|
|
36751
|
+
|
|
36752
|
+
getSensorSize(): Common.Vector2 {
|
|
36753
|
+
var _ret = Module._malloc(8);
|
|
36754
|
+
|
|
36755
|
+
Module.ccall(
|
|
36756
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetSensorSizeC_Vector2RC",
|
|
36757
|
+
"void",
|
|
36758
|
+
["number", "number"],
|
|
36759
|
+
[_ret, this.pointer],
|
|
36760
|
+
);
|
|
36761
|
+
var _nPtr = new Common.Vector2(getNativePointer(_ret));
|
|
36762
|
+
Module._free(_ret);
|
|
36763
|
+
|
|
36764
|
+
return _nPtr;
|
|
36765
|
+
}
|
|
36766
|
+
|
|
36767
|
+
/**
|
|
36768
|
+
* @description Set Current SensorSize
|
|
36769
|
+
* @param value - Current SensorSize
|
|
36770
|
+
*/
|
|
36771
|
+
|
|
36772
|
+
setSensorSize(value: Common.Vector2): void {
|
|
36773
|
+
Module.ccall(
|
|
36774
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetSensorSize_void_Vector2RC",
|
|
36775
|
+
"void",
|
|
36776
|
+
["number", "number"],
|
|
36777
|
+
[this.pointer, value.pointer],
|
|
36778
|
+
);
|
|
36779
|
+
}
|
|
36780
|
+
|
|
36781
|
+
/**
|
|
36782
|
+
* @description Get near clip
|
|
36783
|
+
* Note: On platforms that don't support reversedZ, near clip should be used to control the clipping distance
|
|
36784
|
+
* @return Current near clip
|
|
36785
|
+
*/
|
|
36786
|
+
|
|
36787
|
+
getNearClip(): number {
|
|
36788
|
+
let _result = Module.ccall(
|
|
36789
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetNearClipC_float",
|
|
36790
|
+
"number",
|
|
36791
|
+
["number"],
|
|
36792
|
+
[this.pointer],
|
|
36793
|
+
);
|
|
36794
|
+
|
|
36795
|
+
return _result;
|
|
36796
|
+
}
|
|
36797
|
+
|
|
36798
|
+
/**
|
|
36799
|
+
* @description Set near clip
|
|
36800
|
+
* @param value - Near clip
|
|
36801
|
+
*/
|
|
36802
|
+
|
|
36803
|
+
setNearClip(value: number): void {
|
|
36804
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36805
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36806
|
+
|
|
36807
|
+
Module.ccall(
|
|
36808
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetNearClip_void_float",
|
|
36809
|
+
"void",
|
|
36810
|
+
["number", "number"],
|
|
36811
|
+
[this.pointer, value],
|
|
36812
|
+
);
|
|
36813
|
+
}
|
|
36814
|
+
|
|
36815
|
+
/**
|
|
36816
|
+
* @description Get far clip
|
|
36817
|
+
* Note: On platforms that don't support reversedZ, far clip should be used to control the clipping distance
|
|
36818
|
+
* @return Current far clip
|
|
36819
|
+
*/
|
|
36820
|
+
|
|
36821
|
+
getFarClip(): number {
|
|
36822
|
+
let _result = Module.ccall(
|
|
36823
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetFarClipC_float",
|
|
36824
|
+
"number",
|
|
36825
|
+
["number"],
|
|
36826
|
+
[this.pointer],
|
|
36827
|
+
);
|
|
36828
|
+
|
|
36829
|
+
return _result;
|
|
36830
|
+
}
|
|
36831
|
+
|
|
36832
|
+
/**
|
|
36833
|
+
* @description Set far clip
|
|
36834
|
+
* Note: far clip, controls how the density increases and height decreases. Smaller values make the visible transition larger.
|
|
36835
|
+
* @param value - Far clip
|
|
36836
|
+
*/
|
|
36837
|
+
|
|
36838
|
+
setFarClip(value: number): void {
|
|
36839
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36840
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36841
|
+
|
|
36842
|
+
Module.ccall(
|
|
36843
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetFarClip_void_float",
|
|
36844
|
+
"void",
|
|
36845
|
+
["number", "number"],
|
|
36846
|
+
[this.pointer, value],
|
|
36847
|
+
);
|
|
36848
|
+
}
|
|
36849
|
+
|
|
36850
|
+
/**
|
|
36851
|
+
* @description Get ISO sensitivity for controlling exposure.
|
|
36852
|
+
* Note: reserved for future use, do not implement on clients
|
|
36853
|
+
* @return Current iso
|
|
36854
|
+
*/
|
|
36855
|
+
|
|
36856
|
+
getIso(): number {
|
|
36857
|
+
let _result = Module.ccall(
|
|
36858
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetIsoC_float",
|
|
36859
|
+
"number",
|
|
36860
|
+
["number"],
|
|
36861
|
+
[this.pointer],
|
|
36862
|
+
);
|
|
36863
|
+
|
|
36864
|
+
return _result;
|
|
36865
|
+
}
|
|
36866
|
+
|
|
36867
|
+
/**
|
|
36868
|
+
* @description Set ISO sensitivity for controlling exposure.
|
|
36869
|
+
* Note: reserved for future use, do not implement on clients
|
|
36870
|
+
* @param value - ISO sensitivity for controlling exposure.
|
|
36871
|
+
*/
|
|
36872
|
+
|
|
36873
|
+
setIso(value: number): void {
|
|
36874
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36875
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36876
|
+
|
|
36877
|
+
Module.ccall(
|
|
36878
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetIso_void_float",
|
|
36879
|
+
"void",
|
|
36880
|
+
["number", "number"],
|
|
36881
|
+
[this.pointer, value],
|
|
36882
|
+
);
|
|
36883
|
+
}
|
|
36884
|
+
|
|
36885
|
+
/**
|
|
36886
|
+
* @description Get shutter speed.
|
|
36887
|
+
* Note: reserved for future use, do not implement on clients
|
|
36888
|
+
* @param value - Shutter speed
|
|
36889
|
+
*/
|
|
36890
|
+
|
|
36891
|
+
getShutterSpeed(): number {
|
|
36892
|
+
let _result = Module.ccall(
|
|
36893
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetShutterSpeedC_float",
|
|
36894
|
+
"number",
|
|
36895
|
+
["number"],
|
|
36896
|
+
[this.pointer],
|
|
36897
|
+
);
|
|
36898
|
+
|
|
36899
|
+
return _result;
|
|
36900
|
+
}
|
|
36901
|
+
|
|
36902
|
+
/**
|
|
36903
|
+
* @description Set shutter speed
|
|
36904
|
+
* Note: reserved for future use, do not implement on clients
|
|
36905
|
+
* @param value - Shutter speed
|
|
36906
|
+
*/
|
|
36907
|
+
|
|
36908
|
+
setShutterSpeed(value: number): void {
|
|
36909
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36910
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36911
|
+
|
|
36912
|
+
Module.ccall(
|
|
36913
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetShutterSpeed_void_float",
|
|
36914
|
+
"void",
|
|
36915
|
+
["number", "number"],
|
|
36916
|
+
[this.pointer, value],
|
|
36917
|
+
);
|
|
36918
|
+
}
|
|
36919
|
+
|
|
36920
|
+
/**
|
|
36921
|
+
* @description Get aperture.
|
|
36922
|
+
* Note: reserved for future use, do not implement on clients
|
|
36923
|
+
* @param value - Aperture
|
|
36924
|
+
*/
|
|
36925
|
+
|
|
36926
|
+
getAperture(): number {
|
|
36927
|
+
let _result = Module.ccall(
|
|
36928
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetApertureC_float",
|
|
36929
|
+
"number",
|
|
36930
|
+
["number"],
|
|
36931
|
+
[this.pointer],
|
|
36932
|
+
);
|
|
36933
|
+
|
|
36934
|
+
return _result;
|
|
36935
|
+
}
|
|
36936
|
+
|
|
36937
|
+
/**
|
|
36938
|
+
* @description Set aperture
|
|
36939
|
+
* Note: reserved for future use, do not implement on clients
|
|
36940
|
+
* @param value - Aperture flag
|
|
36941
|
+
*/
|
|
36942
|
+
|
|
36943
|
+
setAperture(value: number): void {
|
|
36944
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
36945
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
36946
|
+
|
|
36947
|
+
Module.ccall(
|
|
36948
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetAperture_void_float",
|
|
36949
|
+
"void",
|
|
36950
|
+
["number", "number"],
|
|
36951
|
+
[this.pointer, value],
|
|
36952
|
+
);
|
|
36953
|
+
}
|
|
36954
|
+
|
|
36955
|
+
/**
|
|
36956
|
+
* @description Get IsViewerCamera.
|
|
36957
|
+
* Note: reserved for future use, do not implement on clients
|
|
36958
|
+
* @param value - IsViewerCamera
|
|
36959
|
+
*/
|
|
36960
|
+
|
|
36961
|
+
getIsViewerCamera(): boolean {
|
|
36962
|
+
let _result = Module.ccall(
|
|
36963
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetIsViewerCameraC_bool",
|
|
36964
|
+
"boolean",
|
|
36965
|
+
["number"],
|
|
36966
|
+
[this.pointer],
|
|
36967
|
+
);
|
|
36968
|
+
|
|
36969
|
+
return _result;
|
|
36970
|
+
}
|
|
36971
|
+
|
|
36972
|
+
/**
|
|
36973
|
+
* @description Set IsViewerCamera
|
|
36974
|
+
* Note: reserved for future use, do not implement on clients
|
|
36975
|
+
* @param value - IsViewerCamera Flag
|
|
36976
|
+
*/
|
|
36977
|
+
|
|
36978
|
+
setIsViewerCamera(value: boolean): void {
|
|
36979
|
+
Module.ccall(
|
|
36980
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetIsViewerCamera_void_bool",
|
|
36981
|
+
"void",
|
|
36982
|
+
["number", "boolean"],
|
|
36983
|
+
[this.pointer, value],
|
|
36984
|
+
);
|
|
36985
|
+
}
|
|
36986
|
+
|
|
36987
|
+
/**
|
|
36988
|
+
* \addtogroup IEnableableComponent
|
|
36989
|
+
@{
|
|
36990
|
+
@copydoc IEnableableComponent::GetIsEnabled()
|
|
36991
|
+
*/
|
|
36992
|
+
|
|
36993
|
+
getIsEnabled(): boolean {
|
|
36994
|
+
let _result = Module.ccall(
|
|
36995
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetIsEnabledC_bool",
|
|
36996
|
+
"boolean",
|
|
36997
|
+
["number"],
|
|
36998
|
+
[this.pointer],
|
|
36999
|
+
);
|
|
37000
|
+
|
|
37001
|
+
return _result;
|
|
37002
|
+
}
|
|
37003
|
+
|
|
37004
|
+
/**
|
|
37005
|
+
@copydoc IEnableableComponent::SetIsEnabled()
|
|
37006
|
+
*/
|
|
37007
|
+
|
|
37008
|
+
setIsEnabled(value: boolean): void {
|
|
37009
|
+
Module.ccall(
|
|
37010
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetIsEnabled_void_bool",
|
|
37011
|
+
"void",
|
|
37012
|
+
["number", "boolean"],
|
|
37013
|
+
[this.pointer, value],
|
|
37014
|
+
);
|
|
37015
|
+
}
|
|
37016
|
+
|
|
37017
|
+
/**
|
|
37018
|
+
@}
|
|
37019
|
+
* \addtogroup IThirdPartyComponentRef
|
|
37020
|
+
@{
|
|
37021
|
+
@copydoc IThirdPartyComponentRef::GetThirdPartyComponentRef()
|
|
37022
|
+
*/
|
|
37023
|
+
|
|
37024
|
+
getThirdPartyComponentRef(): string {
|
|
37025
|
+
let _result = Module.ccall(
|
|
37026
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_GetThirdPartyComponentRefC_StringRC",
|
|
37027
|
+
"number",
|
|
37028
|
+
["number"],
|
|
37029
|
+
[this.pointer],
|
|
37030
|
+
);
|
|
37031
|
+
|
|
37032
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
37033
|
+
free(_result);
|
|
37034
|
+
|
|
37035
|
+
_result = _resultString;
|
|
37036
|
+
|
|
37037
|
+
return _result;
|
|
37038
|
+
}
|
|
37039
|
+
|
|
37040
|
+
/**
|
|
37041
|
+
@copydoc IThirdPartyComponentRef::SetThirdPartyComponentRef()
|
|
37042
|
+
*/
|
|
37043
|
+
|
|
37044
|
+
setThirdPartyComponentRef(value: string): void {
|
|
37045
|
+
Module.ccall(
|
|
37046
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_SetThirdPartyComponentRef_void_StringRC",
|
|
37047
|
+
"void",
|
|
37048
|
+
["number", "string"],
|
|
37049
|
+
[this.pointer, value],
|
|
37050
|
+
);
|
|
37051
|
+
}
|
|
37052
|
+
|
|
37053
|
+
delete(): void {
|
|
37054
|
+
if (this.ownsPointer && !this.disposed) {
|
|
37055
|
+
Module.ccall(
|
|
37056
|
+
"csp_multiplayer_CinematicCameraSpaceComponent_Dtor",
|
|
37057
|
+
"void",
|
|
37058
|
+
["number"],
|
|
37059
|
+
[this.pointer],
|
|
37060
|
+
);
|
|
37061
|
+
|
|
37062
|
+
this.disposed = true;
|
|
37063
|
+
}
|
|
37064
|
+
}
|
|
37065
|
+
}
|
|
37066
|
+
}
|
|
37067
|
+
|
|
36098
37068
|
export namespace Multiplayer {
|
|
36099
37069
|
/**
|
|
36100
37070
|
@ingroup CollisionSpaceComponent
|
|
@@ -39500,7 +40470,7 @@ export namespace Multiplayer {
|
|
|
39500
40470
|
|
|
39501
40471
|
getUniqueComponentId(): string {
|
|
39502
40472
|
let _result = Module.ccall(
|
|
39503
|
-
"
|
|
40473
|
+
"csp_multiplayer_HotspotSpaceComponent_GetUniqueComponentIdC_String",
|
|
39504
40474
|
"number",
|
|
39505
40475
|
["number"],
|
|
39506
40476
|
[this.pointer],
|
|
@@ -47737,6 +48707,46 @@ export namespace Systems {
|
|
|
47737
48707
|
this.disposed = true;
|
|
47738
48708
|
}
|
|
47739
48709
|
}
|
|
48710
|
+
|
|
48711
|
+
/**
|
|
48712
|
+
* @description This will delete any groups which only contain this item
|
|
48713
|
+
* For any groups which contanin the given item and additional items, it will just update the group by removing the given item.
|
|
48714
|
+
* @param itemName - An item to update all sequences containing.
|
|
48715
|
+
* @param callback - Callback to call when a response is received
|
|
48716
|
+
*/
|
|
48717
|
+
|
|
48718
|
+
async removeItemFromGroups(itemName: string): Promise<Systems.NullResult> {
|
|
48719
|
+
var _resolve;
|
|
48720
|
+
|
|
48721
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
48722
|
+
_resolve = _r;
|
|
48723
|
+
});
|
|
48724
|
+
|
|
48725
|
+
var _callbackPtr: number;
|
|
48726
|
+
var _callback = (_stateObject__: number, result) => {
|
|
48727
|
+
var _resultPtr = getNativePointer(result);
|
|
48728
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
48729
|
+
|
|
48730
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
48731
|
+
return;
|
|
48732
|
+
}
|
|
48733
|
+
|
|
48734
|
+
_resolve(_resultInstance);
|
|
48735
|
+
|
|
48736
|
+
Module.removeFunction(_callbackPtr);
|
|
48737
|
+
};
|
|
48738
|
+
|
|
48739
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
48740
|
+
|
|
48741
|
+
Module.ccall(
|
|
48742
|
+
"csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback",
|
|
48743
|
+
"void",
|
|
48744
|
+
["number", "string", "number", "number"],
|
|
48745
|
+
[this.pointer, itemName, _callbackPtr, 0],
|
|
48746
|
+
);
|
|
48747
|
+
|
|
48748
|
+
return _promise;
|
|
48749
|
+
}
|
|
47740
48750
|
}
|
|
47741
48751
|
}
|
|
47742
48752
|
|
|
@@ -49572,6 +50582,58 @@ export namespace Systems {
|
|
|
49572
50582
|
return _promise;
|
|
49573
50583
|
}
|
|
49574
50584
|
|
|
50585
|
+
/**
|
|
50586
|
+
* @description Finds all sequences that contain the given items
|
|
50587
|
+
* @param items - An array of items which should be searched for
|
|
50588
|
+
* @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
|
|
50589
|
+
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
50590
|
+
* @param callback - Callback to call when a response is received
|
|
50591
|
+
*/
|
|
50592
|
+
|
|
50593
|
+
async getAllSequencesContainingItems(
|
|
50594
|
+
items: Common.Array<string>,
|
|
50595
|
+
referenceType: string | null,
|
|
50596
|
+
referenceIds: Common.Array<string>,
|
|
50597
|
+
): Promise<Systems.SequencesResult> {
|
|
50598
|
+
var _resolve;
|
|
50599
|
+
|
|
50600
|
+
var _promise = new Promise<Systems.SequencesResult>((_r) => {
|
|
50601
|
+
_resolve = _r;
|
|
50602
|
+
});
|
|
50603
|
+
|
|
50604
|
+
var _callbackPtr: number;
|
|
50605
|
+
var _callback = (_stateObject__: number, result) => {
|
|
50606
|
+
var _resultPtr = getNativePointer(result);
|
|
50607
|
+
var _resultInstance = new Systems.SequencesResult(_resultPtr);
|
|
50608
|
+
|
|
50609
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50610
|
+
return;
|
|
50611
|
+
}
|
|
50612
|
+
|
|
50613
|
+
_resolve(_resultInstance);
|
|
50614
|
+
|
|
50615
|
+
Module.removeFunction(_callbackPtr);
|
|
50616
|
+
};
|
|
50617
|
+
|
|
50618
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50619
|
+
|
|
50620
|
+
Module.ccall(
|
|
50621
|
+
"csp_systems_SequenceSystem_GetAllSequencesContainingItems_void_ArrayRC_StringRC_ArrayRC_SequencesResultCallback",
|
|
50622
|
+
"void",
|
|
50623
|
+
["number", "number", "string", "number", "number", "number"],
|
|
50624
|
+
[
|
|
50625
|
+
this.pointer,
|
|
50626
|
+
items.pointer,
|
|
50627
|
+
referenceType,
|
|
50628
|
+
referenceIds.pointer,
|
|
50629
|
+
_callbackPtr,
|
|
50630
|
+
0,
|
|
50631
|
+
],
|
|
50632
|
+
);
|
|
50633
|
+
|
|
50634
|
+
return _promise;
|
|
50635
|
+
}
|
|
50636
|
+
|
|
49575
50637
|
/**
|
|
49576
50638
|
* @description Gets a sequence by it's key
|
|
49577
50639
|
* NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'
|