connected-spaces-platform.web 4.27.1 → 4.28.0
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 +84 -10
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +26 -5
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +220 -16
- package/connectedspacesplatform.js +441 -32
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +801 -48
- package/package.json +1 -1
|
@@ -359,6 +359,11 @@ function csp_multiplayer_AvatarComponentPropertyKeysFactory(nativePointer) {
|
|
|
359
359
|
}
|
|
360
360
|
ProxyClassFactories["csp_multiplayer_AvatarComponentPropertyKeys"] =
|
|
361
361
|
csp_multiplayer_AvatarComponentPropertyKeysFactory;
|
|
362
|
+
function csp_multiplayer_BillboardModeFactory(nativePointer) {
|
|
363
|
+
return nativePointer.pointer;
|
|
364
|
+
}
|
|
365
|
+
ProxyClassFactories["csp_multiplayer_BillboardMode"] =
|
|
366
|
+
csp_multiplayer_BillboardModeFactory;
|
|
362
367
|
function csp_multiplayer_ButtonPropertyKeysFactory(nativePointer) {
|
|
363
368
|
return nativePointer.pointer;
|
|
364
369
|
}
|
|
@@ -428,11 +433,6 @@ function csp_multiplayer_ImagePropertyKeysFactory(nativePointer) {
|
|
|
428
433
|
}
|
|
429
434
|
ProxyClassFactories["csp_multiplayer_ImagePropertyKeys"] =
|
|
430
435
|
csp_multiplayer_ImagePropertyKeysFactory;
|
|
431
|
-
function csp_multiplayer_BillboardModeFactory(nativePointer) {
|
|
432
|
-
return nativePointer.pointer;
|
|
433
|
-
}
|
|
434
|
-
ProxyClassFactories["csp_multiplayer_BillboardMode"] =
|
|
435
|
-
csp_multiplayer_BillboardModeFactory;
|
|
436
436
|
function csp_multiplayer_DisplayModeFactory(nativePointer) {
|
|
437
437
|
return nativePointer.pointer;
|
|
438
438
|
}
|
|
@@ -493,6 +493,11 @@ function csp_multiplayer_StaticModelPropertyKeysFactory(nativePointer) {
|
|
|
493
493
|
}
|
|
494
494
|
ProxyClassFactories["csp_multiplayer_StaticModelPropertyKeys"] =
|
|
495
495
|
csp_multiplayer_StaticModelPropertyKeysFactory;
|
|
496
|
+
function csp_multiplayer_TextPropertyKeysFactory(nativePointer) {
|
|
497
|
+
return nativePointer.pointer;
|
|
498
|
+
}
|
|
499
|
+
ProxyClassFactories["csp_multiplayer_TextPropertyKeys"] =
|
|
500
|
+
csp_multiplayer_TextPropertyKeysFactory;
|
|
496
501
|
function csp_multiplayer_VideoPlayerPlaybackStateFactory(nativePointer) {
|
|
497
502
|
return nativePointer.pointer;
|
|
498
503
|
}
|
|
@@ -1057,6 +1062,11 @@ function csp_multiplayer_StaticModelSpaceComponentFactory(nativePointer) {
|
|
|
1057
1062
|
}
|
|
1058
1063
|
ProxyClassFactories["csp_multiplayer_StaticModelSpaceComponent"] =
|
|
1059
1064
|
csp_multiplayer_StaticModelSpaceComponentFactory;
|
|
1065
|
+
function csp_multiplayer_TextSpaceComponentFactory(nativePointer) {
|
|
1066
|
+
return new Multiplayer.TextSpaceComponent(nativePointer);
|
|
1067
|
+
}
|
|
1068
|
+
ProxyClassFactories["csp_multiplayer_TextSpaceComponent"] =
|
|
1069
|
+
csp_multiplayer_TextSpaceComponentFactory;
|
|
1060
1070
|
function csp_multiplayer_VideoPlayerSpaceComponentFactory(nativePointer) {
|
|
1061
1071
|
return new Multiplayer.VideoPlayerSpaceComponent(nativePointer);
|
|
1062
1072
|
}
|
|
@@ -1980,6 +1990,14 @@ export var Multiplayer;
|
|
|
1980
1990
|
AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 15] = "Num";
|
|
1981
1991
|
})(AvatarComponentPropertyKeys = Multiplayer.AvatarComponentPropertyKeys || (Multiplayer.AvatarComponentPropertyKeys = {}));
|
|
1982
1992
|
})(Multiplayer || (Multiplayer = {}));
|
|
1993
|
+
(function (Multiplayer) {
|
|
1994
|
+
let BillboardMode;
|
|
1995
|
+
(function (BillboardMode) {
|
|
1996
|
+
BillboardMode[BillboardMode["Off"] = 0] = "Off";
|
|
1997
|
+
BillboardMode[BillboardMode["Billboard"] = 1] = "Billboard";
|
|
1998
|
+
BillboardMode[BillboardMode["YawLockedBillboard"] = 2] = "YawLockedBillboard";
|
|
1999
|
+
})(BillboardMode = Multiplayer.BillboardMode || (Multiplayer.BillboardMode = {}));
|
|
2000
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
1983
2001
|
(function (Multiplayer) {
|
|
1984
2002
|
/**
|
|
1985
2003
|
* @description Enumerates the list of properties that can be replicated for a button component.
|
|
@@ -2195,17 +2213,6 @@ export var Multiplayer;
|
|
|
2195
2213
|
ImagePropertyKeys[ImagePropertyKeys["Num"] = 11] = "Num";
|
|
2196
2214
|
})(ImagePropertyKeys = Multiplayer.ImagePropertyKeys || (Multiplayer.ImagePropertyKeys = {}));
|
|
2197
2215
|
})(Multiplayer || (Multiplayer = {}));
|
|
2198
|
-
(function (Multiplayer) {
|
|
2199
|
-
/**
|
|
2200
|
-
* @description The billboard mode supported by this image space component.
|
|
2201
|
-
*/
|
|
2202
|
-
let BillboardMode;
|
|
2203
|
-
(function (BillboardMode) {
|
|
2204
|
-
BillboardMode[BillboardMode["Off"] = 0] = "Off";
|
|
2205
|
-
BillboardMode[BillboardMode["Billboard"] = 1] = "Billboard";
|
|
2206
|
-
BillboardMode[BillboardMode["YawLockedBillboard"] = 2] = "YawLockedBillboard";
|
|
2207
|
-
})(BillboardMode = Multiplayer.BillboardMode || (Multiplayer.BillboardMode = {}));
|
|
2208
|
-
})(Multiplayer || (Multiplayer = {}));
|
|
2209
2216
|
(function (Multiplayer) {
|
|
2210
2217
|
/**
|
|
2211
2218
|
* @description The display mode supported by this image space component.
|
|
@@ -2373,6 +2380,27 @@ export var Multiplayer;
|
|
|
2373
2380
|
StaticModelPropertyKeys[StaticModelPropertyKeys["Num"] = 10] = "Num";
|
|
2374
2381
|
})(StaticModelPropertyKeys = Multiplayer.StaticModelPropertyKeys || (Multiplayer.StaticModelPropertyKeys = {}));
|
|
2375
2382
|
})(Multiplayer || (Multiplayer = {}));
|
|
2383
|
+
(function (Multiplayer) {
|
|
2384
|
+
/**
|
|
2385
|
+
* @description Enumerates the list of properties that can be replicated for an text space component.
|
|
2386
|
+
*/
|
|
2387
|
+
let TextPropertyKeys;
|
|
2388
|
+
(function (TextPropertyKeys) {
|
|
2389
|
+
TextPropertyKeys[TextPropertyKeys["Position"] = 0] = "Position";
|
|
2390
|
+
TextPropertyKeys[TextPropertyKeys["Rotation"] = 1] = "Rotation";
|
|
2391
|
+
TextPropertyKeys[TextPropertyKeys["Scale"] = 2] = "Scale";
|
|
2392
|
+
TextPropertyKeys[TextPropertyKeys["Text"] = 3] = "Text";
|
|
2393
|
+
TextPropertyKeys[TextPropertyKeys["TextColor"] = 4] = "TextColor";
|
|
2394
|
+
TextPropertyKeys[TextPropertyKeys["BackgroundColor"] = 5] = "BackgroundColor";
|
|
2395
|
+
TextPropertyKeys[TextPropertyKeys["IsBackgroundVisible"] = 6] = "IsBackgroundVisible";
|
|
2396
|
+
TextPropertyKeys[TextPropertyKeys["Width"] = 7] = "Width";
|
|
2397
|
+
TextPropertyKeys[TextPropertyKeys["Height"] = 8] = "Height";
|
|
2398
|
+
TextPropertyKeys[TextPropertyKeys["BillboardMode"] = 9] = "BillboardMode";
|
|
2399
|
+
TextPropertyKeys[TextPropertyKeys["IsVisible"] = 10] = "IsVisible";
|
|
2400
|
+
TextPropertyKeys[TextPropertyKeys["IsARVisible"] = 11] = "IsARVisible";
|
|
2401
|
+
TextPropertyKeys[TextPropertyKeys["Num"] = 12] = "Num";
|
|
2402
|
+
})(TextPropertyKeys = Multiplayer.TextPropertyKeys || (Multiplayer.TextPropertyKeys = {}));
|
|
2403
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
2376
2404
|
(function (Multiplayer) {
|
|
2377
2405
|
/**
|
|
2378
2406
|
* @description Enumerates the possible playback states for a video player.
|
|
@@ -8493,12 +8521,12 @@ export class CSPFoundation {
|
|
|
8493
8521
|
return new Variant(_nPtr);
|
|
8494
8522
|
}
|
|
8495
8523
|
/**
|
|
8496
|
-
* @description Construct a Variant based on a float type.
|
|
8524
|
+
* @description Construct a Variant based on a double-precision float type.
|
|
8497
8525
|
* @param inFloatValue - In value
|
|
8498
8526
|
*/
|
|
8499
8527
|
static create_floatValue(floatValue) {
|
|
8500
8528
|
var _ptr = Module._malloc(8);
|
|
8501
|
-
Module.ccall("
|
|
8529
|
+
Module.ccall("csp_common_Variant_Ctor_double", "void", ["number", "number"], [_ptr, floatValue]);
|
|
8502
8530
|
var _nPtr = getNativePointer(_ptr);
|
|
8503
8531
|
return new Variant(_nPtr);
|
|
8504
8532
|
}
|
|
@@ -8587,19 +8615,19 @@ export class CSPFoundation {
|
|
|
8587
8615
|
return _result;
|
|
8588
8616
|
}
|
|
8589
8617
|
/**
|
|
8590
|
-
* @description Sets internal variant type as a float.
|
|
8618
|
+
* @description Sets internal variant type as a double-precision float.
|
|
8591
8619
|
*/
|
|
8592
8620
|
setFloat(value) {
|
|
8593
|
-
assert(value >= Limits.
|
|
8594
|
-
assert(value <= Limits.
|
|
8595
|
-
Module.ccall("
|
|
8621
|
+
assert(value >= Limits.DOUBLE_MIN);
|
|
8622
|
+
assert(value <= Limits.DOUBLE_MAX);
|
|
8623
|
+
Module.ccall("csp_common_Variant_SetFloat_void_double", "void", ["number", "number"], [this.pointer, value]);
|
|
8596
8624
|
}
|
|
8597
8625
|
/**
|
|
8598
|
-
* @description Gets internal variant type as a float.
|
|
8599
|
-
* @return
|
|
8626
|
+
* @description Gets internal variant type as a double-precision float.
|
|
8627
|
+
* @return Double
|
|
8600
8628
|
*/
|
|
8601
8629
|
getFloat() {
|
|
8602
|
-
let _result = Module.ccall("
|
|
8630
|
+
let _result = Module.ccall("csp_common_Variant_GetFloatC_double", "number", ["number"], [this.pointer]);
|
|
8603
8631
|
return _result;
|
|
8604
8632
|
}
|
|
8605
8633
|
/**
|
|
@@ -11888,6 +11916,13 @@ export class CSPFoundation {
|
|
|
11888
11916
|
set version(value) {
|
|
11889
11917
|
Module.ccall("csp_systems_AssetCollection__Set_Version", "void", ["number", "string"], [this.pointer, value]);
|
|
11890
11918
|
}
|
|
11919
|
+
get organizationId() {
|
|
11920
|
+
let _result = Module.ccall("csp_systems_AssetCollection__Get_OrganizationId", "string", ["number"], [this.pointer]);
|
|
11921
|
+
return _result;
|
|
11922
|
+
}
|
|
11923
|
+
set organizationId(value) {
|
|
11924
|
+
Module.ccall("csp_systems_AssetCollection__Set_OrganizationId", "void", ["number", "string"], [this.pointer, value]);
|
|
11925
|
+
}
|
|
11891
11926
|
}
|
|
11892
11927
|
Systems.AssetCollection = AssetCollection;
|
|
11893
11928
|
})(Systems || (Systems = {}));
|
|
@@ -12189,6 +12224,13 @@ export class CSPFoundation {
|
|
|
12189
12224
|
set unitPrice(value) {
|
|
12190
12225
|
Module.ccall("csp_systems_ProductVariantInfo__Set_UnitPrice", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
12191
12226
|
}
|
|
12227
|
+
get availableStock() {
|
|
12228
|
+
let _result = Module.ccall("csp_systems_ProductVariantInfo__Get_AvailableStock", "number", ["number"], [this.pointer]);
|
|
12229
|
+
return _result;
|
|
12230
|
+
}
|
|
12231
|
+
set availableStock(value) {
|
|
12232
|
+
Module.ccall("csp_systems_ProductVariantInfo__Set_AvailableStock", "void", ["number", "number"], [this.pointer, value]);
|
|
12233
|
+
}
|
|
12192
12234
|
}
|
|
12193
12235
|
Systems.ProductVariantInfo = ProductVariantInfo;
|
|
12194
12236
|
})(Systems || (Systems = {}));
|
|
@@ -13042,13 +13084,6 @@ export class CSPFoundation {
|
|
|
13042
13084
|
set name(value) {
|
|
13043
13085
|
Module.ccall("csp_systems_Organization__Set_Name", "void", ["number", "string"], [this.pointer, value]);
|
|
13044
13086
|
}
|
|
13045
|
-
get description() {
|
|
13046
|
-
let _result = Module.ccall("csp_systems_Organization__Get_Description", "string", ["number"], [this.pointer]);
|
|
13047
|
-
return _result;
|
|
13048
|
-
}
|
|
13049
|
-
set description(value) {
|
|
13050
|
-
Module.ccall("csp_systems_Organization__Set_Description", "void", ["number", "string"], [this.pointer, value]);
|
|
13051
|
-
}
|
|
13052
13087
|
get members() {
|
|
13053
13088
|
const _ptr = Module._malloc(8);
|
|
13054
13089
|
Module.ccall("csp_systems_Organization__Get_Members", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
@@ -18339,6 +18374,252 @@ export class CSPFoundation {
|
|
|
18339
18374
|
}
|
|
18340
18375
|
Multiplayer.StaticModelSpaceComponent = StaticModelSpaceComponent;
|
|
18341
18376
|
})(Multiplayer || (Multiplayer = {}));
|
|
18377
|
+
(function (Multiplayer) {
|
|
18378
|
+
/**
|
|
18379
|
+
@ingroup TextSpaceComponent
|
|
18380
|
+
* @description Data representation of an TextSpaceComponent.
|
|
18381
|
+
*/
|
|
18382
|
+
class TextSpaceComponent extends Multiplayer.ComponentBase {
|
|
18383
|
+
/** @internal */
|
|
18384
|
+
constructor(pointer) {
|
|
18385
|
+
super(pointer);
|
|
18386
|
+
}
|
|
18387
|
+
static fromComponentBase(baseInstance) {
|
|
18388
|
+
const nativeClassWrapper = baseInstance;
|
|
18389
|
+
return new Multiplayer.TextSpaceComponent(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
18390
|
+
}
|
|
18391
|
+
/**
|
|
18392
|
+
* @description Constructs the text space component, and associates it with the specified Parent space entity.
|
|
18393
|
+
* @param parent - The Space entity that owns this component.
|
|
18394
|
+
*/
|
|
18395
|
+
static create_parent(parent) {
|
|
18396
|
+
var _ptr = Module._malloc(8);
|
|
18397
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_Ctor_SpaceEntityP", "void", ["number", "number"], [_ptr, parent.pointer]);
|
|
18398
|
+
var _nPtr = getNativePointer(_ptr);
|
|
18399
|
+
return new TextSpaceComponent(_nPtr);
|
|
18400
|
+
}
|
|
18401
|
+
/**
|
|
18402
|
+
* @description Gets the text this text component refers to.
|
|
18403
|
+
* @return The text this text component refers to.
|
|
18404
|
+
*/
|
|
18405
|
+
getText() {
|
|
18406
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetTextC_StringRC", "number", ["number"], [this.pointer]);
|
|
18407
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
18408
|
+
free(_result);
|
|
18409
|
+
_result = _resultString;
|
|
18410
|
+
return _result;
|
|
18411
|
+
}
|
|
18412
|
+
/**
|
|
18413
|
+
* @description Sets the text this text component refers to.
|
|
18414
|
+
* @param value - The text this text component refers to.
|
|
18415
|
+
*/
|
|
18416
|
+
setText(value) {
|
|
18417
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetText_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
18418
|
+
}
|
|
18419
|
+
/**
|
|
18420
|
+
* @description Gets the text color.
|
|
18421
|
+
* @return The text color, expected to be in RGB color space, with each value normalised between 0...1.
|
|
18422
|
+
*/
|
|
18423
|
+
getTextColor() {
|
|
18424
|
+
var _ret = Module._malloc(8);
|
|
18425
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_GetTextColorC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18426
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
18427
|
+
Module._free(_ret);
|
|
18428
|
+
return _nPtr;
|
|
18429
|
+
}
|
|
18430
|
+
/**
|
|
18431
|
+
* @description Sets the text color.
|
|
18432
|
+
* @param value - The text color, expected to be in RGB color space, with each value normalised between 0...1.
|
|
18433
|
+
*/
|
|
18434
|
+
setTextColor(value) {
|
|
18435
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetTextColor_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18436
|
+
}
|
|
18437
|
+
/**
|
|
18438
|
+
* @description Gets the background color that should be globally applied text associated with this component.
|
|
18439
|
+
* @return The background color, expected to be in RGB color space, with each value normalised between 0...1.
|
|
18440
|
+
*/
|
|
18441
|
+
getBackgroundColor() {
|
|
18442
|
+
var _ret = Module._malloc(8);
|
|
18443
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_GetBackgroundColorC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18444
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
18445
|
+
Module._free(_ret);
|
|
18446
|
+
return _nPtr;
|
|
18447
|
+
}
|
|
18448
|
+
/**
|
|
18449
|
+
* @description Sets the background color.
|
|
18450
|
+
* @param value - The background color, expected to be in RGB color space, with each value normalised between 0...1.
|
|
18451
|
+
*/
|
|
18452
|
+
setBackgroundColor(value) {
|
|
18453
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetBackgroundColor_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18454
|
+
}
|
|
18455
|
+
/**
|
|
18456
|
+
* @description Sets the background visibility.
|
|
18457
|
+
* @param value - The background visibility.
|
|
18458
|
+
*/
|
|
18459
|
+
getIsBackgroundVisible() {
|
|
18460
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsBackgroundVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
18461
|
+
return _result;
|
|
18462
|
+
}
|
|
18463
|
+
/**
|
|
18464
|
+
* @description Sets the background visibility.
|
|
18465
|
+
* @param value - The background visibility.
|
|
18466
|
+
*/
|
|
18467
|
+
setIsBackgroundVisible(value) {
|
|
18468
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsBackgroundVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
18469
|
+
}
|
|
18470
|
+
/**
|
|
18471
|
+
* @description Sets the Text Width.
|
|
18472
|
+
* @param value - The Text Width.
|
|
18473
|
+
*/
|
|
18474
|
+
getWidth() {
|
|
18475
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetWidthC_float", "number", ["number"], [this.pointer]);
|
|
18476
|
+
return _result;
|
|
18477
|
+
}
|
|
18478
|
+
/**
|
|
18479
|
+
* @description Sets the Text Width.
|
|
18480
|
+
* @param value - The Text Width.
|
|
18481
|
+
*/
|
|
18482
|
+
setWidth(value) {
|
|
18483
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
18484
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
18485
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetWidth_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
18486
|
+
}
|
|
18487
|
+
/**
|
|
18488
|
+
* @description Sets the Text Height.
|
|
18489
|
+
* @param value - The Text Height.
|
|
18490
|
+
*/
|
|
18491
|
+
getHeight() {
|
|
18492
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetHeightC_float", "number", ["number"], [this.pointer]);
|
|
18493
|
+
return _result;
|
|
18494
|
+
}
|
|
18495
|
+
/**
|
|
18496
|
+
* @description Sets the Text Height.
|
|
18497
|
+
* @param value - The Text Height.
|
|
18498
|
+
*/
|
|
18499
|
+
setHeight(value) {
|
|
18500
|
+
assert(value >= Limits.FLOAT_MIN);
|
|
18501
|
+
assert(value <= Limits.FLOAT_MAX);
|
|
18502
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetHeight_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
18503
|
+
}
|
|
18504
|
+
/**
|
|
18505
|
+
* \addtogroup ITransformComponent
|
|
18506
|
+
@{
|
|
18507
|
+
@copydoc IPositionComponent::GetPosition()
|
|
18508
|
+
*/
|
|
18509
|
+
getPosition() {
|
|
18510
|
+
var _ret = Module._malloc(8);
|
|
18511
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_GetPositionC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18512
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
18513
|
+
Module._free(_ret);
|
|
18514
|
+
return _nPtr;
|
|
18515
|
+
}
|
|
18516
|
+
/**
|
|
18517
|
+
@copydoc IPositionComponent::SetPosition()
|
|
18518
|
+
*/
|
|
18519
|
+
setPosition(value) {
|
|
18520
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18521
|
+
}
|
|
18522
|
+
/**
|
|
18523
|
+
@copydoc IRotationComponent::GetRotation()
|
|
18524
|
+
*/
|
|
18525
|
+
getRotation() {
|
|
18526
|
+
var _ret = Module._malloc(8);
|
|
18527
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18528
|
+
var _nPtr = new Common.Vector4(getNativePointer(_ret));
|
|
18529
|
+
Module._free(_ret);
|
|
18530
|
+
return _nPtr;
|
|
18531
|
+
}
|
|
18532
|
+
/**
|
|
18533
|
+
@copydoc IRotationComponent::SetRotation()
|
|
18534
|
+
*/
|
|
18535
|
+
setRotation(value) {
|
|
18536
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18537
|
+
}
|
|
18538
|
+
/**
|
|
18539
|
+
@copydoc IScaleComponent::GetScale()
|
|
18540
|
+
*/
|
|
18541
|
+
getScale() {
|
|
18542
|
+
var _ret = Module._malloc(8);
|
|
18543
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_GetScaleC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18544
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
18545
|
+
Module._free(_ret);
|
|
18546
|
+
return _nPtr;
|
|
18547
|
+
}
|
|
18548
|
+
/**
|
|
18549
|
+
@copydoc IScaleComponent::SetScale()
|
|
18550
|
+
*/
|
|
18551
|
+
setScale(value) {
|
|
18552
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18553
|
+
}
|
|
18554
|
+
/**
|
|
18555
|
+
@copydoc ITransformComponent::GetTransform()
|
|
18556
|
+
*/
|
|
18557
|
+
getTransform() {
|
|
18558
|
+
var _ret = Module._malloc(8);
|
|
18559
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
|
|
18560
|
+
var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
|
|
18561
|
+
Module._free(_ret);
|
|
18562
|
+
return _nPtr;
|
|
18563
|
+
}
|
|
18564
|
+
/**
|
|
18565
|
+
@copydoc ITransformComonent::SetTransform()
|
|
18566
|
+
*/
|
|
18567
|
+
setTransform(value) {
|
|
18568
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
18569
|
+
}
|
|
18570
|
+
/**
|
|
18571
|
+
@}
|
|
18572
|
+
* @description Gets the billboard mode used by this text component.
|
|
18573
|
+
* @return The billboard mode used by this text component.
|
|
18574
|
+
*/
|
|
18575
|
+
getBillboardMode() {
|
|
18576
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetBillboardModeC_BillboardMode", "number", ["number"], [this.pointer]);
|
|
18577
|
+
return _result;
|
|
18578
|
+
}
|
|
18579
|
+
/**
|
|
18580
|
+
* @description Sets the billboard mode used by this text component.
|
|
18581
|
+
* @param billboardMode - The billboard mode used by this text component.
|
|
18582
|
+
*/
|
|
18583
|
+
setBillboardMode(billboardMode) {
|
|
18584
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetBillboardMode_void_BillboardMode", "void", ["number", "number"], [this.pointer, billboardMode]);
|
|
18585
|
+
}
|
|
18586
|
+
/**
|
|
18587
|
+
* \addtogroup IVisibleComponent
|
|
18588
|
+
@{
|
|
18589
|
+
@copydoc IVisibleComponent::GetIsVisible()
|
|
18590
|
+
*/
|
|
18591
|
+
getIsVisible() {
|
|
18592
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
18593
|
+
return _result;
|
|
18594
|
+
}
|
|
18595
|
+
/**
|
|
18596
|
+
@copydoc IVisibleComponent::SetIsVisible()
|
|
18597
|
+
*/
|
|
18598
|
+
setIsVisible(value) {
|
|
18599
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
18600
|
+
}
|
|
18601
|
+
/**
|
|
18602
|
+
@copydoc IVisibleComponent::GetIsARVisible()
|
|
18603
|
+
*/
|
|
18604
|
+
getIsARVisible() {
|
|
18605
|
+
let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsARVisibleC_bool", "boolean", ["number"], [this.pointer]);
|
|
18606
|
+
return _result;
|
|
18607
|
+
}
|
|
18608
|
+
/**
|
|
18609
|
+
@copydoc IVisibleComponent::SetIsARVisible()
|
|
18610
|
+
*/
|
|
18611
|
+
setIsARVisible(value) {
|
|
18612
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
18613
|
+
}
|
|
18614
|
+
delete() {
|
|
18615
|
+
if (this.ownsPointer && !this.disposed) {
|
|
18616
|
+
Module.ccall("csp_multiplayer_TextSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
18617
|
+
this.disposed = true;
|
|
18618
|
+
}
|
|
18619
|
+
}
|
|
18620
|
+
}
|
|
18621
|
+
Multiplayer.TextSpaceComponent = TextSpaceComponent;
|
|
18622
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
18342
18623
|
(function (Multiplayer) {
|
|
18343
18624
|
/**
|
|
18344
18625
|
@ingroup VideoPlayerSpaceComponent
|
|
@@ -21352,6 +21633,127 @@ export class CSPFoundation {
|
|
|
21352
21633
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
21353
21634
|
Module.ccall("csp_systems_OrganizationSystem_SetMemberJoinedOrganizationCallback_void_MemberJoinedOrganizationCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
21354
21635
|
}
|
|
21636
|
+
/**
|
|
21637
|
+
* @description Create a new Organization.
|
|
21638
|
+
* Only a User with tenant admin permissions can create an Organization.
|
|
21639
|
+
* If the user does not have the required permissions their call will be rejected.
|
|
21640
|
+
* @param organizationOwnerId - Id of the Organization owner.
|
|
21641
|
+
* @param organizationName - The Organization name
|
|
21642
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21643
|
+
*/
|
|
21644
|
+
async createOrganization(organizationOwnerId, organizationName) {
|
|
21645
|
+
var _resolve;
|
|
21646
|
+
var _promise = new Promise((_r) => {
|
|
21647
|
+
_resolve = _r;
|
|
21648
|
+
});
|
|
21649
|
+
var _callbackPtr;
|
|
21650
|
+
var _callback = (_stateObject__, result) => {
|
|
21651
|
+
var _resultPtr = getNativePointer(result);
|
|
21652
|
+
var _resultInstance = new Systems.OrganizationResult(_resultPtr);
|
|
21653
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21654
|
+
return;
|
|
21655
|
+
}
|
|
21656
|
+
_resolve(_resultInstance);
|
|
21657
|
+
Module.removeFunction(_callbackPtr);
|
|
21658
|
+
};
|
|
21659
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21660
|
+
Module.ccall("csp_systems_OrganizationSystem_CreateOrganization_void_StringRC_StringRC_OrganizationResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationOwnerId, organizationName, _callbackPtr, 0]);
|
|
21661
|
+
return _promise;
|
|
21662
|
+
}
|
|
21663
|
+
/**
|
|
21664
|
+
* @description Retrieves Organization info for the specified Organization.
|
|
21665
|
+
* If this request is made by a User with an Owner or Admin Organization role, the resultant Organization object will contain an array of
|
|
21666
|
+
* OrganizationRoleInfo objects for each Organization member. If the request is made by a User who does not have the Owner or Admin role, the
|
|
21667
|
+
* resultant Organization object will contain an array with a single OrganizationRoleInfo object which represents them.
|
|
21668
|
+
* @param organizationId - Id of the Organization to retrieve information on. If no Id is specified,
|
|
21669
|
+
* the Id of the Organization the user is currently authenticated against will be used.
|
|
21670
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21671
|
+
*/
|
|
21672
|
+
async getOrganization(organizationId) {
|
|
21673
|
+
var _resolve;
|
|
21674
|
+
var _promise = new Promise((_r) => {
|
|
21675
|
+
_resolve = _r;
|
|
21676
|
+
});
|
|
21677
|
+
var _callbackPtr;
|
|
21678
|
+
var _callback = (_stateObject__, result) => {
|
|
21679
|
+
var _resultPtr = getNativePointer(result);
|
|
21680
|
+
var _resultInstance = new Systems.OrganizationResult(_resultPtr);
|
|
21681
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21682
|
+
return;
|
|
21683
|
+
}
|
|
21684
|
+
_resolve(_resultInstance);
|
|
21685
|
+
Module.removeFunction(_callbackPtr);
|
|
21686
|
+
};
|
|
21687
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21688
|
+
Module.ccall("csp_systems_OrganizationSystem_GetOrganization_void_StringRC_OrganizationResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, organizationId, _callbackPtr, 0]);
|
|
21689
|
+
return _promise;
|
|
21690
|
+
}
|
|
21691
|
+
/**
|
|
21692
|
+
* @description Get the Id of the Organization the user is authenticated against.
|
|
21693
|
+
* @return The Id of the Organization the User belongs to.
|
|
21694
|
+
*/
|
|
21695
|
+
getCurrentOrganizationId() {
|
|
21696
|
+
let _result = Module.ccall("csp_systems_OrganizationSystem_GetCurrentOrganizationIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
21697
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
21698
|
+
free(_result);
|
|
21699
|
+
_result = _resultString;
|
|
21700
|
+
return _result;
|
|
21701
|
+
}
|
|
21702
|
+
/**
|
|
21703
|
+
* @description Updates the name and/or the description of the specified Organization.
|
|
21704
|
+
* Only a User with an Organization Owner role can update an Organization. If the user does not have the required Organization role
|
|
21705
|
+
* their call will be rejected.
|
|
21706
|
+
* @param organizationId - Id of the Organization to update. If no Id is specified,
|
|
21707
|
+
* the Id of the Organization the user is currently authenticated against will be used.
|
|
21708
|
+
* @param name - The new Organization name
|
|
21709
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21710
|
+
*/
|
|
21711
|
+
async updateOrganization(organizationId, name) {
|
|
21712
|
+
var _resolve;
|
|
21713
|
+
var _promise = new Promise((_r) => {
|
|
21714
|
+
_resolve = _r;
|
|
21715
|
+
});
|
|
21716
|
+
var _callbackPtr;
|
|
21717
|
+
var _callback = (_stateObject__, result) => {
|
|
21718
|
+
var _resultPtr = getNativePointer(result);
|
|
21719
|
+
var _resultInstance = new Systems.OrganizationResult(_resultPtr);
|
|
21720
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21721
|
+
return;
|
|
21722
|
+
}
|
|
21723
|
+
_resolve(_resultInstance);
|
|
21724
|
+
Module.removeFunction(_callbackPtr);
|
|
21725
|
+
};
|
|
21726
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21727
|
+
Module.ccall("csp_systems_OrganizationSystem_UpdateOrganization_void_StringRC_StringRC_OrganizationResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationId, name, _callbackPtr, 0]);
|
|
21728
|
+
return _promise;
|
|
21729
|
+
}
|
|
21730
|
+
/**
|
|
21731
|
+
* @description Deactivates the specified Organization.
|
|
21732
|
+
* This call performs a soft-delete of the Organization and will allow for Organization reactivation in the future.
|
|
21733
|
+
* Only A User with owner-level permissions can deactivate an Organization. If the user does not have the required role their call will be
|
|
21734
|
+
* rejected.
|
|
21735
|
+
* @param organizationId - Id of the Organization to deactivate.
|
|
21736
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21737
|
+
*/
|
|
21738
|
+
async deactivateOrganization(organizationId) {
|
|
21739
|
+
var _resolve;
|
|
21740
|
+
var _promise = new Promise((_r) => {
|
|
21741
|
+
_resolve = _r;
|
|
21742
|
+
});
|
|
21743
|
+
var _callbackPtr;
|
|
21744
|
+
var _callback = (_stateObject__, result) => {
|
|
21745
|
+
var _resultPtr = getNativePointer(result);
|
|
21746
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
21747
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21748
|
+
return;
|
|
21749
|
+
}
|
|
21750
|
+
_resolve(_resultInstance);
|
|
21751
|
+
Module.removeFunction(_callbackPtr);
|
|
21752
|
+
};
|
|
21753
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21754
|
+
Module.ccall("csp_systems_OrganizationSystem_DeactivateOrganization_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, organizationId, _callbackPtr, 0]);
|
|
21755
|
+
return _promise;
|
|
21756
|
+
}
|
|
21355
21757
|
/**
|
|
21356
21758
|
* @description Invites a given email to the User's Organization.
|
|
21357
21759
|
* Only a User with an Admin or Owner Organization role can invite people to the organization. If the User does not have the required role their
|
|
@@ -22493,6 +22895,13 @@ export class CSPFoundation {
|
|
|
22493
22895
|
set bannedUserIds(value) {
|
|
22494
22896
|
Module.ccall("csp_systems_Space__Set_BannedUserIds", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
22495
22897
|
}
|
|
22898
|
+
get organizationId() {
|
|
22899
|
+
let _result = Module.ccall("csp_systems_Space__Get_OrganizationId", "string", ["number"], [this.pointer]);
|
|
22900
|
+
return _result;
|
|
22901
|
+
}
|
|
22902
|
+
set organizationId(value) {
|
|
22903
|
+
Module.ccall("csp_systems_Space__Set_OrganizationId", "void", ["number", "string"], [this.pointer, value]);
|
|
22904
|
+
}
|
|
22496
22905
|
}
|
|
22497
22906
|
Systems.Space = Space;
|
|
22498
22907
|
})(Systems || (Systems = {}));
|