connected-spaces-platform.web 5.11.0 → 5.13.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 +108 -38
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +306 -110
- package/connectedspacesplatform.js +544 -182
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +941 -273
- package/package.json +1 -1
|
@@ -561,14 +561,23 @@ function csp_systems_EAssetCollectionTypeFactory(nativePointer) {
|
|
|
561
561
|
}
|
|
562
562
|
ProxyClassFactories["csp_systems_EAssetCollectionType"] =
|
|
563
563
|
csp_systems_EAssetCollectionTypeFactory;
|
|
564
|
+
function csp_systems_EShaderTypeFactory(nativePointer) {
|
|
565
|
+
return nativePointer.pointer;
|
|
566
|
+
}
|
|
567
|
+
ProxyClassFactories["csp_systems_EShaderType"] = csp_systems_EShaderTypeFactory;
|
|
564
568
|
function csp_systems_EAlphaModeFactory(nativePointer) {
|
|
565
569
|
return nativePointer.pointer;
|
|
566
570
|
}
|
|
567
571
|
ProxyClassFactories["csp_systems_EAlphaMode"] = csp_systems_EAlphaModeFactory;
|
|
568
|
-
function
|
|
572
|
+
function csp_systems_EBlendModeFactory(nativePointer) {
|
|
569
573
|
return nativePointer.pointer;
|
|
570
574
|
}
|
|
571
|
-
ProxyClassFactories["
|
|
575
|
+
ProxyClassFactories["csp_systems_EBlendMode"] = csp_systems_EBlendModeFactory;
|
|
576
|
+
function csp_systems_EColorChannelFactory(nativePointer) {
|
|
577
|
+
return nativePointer.pointer;
|
|
578
|
+
}
|
|
579
|
+
ProxyClassFactories["csp_systems_EColorChannel"] =
|
|
580
|
+
csp_systems_EColorChannelFactory;
|
|
572
581
|
function csp_systems_ETextureResourceTypeFactory(nativePointer) {
|
|
573
582
|
return nativePointer.pointer;
|
|
574
583
|
}
|
|
@@ -992,6 +1001,11 @@ function csp_systems_AgoraUserTokenParamsFactory(nativePointer) {
|
|
|
992
1001
|
}
|
|
993
1002
|
ProxyClassFactories["csp_systems_AgoraUserTokenParams"] =
|
|
994
1003
|
csp_systems_AgoraUserTokenParamsFactory;
|
|
1004
|
+
function csp_systems_TokenInfoParamsFactory(nativePointer) {
|
|
1005
|
+
return new Systems.TokenInfoParams(nativePointer);
|
|
1006
|
+
}
|
|
1007
|
+
ProxyClassFactories["csp_systems_TokenInfoParams"] =
|
|
1008
|
+
csp_systems_TokenInfoParamsFactory;
|
|
995
1009
|
function csp_systems_BasicProfileFactory(nativePointer) {
|
|
996
1010
|
return new Systems.BasicProfile(nativePointer);
|
|
997
1011
|
}
|
|
@@ -1180,6 +1194,11 @@ function csp_systems_HTTPHeadersResultFactory(nativePointer) {
|
|
|
1180
1194
|
}
|
|
1181
1195
|
ProxyClassFactories["csp_systems_HTTPHeadersResult"] =
|
|
1182
1196
|
csp_systems_HTTPHeadersResultFactory;
|
|
1197
|
+
function csp_systems_AlphaVideoMaterialFactory(nativePointer) {
|
|
1198
|
+
return new Systems.AlphaVideoMaterial(nativePointer);
|
|
1199
|
+
}
|
|
1200
|
+
ProxyClassFactories["csp_systems_AlphaVideoMaterial"] =
|
|
1201
|
+
csp_systems_AlphaVideoMaterialFactory;
|
|
1183
1202
|
function csp_systems_AssetResultFactory(nativePointer) {
|
|
1184
1203
|
return new Systems.AssetResult(nativePointer);
|
|
1185
1204
|
}
|
|
@@ -1217,21 +1236,21 @@ function csp_systems_GLTFMaterialFactory(nativePointer) {
|
|
|
1217
1236
|
}
|
|
1218
1237
|
ProxyClassFactories["csp_systems_GLTFMaterial"] =
|
|
1219
1238
|
csp_systems_GLTFMaterialFactory;
|
|
1220
|
-
function csp_systems_GLTFMaterialResultFactory(nativePointer) {
|
|
1221
|
-
return new Systems.GLTFMaterialResult(nativePointer);
|
|
1222
|
-
}
|
|
1223
|
-
ProxyClassFactories["csp_systems_GLTFMaterialResult"] =
|
|
1224
|
-
csp_systems_GLTFMaterialResultFactory;
|
|
1225
|
-
function csp_systems_GLTFMaterialsResultFactory(nativePointer) {
|
|
1226
|
-
return new Systems.GLTFMaterialsResult(nativePointer);
|
|
1227
|
-
}
|
|
1228
|
-
ProxyClassFactories["csp_systems_GLTFMaterialsResult"] =
|
|
1229
|
-
csp_systems_GLTFMaterialsResultFactory;
|
|
1230
1239
|
function csp_systems_LODChainResultFactory(nativePointer) {
|
|
1231
1240
|
return new Systems.LODChainResult(nativePointer);
|
|
1232
1241
|
}
|
|
1233
1242
|
ProxyClassFactories["csp_systems_LODChainResult"] =
|
|
1234
1243
|
csp_systems_LODChainResultFactory;
|
|
1244
|
+
function csp_systems_MaterialResultFactory(nativePointer) {
|
|
1245
|
+
return new Systems.MaterialResult(nativePointer);
|
|
1246
|
+
}
|
|
1247
|
+
ProxyClassFactories["csp_systems_MaterialResult"] =
|
|
1248
|
+
csp_systems_MaterialResultFactory;
|
|
1249
|
+
function csp_systems_MaterialsResultFactory(nativePointer) {
|
|
1250
|
+
return new Systems.MaterialsResult(nativePointer);
|
|
1251
|
+
}
|
|
1252
|
+
ProxyClassFactories["csp_systems_MaterialsResult"] =
|
|
1253
|
+
csp_systems_MaterialsResultFactory;
|
|
1235
1254
|
function csp_systems_ProductInfoResultFactory(nativePointer) {
|
|
1236
1255
|
return new Systems.ProductInfoResult(nativePointer);
|
|
1237
1256
|
}
|
|
@@ -1583,16 +1602,16 @@ function csp_common_Array_csp_systems_EAssetTypeFactory(nativePointer) {
|
|
|
1583
1602
|
}
|
|
1584
1603
|
ProxyClassFactories["csp_common_Array_csp_systems_EAssetType"] =
|
|
1585
1604
|
csp_common_Array_csp_systems_EAssetTypeFactory;
|
|
1586
|
-
function csp_common_Array_csp_systems_GLTFMaterialFactory(nativePointer) {
|
|
1587
|
-
return new Common.Array(nativePointer, csp_systems_GLTFMaterialFactory, "csp_systems_GLTFMaterial");
|
|
1588
|
-
}
|
|
1589
|
-
ProxyClassFactories["csp_common_Array_csp_systems_GLTFMaterial"] =
|
|
1590
|
-
csp_common_Array_csp_systems_GLTFMaterialFactory;
|
|
1591
1605
|
function csp_common_Array_csp_systems_LODAssetFactory(nativePointer) {
|
|
1592
1606
|
return new Common.Array(nativePointer, csp_systems_LODAssetFactory, "csp_systems_LODAsset");
|
|
1593
1607
|
}
|
|
1594
1608
|
ProxyClassFactories["csp_common_Array_csp_systems_LODAsset"] =
|
|
1595
1609
|
csp_common_Array_csp_systems_LODAssetFactory;
|
|
1610
|
+
function csp_common_Array_csp_systems_MaterialFactory(nativePointer) {
|
|
1611
|
+
return new Common.Array(nativePointer, csp_systems_MaterialFactory, "csp_systems_Material");
|
|
1612
|
+
}
|
|
1613
|
+
ProxyClassFactories["csp_common_Array_csp_systems_Material"] =
|
|
1614
|
+
csp_common_Array_csp_systems_MaterialFactory;
|
|
1596
1615
|
function csp_common_Array_csp_systems_VariantOptionInfoFactory(nativePointer) {
|
|
1597
1616
|
return new Common.Array(nativePointer, csp_systems_VariantOptionInfoFactory, "csp_systems_VariantOptionInfo");
|
|
1598
1617
|
}
|
|
@@ -2741,9 +2760,21 @@ export var Multiplayer;
|
|
|
2741
2760
|
})(Systems || (Systems = {}));
|
|
2742
2761
|
(function (Systems) {
|
|
2743
2762
|
/**
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2763
|
+
* @description Enum representing the shader type of a material.
|
|
2764
|
+
@details This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
2765
|
+
*/
|
|
2766
|
+
let EShaderType;
|
|
2767
|
+
(function (EShaderType) {
|
|
2768
|
+
EShaderType[EShaderType["Standard"] = 0] = "Standard";
|
|
2769
|
+
EShaderType[EShaderType["AlphaVideo"] = 1] = "AlphaVideo";
|
|
2770
|
+
})(EShaderType = Systems.EShaderType || (Systems.EShaderType = {}));
|
|
2771
|
+
})(Systems || (Systems = {}));
|
|
2772
|
+
(function (Systems) {
|
|
2773
|
+
/**
|
|
2774
|
+
* @description Defines how the alpha value of a material is interpreted.
|
|
2775
|
+
@details The alpha value is taken from the fourth component of the base color for metallic-roughness material model.
|
|
2776
|
+
* This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
2777
|
+
*/
|
|
2747
2778
|
let EAlphaMode;
|
|
2748
2779
|
(function (EAlphaMode) {
|
|
2749
2780
|
EAlphaMode[EAlphaMode["Opaque"] = 0] = "Opaque";
|
|
@@ -2753,12 +2784,30 @@ export var Multiplayer;
|
|
|
2753
2784
|
})(Systems || (Systems = {}));
|
|
2754
2785
|
(function (Systems) {
|
|
2755
2786
|
/**
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2787
|
+
* @description Defines how the alpha value of a material is interpreted.
|
|
2788
|
+
@details The alpha value is taken from the fourth component of the base color for metallic-roughness material model, unless the shader supports
|
|
2789
|
+
* EColorChannel.
|
|
2790
|
+
* This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
2791
|
+
*/
|
|
2792
|
+
let EBlendMode;
|
|
2793
|
+
(function (EBlendMode) {
|
|
2794
|
+
EBlendMode[EBlendMode["Normal"] = 0] = "Normal";
|
|
2795
|
+
EBlendMode[EBlendMode["Additive"] = 1] = "Additive";
|
|
2796
|
+
})(EBlendMode = Systems.EBlendMode || (Systems.EBlendMode = {}));
|
|
2797
|
+
})(Systems || (Systems = {}));
|
|
2798
|
+
(function (Systems) {
|
|
2799
|
+
/**
|
|
2800
|
+
* @description Defines where the alpha value is read from.
|
|
2801
|
+
@details The alpha value is usually taken from the fourth component of the base color but this allows is to be read from another channel.
|
|
2802
|
+
* This enum is to be used in conjunction with materials, which are managed via the AssetSystem.
|
|
2803
|
+
*/
|
|
2804
|
+
let EColorChannel;
|
|
2805
|
+
(function (EColorChannel) {
|
|
2806
|
+
EColorChannel[EColorChannel["R"] = 0] = "R";
|
|
2807
|
+
EColorChannel[EColorChannel["G"] = 1] = "G";
|
|
2808
|
+
EColorChannel[EColorChannel["B"] = 2] = "B";
|
|
2809
|
+
EColorChannel[EColorChannel["A"] = 3] = "A";
|
|
2810
|
+
})(EColorChannel = Systems.EColorChannel || (Systems.EColorChannel = {}));
|
|
2762
2811
|
})(Systems || (Systems = {}));
|
|
2763
2812
|
(function (Systems) {
|
|
2764
2813
|
/**
|
|
@@ -3224,6 +3273,18 @@ export class CSPFoundation {
|
|
|
3224
3273
|
Module._free(_ret);
|
|
3225
3274
|
return _nPtr;
|
|
3226
3275
|
}
|
|
3276
|
+
/**
|
|
3277
|
+
* @description Create an EndpointsURIs object containing URIs to the various services needed by CSP.
|
|
3278
|
+
* @param endpointRootURI - URI to the root of the cloud services.
|
|
3279
|
+
* @return EndpointURIs class with deduced endpoint URIs.
|
|
3280
|
+
*/
|
|
3281
|
+
static createEndpointsFromRoot(endpointRootURI) {
|
|
3282
|
+
var _ret = Module._malloc(8);
|
|
3283
|
+
Module.ccall("csp_CSPFoundation_CreateEndpointsFromRoot_EndpointURIs_StringRC", "void", ["number", "string"], [_ret, endpointRootURI]);
|
|
3284
|
+
var _nPtr = new EndpointURIs(getNativePointer(_ret));
|
|
3285
|
+
Module._free(_ret);
|
|
3286
|
+
return _nPtr;
|
|
3287
|
+
}
|
|
3227
3288
|
/**
|
|
3228
3289
|
* @description Sets a class containing all relevant Client info currently set for Foundation.
|
|
3229
3290
|
* Used internally to generate ClientUserAgentString.
|
|
@@ -11096,22 +11157,6 @@ export class CSPFoundation {
|
|
|
11096
11157
|
_result = _fixedValue;
|
|
11097
11158
|
return _result;
|
|
11098
11159
|
}
|
|
11099
|
-
/**
|
|
11100
|
-
* @description Finds a component by the given id.
|
|
11101
|
-
* /// Searchs through all components of all entites so should be used sparingly.
|
|
11102
|
-
* /// @param Id The id of the component to find.
|
|
11103
|
-
* @return A pointer to the found component which can be nullptr if the component is not found.
|
|
11104
|
-
*/
|
|
11105
|
-
findComponentById(id) {
|
|
11106
|
-
assert(Number.isInteger(id));
|
|
11107
|
-
assert(id >= Limits.UINT16_MIN);
|
|
11108
|
-
assert(id <= Limits.UINT16_MAX);
|
|
11109
|
-
var _ret = Module._malloc(8);
|
|
11110
|
-
Module.ccall("csp_multiplayer_SpaceEntitySystem_FindComponentById_ComponentBaseP_uint16_t", "void", ["number", "number", "number"], [_ret, this.pointer, id]);
|
|
11111
|
-
var _nPtr = new Multiplayer.ComponentBase(getNativePointer(_ret));
|
|
11112
|
-
Module._free(_ret);
|
|
11113
|
-
return _nPtr;
|
|
11114
|
-
}
|
|
11115
11160
|
/**
|
|
11116
11161
|
* @description Retrieve the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
11117
11162
|
* @return True if enabled, false otherwise.
|
|
@@ -12402,7 +12447,7 @@ export class CSPFoundation {
|
|
|
12402
12447
|
})(Systems || (Systems = {}));
|
|
12403
12448
|
(function (Systems) {
|
|
12404
12449
|
/**
|
|
12405
|
-
@ingroup Asset System
|
|
12450
|
+
@ingroup Asset System.
|
|
12406
12451
|
* @description Base class for a material.
|
|
12407
12452
|
*/
|
|
12408
12453
|
class Material extends NativeClassWrapper {
|
|
@@ -12411,8 +12456,8 @@ export class CSPFoundation {
|
|
|
12411
12456
|
super(pointer);
|
|
12412
12457
|
}
|
|
12413
12458
|
/**
|
|
12414
|
-
* @description Gets the user-defined name of the material
|
|
12415
|
-
* @return
|
|
12459
|
+
* @description Gets the user-defined name of the material.
|
|
12460
|
+
* @return Returns the material name.
|
|
12416
12461
|
*/
|
|
12417
12462
|
getName() {
|
|
12418
12463
|
let _result = Module.ccall("csp_systems_Material_GetNameC_StringRC", "number", ["number"], [this.pointer]);
|
|
@@ -12422,8 +12467,24 @@ export class CSPFoundation {
|
|
|
12422
12467
|
return _result;
|
|
12423
12468
|
}
|
|
12424
12469
|
/**
|
|
12425
|
-
* @description Gets the
|
|
12426
|
-
* @return
|
|
12470
|
+
* @description Gets the shader type of the material.
|
|
12471
|
+
* @return Returns the shader type.
|
|
12472
|
+
*/
|
|
12473
|
+
getShaderType() {
|
|
12474
|
+
let _result = Module.ccall("csp_systems_Material_GetShaderTypeC_EShaderTypeC", "number", ["number"], [this.pointer]);
|
|
12475
|
+
return _result;
|
|
12476
|
+
}
|
|
12477
|
+
/**
|
|
12478
|
+
* @description Gets the version of the material.
|
|
12479
|
+
* @return Returns the version of the material.
|
|
12480
|
+
*/
|
|
12481
|
+
getVersion() {
|
|
12482
|
+
let _result = Module.ccall("csp_systems_Material_GetVersionC_intC", "number", ["number"], [this.pointer]);
|
|
12483
|
+
return _result;
|
|
12484
|
+
}
|
|
12485
|
+
/**
|
|
12486
|
+
* @description Gets the collection id for the material.
|
|
12487
|
+
* @return Returns the collection id.
|
|
12427
12488
|
*/
|
|
12428
12489
|
getMaterialCollectionId() {
|
|
12429
12490
|
let _result = Module.ccall("csp_systems_Material_GetMaterialCollectionIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
@@ -12433,8 +12494,8 @@ export class CSPFoundation {
|
|
|
12433
12494
|
return _result;
|
|
12434
12495
|
}
|
|
12435
12496
|
/**
|
|
12436
|
-
* @description Gets the id for the material
|
|
12437
|
-
* @return
|
|
12497
|
+
* @description Gets the id for the material.
|
|
12498
|
+
* @return Returns the material id.
|
|
12438
12499
|
*/
|
|
12439
12500
|
getMaterialId() {
|
|
12440
12501
|
let _result = Module.ccall("csp_systems_Material_GetMaterialIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
@@ -12444,10 +12505,10 @@ export class CSPFoundation {
|
|
|
12444
12505
|
return _result;
|
|
12445
12506
|
}
|
|
12446
12507
|
/**
|
|
12447
|
-
* @description
|
|
12508
|
+
* @description Constructs a material bound to an AssetCollection and Asset.
|
|
12448
12509
|
* @param name - The name of the material.
|
|
12449
|
-
* @param materialCollectionId - The asset collection
|
|
12450
|
-
* @param materialId - The asset where the material info is stored
|
|
12510
|
+
* @param materialCollectionId - The asset collection which references the associated material asset.
|
|
12511
|
+
* @param materialId - The asset where the material info is stored.
|
|
12451
12512
|
*/
|
|
12452
12513
|
static create_name_materialCollectionId_materialId(name, materialCollectionId, materialId) {
|
|
12453
12514
|
var _ptr = Module._malloc(8);
|
|
@@ -12455,9 +12516,17 @@ export class CSPFoundation {
|
|
|
12455
12516
|
var _nPtr = getNativePointer(_ptr);
|
|
12456
12517
|
return new Material(_nPtr);
|
|
12457
12518
|
}
|
|
12458
|
-
|
|
12519
|
+
/**
|
|
12520
|
+
* @description Constructs a versioned material bound to an AssetCollection and Asset.
|
|
12521
|
+
* @param name - The name of the material.
|
|
12522
|
+
* @param materialCollectionId - The asset collection which references the associated material asset.
|
|
12523
|
+
* @param materialId - The asset where the material info is stored.
|
|
12524
|
+
* @param type - The material shader type.
|
|
12525
|
+
* @param version - The material version.
|
|
12526
|
+
*/
|
|
12527
|
+
static create_name_materialCollectionId_materialId_type_version(name, materialCollectionId, materialId, type, version) {
|
|
12459
12528
|
var _ptr = Module._malloc(8);
|
|
12460
|
-
Module.ccall("
|
|
12529
|
+
Module.ccall("csp_systems_Material_Ctor_StringRC_StringRC_StringRC_EShaderType_intC", "void", ["number", "string", "string", "string", "number", "number"], [_ptr, name, materialCollectionId, materialId, type, version]);
|
|
12461
12530
|
var _nPtr = getNativePointer(_ptr);
|
|
12462
12531
|
return new Material(_nPtr);
|
|
12463
12532
|
}
|
|
@@ -12467,6 +12536,12 @@ export class CSPFoundation {
|
|
|
12467
12536
|
this.disposed = true;
|
|
12468
12537
|
}
|
|
12469
12538
|
}
|
|
12539
|
+
static create() {
|
|
12540
|
+
var _ptr = Module._malloc(8);
|
|
12541
|
+
Module.ccall("csp_systems_Material_Ctor", "void", ["number"], [_ptr]);
|
|
12542
|
+
var _nPtr = getNativePointer(_ptr);
|
|
12543
|
+
return new Material(_nPtr);
|
|
12544
|
+
}
|
|
12470
12545
|
}
|
|
12471
12546
|
Systems.Material = Material;
|
|
12472
12547
|
})(Systems || (Systems = {}));
|
|
@@ -14909,6 +14984,60 @@ export class CSPFoundation {
|
|
|
14909
14984
|
}
|
|
14910
14985
|
Systems.AgoraUserTokenParams = AgoraUserTokenParams;
|
|
14911
14986
|
})(Systems || (Systems = {}));
|
|
14987
|
+
(function (Systems) {
|
|
14988
|
+
/**
|
|
14989
|
+
* @description Data structure for a custom service proxy posting, giving service name, operation name, set help and parameters
|
|
14990
|
+
*/
|
|
14991
|
+
class TokenInfoParams extends NativeClassWrapper {
|
|
14992
|
+
/** @internal */
|
|
14993
|
+
constructor(pointer) {
|
|
14994
|
+
super(pointer);
|
|
14995
|
+
}
|
|
14996
|
+
static create() {
|
|
14997
|
+
var _ptr = Module._malloc(8);
|
|
14998
|
+
Module.ccall("csp_systems_TokenInfoParams_Ctor", "void", ["number"], [_ptr]);
|
|
14999
|
+
var _nPtr = getNativePointer(_ptr);
|
|
15000
|
+
return new TokenInfoParams(_nPtr);
|
|
15001
|
+
}
|
|
15002
|
+
delete() {
|
|
15003
|
+
if (this.ownsPointer && !this.disposed) {
|
|
15004
|
+
Module.ccall("csp_systems_TokenInfoParams_Dtor", "void", ["number"], [this.pointer]);
|
|
15005
|
+
this.disposed = true;
|
|
15006
|
+
}
|
|
15007
|
+
}
|
|
15008
|
+
get serviceName() {
|
|
15009
|
+
let _result = Module.ccall("csp_systems_TokenInfoParams__Get_ServiceName", "string", ["number"], [this.pointer]);
|
|
15010
|
+
return _result;
|
|
15011
|
+
}
|
|
15012
|
+
set serviceName(value) {
|
|
15013
|
+
Module.ccall("csp_systems_TokenInfoParams__Set_ServiceName", "void", ["number", "string"], [this.pointer, value]);
|
|
15014
|
+
}
|
|
15015
|
+
get operationName() {
|
|
15016
|
+
let _result = Module.ccall("csp_systems_TokenInfoParams__Get_OperationName", "string", ["number"], [this.pointer]);
|
|
15017
|
+
return _result;
|
|
15018
|
+
}
|
|
15019
|
+
set operationName(value) {
|
|
15020
|
+
Module.ccall("csp_systems_TokenInfoParams__Set_OperationName", "void", ["number", "string"], [this.pointer, value]);
|
|
15021
|
+
}
|
|
15022
|
+
get setHelp() {
|
|
15023
|
+
let _result = Module.ccall("csp_systems_TokenInfoParams__Get_SetHelp", "boolean", ["number"], [this.pointer]);
|
|
15024
|
+
return _result;
|
|
15025
|
+
}
|
|
15026
|
+
set setHelp(value) {
|
|
15027
|
+
Module.ccall("csp_systems_TokenInfoParams__Set_SetHelp", "void", ["number", "boolean"], [this.pointer, value]);
|
|
15028
|
+
}
|
|
15029
|
+
get parameters() {
|
|
15030
|
+
const _ptr = Module._malloc(8);
|
|
15031
|
+
Module.ccall("csp_systems_TokenInfoParams__Get_Parameters", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
15032
|
+
const _nPtr = getNativePointer(_ptr);
|
|
15033
|
+
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
15034
|
+
}
|
|
15035
|
+
set parameters(value) {
|
|
15036
|
+
Module.ccall("csp_systems_TokenInfoParams__Set_Parameters", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15037
|
+
}
|
|
15038
|
+
}
|
|
15039
|
+
Systems.TokenInfoParams = TokenInfoParams;
|
|
15040
|
+
})(Systems || (Systems = {}));
|
|
14912
15041
|
(function (Systems) {
|
|
14913
15042
|
/**
|
|
14914
15043
|
* @description A basic class abstraction for a user profile, including User Id and name, a display name, avatar information
|
|
@@ -20026,25 +20155,6 @@ export class CSPFoundation {
|
|
|
20026
20155
|
setVideoPlayerSourceType(value) {
|
|
20027
20156
|
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetVideoPlayerSourceType_void_VideoPlayerSourceType", "void", ["number", "number"], [this.pointer, value]);
|
|
20028
20157
|
}
|
|
20029
|
-
/**
|
|
20030
|
-
* @description Gets the Id of the mesh component that the video should be rendered to
|
|
20031
|
-
*/
|
|
20032
|
-
getMeshComponentId() {
|
|
20033
|
-
let _result = Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_GetMeshComponentIdC_uint16_t", "number", ["number"], [this.pointer]);
|
|
20034
|
-
const _unfixedValue = _result;
|
|
20035
|
-
let _fixedValue = _unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
20036
|
-
_result = _fixedValue;
|
|
20037
|
-
return _result;
|
|
20038
|
-
}
|
|
20039
|
-
/**
|
|
20040
|
-
* @description Sets the Id of the mesh component that the video should be rendered to
|
|
20041
|
-
*/
|
|
20042
|
-
setMeshComponentId(id) {
|
|
20043
|
-
assert(Number.isInteger(id));
|
|
20044
|
-
assert(id >= Limits.UINT16_MIN);
|
|
20045
|
-
assert(id <= Limits.UINT16_MAX);
|
|
20046
|
-
Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetMeshComponentId_void_uint16_t", "void", ["number", "number"], [this.pointer, id]);
|
|
20047
|
-
}
|
|
20048
20158
|
/**
|
|
20049
20159
|
* \addtogroup IVisibleComponent
|
|
20050
20160
|
@{
|
|
@@ -20842,6 +20952,220 @@ export class CSPFoundation {
|
|
|
20842
20952
|
}
|
|
20843
20953
|
Systems.HTTPHeadersResult = HTTPHeadersResult;
|
|
20844
20954
|
})(Systems || (Systems = {}));
|
|
20955
|
+
(function (Systems) {
|
|
20956
|
+
/**
|
|
20957
|
+
@ingroup Asset System
|
|
20958
|
+
* @description Data class which represents an Alpha Video material.
|
|
20959
|
+
*/
|
|
20960
|
+
class AlphaVideoMaterial extends Systems.Material {
|
|
20961
|
+
/** @internal */
|
|
20962
|
+
constructor(pointer) {
|
|
20963
|
+
super(pointer);
|
|
20964
|
+
}
|
|
20965
|
+
static fromMaterial(baseInstance) {
|
|
20966
|
+
const nativeClassWrapper = baseInstance;
|
|
20967
|
+
return new Systems.AlphaVideoMaterial(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
20968
|
+
}
|
|
20969
|
+
/**
|
|
20970
|
+
* @description Sets the color texture.
|
|
20971
|
+
@details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the color of the material.
|
|
20972
|
+
* If the fourth component (A) is present, it represents the linear alpha coverage of the material.
|
|
20973
|
+
* Otherwise, the alpha coverage is equal to 1.0.
|
|
20974
|
+
* The material.blendMode property defines how the alpha is blended when alphaMode is set to BLEND.
|
|
20975
|
+
* The material.readAlphaFromChannel property defines which color channel to read the alpha values from.
|
|
20976
|
+
* The stored texels MUST NOT be premultiplied.
|
|
20977
|
+
* @param texture - The material color texture.
|
|
20978
|
+
@pre If the fourth component (A) is undefined, the texture MUST be sampled as having 1.0 in all components.
|
|
20979
|
+
*/
|
|
20980
|
+
setColorTexture(texture) {
|
|
20981
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetColorTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
|
|
20982
|
+
}
|
|
20983
|
+
/**
|
|
20984
|
+
* @description Gets the color texture.
|
|
20985
|
+
* @return The material color texture.
|
|
20986
|
+
*/
|
|
20987
|
+
getColorTexture() {
|
|
20988
|
+
var _ret = Module._malloc(8);
|
|
20989
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_GetColorTextureC_TextureInfoRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
20990
|
+
var _nPtr = new Systems.TextureInfo(getNativePointer(_ret));
|
|
20991
|
+
Module._free(_ret);
|
|
20992
|
+
return _nPtr;
|
|
20993
|
+
}
|
|
20994
|
+
/**
|
|
20995
|
+
* @description Sets the doubleSided property which specifies whether the material is double sided.
|
|
20996
|
+
@details When this value is false, back-face culling is enabled, i.e., only front-facing triangles are rendered.
|
|
20997
|
+
* When this value is true, back-face culling is disabled and double sided lighting is enabled.
|
|
20998
|
+
* @param doubleSided - The double sided value.
|
|
20999
|
+
*/
|
|
21000
|
+
setDoubleSided(doubleSided) {
|
|
21001
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetDoubleSided_void_bool", "void", ["number", "boolean"], [this.pointer, doubleSided]);
|
|
21002
|
+
}
|
|
21003
|
+
/**
|
|
21004
|
+
* @description Gets the double sided value.
|
|
21005
|
+
* @return The double sided value.
|
|
21006
|
+
*/
|
|
21007
|
+
getDoubleSided() {
|
|
21008
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetDoubleSidedC_bool", "boolean", ["number"], [this.pointer]);
|
|
21009
|
+
return _result;
|
|
21010
|
+
}
|
|
21011
|
+
/**
|
|
21012
|
+
* @description Sets whether the material is emissive, if not material should be lit by the scene lighting.
|
|
21013
|
+
* @param isEmissive - The emissive value.
|
|
21014
|
+
*/
|
|
21015
|
+
setIsEmissive(isEmissive) {
|
|
21016
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetIsEmissive_void_bool", "void", ["number", "boolean"], [this.pointer, isEmissive]);
|
|
21017
|
+
}
|
|
21018
|
+
/**
|
|
21019
|
+
* @description Gets whether the material is emissive, if not material should be lit by the scene lighting.
|
|
21020
|
+
* @return Bool
|
|
21021
|
+
*/
|
|
21022
|
+
getIsEmissive() {
|
|
21023
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetIsEmissiveC_bool", "boolean", ["number"], [this.pointer]);
|
|
21024
|
+
return _result;
|
|
21025
|
+
}
|
|
21026
|
+
/**
|
|
21027
|
+
* @description Sets the color channel to read the alpha values from.
|
|
21028
|
+
* @param colorChannel - The color channel to read the alpha values from.
|
|
21029
|
+
*/
|
|
21030
|
+
setReadAlphaFromChannel(colorChannel) {
|
|
21031
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetReadAlphaFromChannel_void_EColorChannel", "void", ["number", "number"], [this.pointer, colorChannel]);
|
|
21032
|
+
}
|
|
21033
|
+
/**
|
|
21034
|
+
* @description Gets the color channel to read the alpha values from.
|
|
21035
|
+
* @return The color channel to read the alpha values from.
|
|
21036
|
+
*/
|
|
21037
|
+
getReadAlphaFromChannel() {
|
|
21038
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetReadAlphaFromChannelC_EColorChannel", "number", ["number"], [this.pointer]);
|
|
21039
|
+
return _result;
|
|
21040
|
+
}
|
|
21041
|
+
/**
|
|
21042
|
+
* @description Sets the mode to use for alpha blending.
|
|
21043
|
+
* @param mode - The mode to use for alpha blending.
|
|
21044
|
+
*/
|
|
21045
|
+
setBlendMode(mode) {
|
|
21046
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetBlendMode_void_EBlendMode", "void", ["number", "number"], [this.pointer, mode]);
|
|
21047
|
+
}
|
|
21048
|
+
/**
|
|
21049
|
+
* @description Gets the alpha blend mode.
|
|
21050
|
+
* @return The alpha blend mode.
|
|
21051
|
+
*/
|
|
21052
|
+
getBlendMode() {
|
|
21053
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetBlendModeC_EBlendMode", "number", ["number"], [this.pointer]);
|
|
21054
|
+
return _result;
|
|
21055
|
+
}
|
|
21056
|
+
/**
|
|
21057
|
+
* @description Sets the fresnel factor.
|
|
21058
|
+
* @param factor - The fresnel factor.
|
|
21059
|
+
*/
|
|
21060
|
+
setFresnelFactor(factor) {
|
|
21061
|
+
assert(factor >= Limits.FLOAT_MIN);
|
|
21062
|
+
assert(factor <= Limits.FLOAT_MAX);
|
|
21063
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetFresnelFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
|
|
21064
|
+
}
|
|
21065
|
+
/**
|
|
21066
|
+
* @description Gets the fresnel factor.
|
|
21067
|
+
* @return The fresnel factor.
|
|
21068
|
+
*/
|
|
21069
|
+
getFresnelFactor() {
|
|
21070
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetFresnelFactorC_float", "number", ["number"], [this.pointer]);
|
|
21071
|
+
return _result;
|
|
21072
|
+
}
|
|
21073
|
+
/**
|
|
21074
|
+
* @description Set the Material tint.
|
|
21075
|
+
* @param tint - The tint value.
|
|
21076
|
+
*/
|
|
21077
|
+
setTint(tint) {
|
|
21078
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetTint_void_Vector3RC", "void", ["number", "number"], [this.pointer, tint.pointer]);
|
|
21079
|
+
}
|
|
21080
|
+
/**
|
|
21081
|
+
* @description Get the Material tint.
|
|
21082
|
+
* @return The tint value.
|
|
21083
|
+
*/
|
|
21084
|
+
getTint() {
|
|
21085
|
+
var _ret = Module._malloc(8);
|
|
21086
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_GetTintC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
21087
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
21088
|
+
Module._free(_ret);
|
|
21089
|
+
return _nPtr;
|
|
21090
|
+
}
|
|
21091
|
+
/**
|
|
21092
|
+
* @description Set the alpha factor.
|
|
21093
|
+
* @param factor - The alpha factor.
|
|
21094
|
+
*/
|
|
21095
|
+
setAlphaFactor(factor) {
|
|
21096
|
+
assert(factor >= Limits.FLOAT_MIN);
|
|
21097
|
+
assert(factor <= Limits.FLOAT_MAX);
|
|
21098
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetAlphaFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
|
|
21099
|
+
}
|
|
21100
|
+
/**
|
|
21101
|
+
* @description Get the alpha factor.
|
|
21102
|
+
* @return The alpha factor.
|
|
21103
|
+
*/
|
|
21104
|
+
getAlphaFactor() {
|
|
21105
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetAlphaFactorC_float", "number", ["number"], [this.pointer]);
|
|
21106
|
+
return _result;
|
|
21107
|
+
}
|
|
21108
|
+
/**
|
|
21109
|
+
* @description Set the emissive intensity.
|
|
21110
|
+
* @param intensity - The emissive intensity.
|
|
21111
|
+
*/
|
|
21112
|
+
setEmissiveIntensity(intensity) {
|
|
21113
|
+
assert(intensity >= Limits.FLOAT_MIN);
|
|
21114
|
+
assert(intensity <= Limits.FLOAT_MAX);
|
|
21115
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetEmissiveIntensity_void_float", "void", ["number", "number"], [this.pointer, intensity]);
|
|
21116
|
+
}
|
|
21117
|
+
/**
|
|
21118
|
+
* @description Get the emissive intensity.
|
|
21119
|
+
* @return The emissive intensity.
|
|
21120
|
+
*/
|
|
21121
|
+
getEmissiveIntensity() {
|
|
21122
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetEmissiveIntensityC_float", "number", ["number"], [this.pointer]);
|
|
21123
|
+
return _result;
|
|
21124
|
+
}
|
|
21125
|
+
/**
|
|
21126
|
+
* @description Set the alpha mask.
|
|
21127
|
+
* @param mask - The alpha mask.
|
|
21128
|
+
*/
|
|
21129
|
+
setAlphaMask(mask) {
|
|
21130
|
+
assert(mask >= Limits.FLOAT_MIN);
|
|
21131
|
+
assert(mask <= Limits.FLOAT_MAX);
|
|
21132
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_SetAlphaMask_void_float", "void", ["number", "number"], [this.pointer, mask]);
|
|
21133
|
+
}
|
|
21134
|
+
/**
|
|
21135
|
+
* @description Get the alpha mask.
|
|
21136
|
+
* @return The alpha mask.
|
|
21137
|
+
*/
|
|
21138
|
+
getAlphaMask() {
|
|
21139
|
+
let _result = Module.ccall("csp_systems_AlphaVideoMaterial_GetAlphaMaskC_float", "number", ["number"], [this.pointer]);
|
|
21140
|
+
return _result;
|
|
21141
|
+
}
|
|
21142
|
+
/**
|
|
21143
|
+
* @description Constructor which links the material to an asset.
|
|
21144
|
+
* @param name - The name of the material.
|
|
21145
|
+
* @param materialCollectionId - The asset collection which holds the associated material asset.
|
|
21146
|
+
* @param materialId - The asset where the material info is stored.
|
|
21147
|
+
*/
|
|
21148
|
+
static create_name_materialCollectionId_materialId(name, materialCollectionId, materialId) {
|
|
21149
|
+
var _ptr = Module._malloc(8);
|
|
21150
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_Ctor_StringRC_StringRC_StringRC", "void", ["number", "string", "string", "string"], [_ptr, name, materialCollectionId, materialId]);
|
|
21151
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21152
|
+
return new AlphaVideoMaterial(_nPtr);
|
|
21153
|
+
}
|
|
21154
|
+
delete() {
|
|
21155
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21156
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_Dtor", "void", ["number"], [this.pointer]);
|
|
21157
|
+
this.disposed = true;
|
|
21158
|
+
}
|
|
21159
|
+
}
|
|
21160
|
+
static create() {
|
|
21161
|
+
var _ptr = Module._malloc(8);
|
|
21162
|
+
Module.ccall("csp_systems_AlphaVideoMaterial_Ctor", "void", ["number"], [_ptr]);
|
|
21163
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21164
|
+
return new AlphaVideoMaterial(_nPtr);
|
|
21165
|
+
}
|
|
21166
|
+
}
|
|
21167
|
+
Systems.AlphaVideoMaterial = AlphaVideoMaterial;
|
|
21168
|
+
})(Systems || (Systems = {}));
|
|
20845
21169
|
(function (Systems) {
|
|
20846
21170
|
/**
|
|
20847
21171
|
@ingroup Asset System
|
|
@@ -21784,12 +22108,13 @@ export class CSPFoundation {
|
|
|
21784
22108
|
/**
|
|
21785
22109
|
* @description Creates a new material backed by an AssetCollection/Asset.
|
|
21786
22110
|
* @param name - The name of the new material.
|
|
22111
|
+
* @param shaderType - The type of shader model the material is associated with.
|
|
21787
22112
|
* @param spaceId - The space id this material is associated with.
|
|
21788
22113
|
* @param metadata - The metadata to be associated with the created material.
|
|
21789
22114
|
* @param assetTags - Tags to be associated with the created material.
|
|
21790
22115
|
* @param callback - Callback when asynchronous task finishes.
|
|
21791
22116
|
*/
|
|
21792
|
-
async createMaterial(name, spaceId, metadata, assetTags) {
|
|
22117
|
+
async createMaterial(name, shaderType, spaceId, metadata, assetTags) {
|
|
21793
22118
|
var _resolve;
|
|
21794
22119
|
var _promise = new Promise((_r) => {
|
|
21795
22120
|
_resolve = _r;
|
|
@@ -21797,7 +22122,7 @@ export class CSPFoundation {
|
|
|
21797
22122
|
var _callbackPtr;
|
|
21798
22123
|
var _callback = (_stateObject__, result) => {
|
|
21799
22124
|
var _resultPtr = getNativePointer(result);
|
|
21800
|
-
var _resultInstance = new Systems.
|
|
22125
|
+
var _resultInstance = new Systems.MaterialResult(_resultPtr);
|
|
21801
22126
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21802
22127
|
return;
|
|
21803
22128
|
}
|
|
@@ -21805,9 +22130,19 @@ export class CSPFoundation {
|
|
|
21805
22130
|
Module.removeFunction(_callbackPtr);
|
|
21806
22131
|
};
|
|
21807
22132
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21808
|
-
Module.ccall("
|
|
22133
|
+
Module.ccall("csp_systems_AssetSystem_CreateMaterial_void_StringRC_EShaderTypeC_StringRC_MapR_ArrayRC_MaterialResultCallback", "void", [
|
|
22134
|
+
"number",
|
|
22135
|
+
"string",
|
|
22136
|
+
"number",
|
|
22137
|
+
"string",
|
|
22138
|
+
"number",
|
|
22139
|
+
"number",
|
|
22140
|
+
"number",
|
|
22141
|
+
"number",
|
|
22142
|
+
], [
|
|
21809
22143
|
this.pointer,
|
|
21810
22144
|
name,
|
|
22145
|
+
shaderType,
|
|
21811
22146
|
spaceId,
|
|
21812
22147
|
metadata.pointer,
|
|
21813
22148
|
assetTags.pointer,
|
|
@@ -21840,7 +22175,7 @@ export class CSPFoundation {
|
|
|
21840
22175
|
Module.removeFunction(_callbackPtr);
|
|
21841
22176
|
};
|
|
21842
22177
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21843
|
-
Module.ccall("
|
|
22178
|
+
Module.ccall("csp_systems_AssetSystem_UpdateMaterial_void_MaterialRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, material.pointer, _callbackPtr, 0]);
|
|
21844
22179
|
return _promise;
|
|
21845
22180
|
}
|
|
21846
22181
|
/**
|
|
@@ -21865,7 +22200,7 @@ export class CSPFoundation {
|
|
|
21865
22200
|
Module.removeFunction(_callbackPtr);
|
|
21866
22201
|
};
|
|
21867
22202
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21868
|
-
Module.ccall("
|
|
22203
|
+
Module.ccall("csp_systems_AssetSystem_DeleteMaterial_void_MaterialRC_NullResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, material.pointer, _callbackPtr, 0]);
|
|
21869
22204
|
return _promise;
|
|
21870
22205
|
}
|
|
21871
22206
|
/**
|
|
@@ -21881,7 +22216,7 @@ export class CSPFoundation {
|
|
|
21881
22216
|
var _callbackPtr;
|
|
21882
22217
|
var _callback = (_stateObject__, result) => {
|
|
21883
22218
|
var _resultPtr = getNativePointer(result);
|
|
21884
|
-
var _resultInstance = new Systems.
|
|
22219
|
+
var _resultInstance = new Systems.MaterialsResult(_resultPtr);
|
|
21885
22220
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21886
22221
|
return;
|
|
21887
22222
|
}
|
|
@@ -21889,7 +22224,7 @@ export class CSPFoundation {
|
|
|
21889
22224
|
Module.removeFunction(_callbackPtr);
|
|
21890
22225
|
};
|
|
21891
22226
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21892
|
-
Module.ccall("
|
|
22227
|
+
Module.ccall("csp_systems_AssetSystem_GetMaterials_void_StringRC_MaterialsResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
|
|
21893
22228
|
return _promise;
|
|
21894
22229
|
}
|
|
21895
22230
|
/**
|
|
@@ -21906,7 +22241,7 @@ export class CSPFoundation {
|
|
|
21906
22241
|
var _callbackPtr;
|
|
21907
22242
|
var _callback = (_stateObject__, result) => {
|
|
21908
22243
|
var _resultPtr = getNativePointer(result);
|
|
21909
|
-
var _resultInstance = new Systems.
|
|
22244
|
+
var _resultInstance = new Systems.MaterialResult(_resultPtr);
|
|
21910
22245
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21911
22246
|
return;
|
|
21912
22247
|
}
|
|
@@ -21914,7 +22249,7 @@ export class CSPFoundation {
|
|
|
21914
22249
|
Module.removeFunction(_callbackPtr);
|
|
21915
22250
|
};
|
|
21916
22251
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21917
|
-
Module.ccall("
|
|
22252
|
+
Module.ccall("csp_systems_AssetSystem_GetMaterial_void_StringRC_StringRC_MaterialResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, assetCollectionId, assetId, _callbackPtr, 0]);
|
|
21918
22253
|
return _promise;
|
|
21919
22254
|
}
|
|
21920
22255
|
/**
|
|
@@ -21971,26 +22306,26 @@ export class CSPFoundation {
|
|
|
21971
22306
|
return new Systems.GLTFMaterial(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
21972
22307
|
}
|
|
21973
22308
|
/**
|
|
21974
|
-
* Sets how
|
|
21975
|
-
* @param mode -
|
|
22309
|
+
* @description Sets the alpha mode which determines how the alpha value is interpreted.
|
|
22310
|
+
* @param mode - The alpha mode to set.
|
|
21976
22311
|
*/
|
|
21977
22312
|
setAlphaMode(mode) {
|
|
21978
22313
|
Module.ccall("csp_systems_GLTFMaterial_SetAlphaMode_void_EAlphaMode", "void", ["number", "number"], [this.pointer, mode]);
|
|
21979
22314
|
}
|
|
21980
22315
|
/**
|
|
21981
|
-
* Gets how
|
|
21982
|
-
* @return
|
|
22316
|
+
* @description Gets the alpha mode which determines how the alpha value is interpreted.
|
|
22317
|
+
* @return The alpha mode.
|
|
21983
22318
|
*/
|
|
21984
22319
|
getAlphaMode() {
|
|
21985
22320
|
let _result = Module.ccall("csp_systems_GLTFMaterial_GetAlphaModeC_EAlphaMode", "number", ["number"], [this.pointer]);
|
|
21986
22321
|
return _result;
|
|
21987
22322
|
}
|
|
21988
22323
|
/**
|
|
21989
|
-
* @description Sets the alpha cutoff value
|
|
21990
|
-
|
|
22324
|
+
* @description Sets the alpha cutoff value.
|
|
22325
|
+
@details When alphaMode is set to MASK the alphaCutoff property specifies the cutoff threshold.
|
|
21991
22326
|
* If the alpha value is greater than or equal to the alphaCutoff value then it is rendered as fully opaque,
|
|
21992
|
-
* otherwise, it is rendered as fully transparent. alphaCutoff value is ignored for other modes.
|
|
21993
|
-
* @param cutoff -
|
|
22327
|
+
* otherwise, it is rendered as fully transparent. The alphaCutoff value is ignored for other modes.
|
|
22328
|
+
* @param cutoff - The alpha cutoff value to set.
|
|
21994
22329
|
*/
|
|
21995
22330
|
setAlphaCutoff(cutoff) {
|
|
21996
22331
|
assert(cutoff >= Limits.FLOAT_MIN);
|
|
@@ -21998,8 +22333,8 @@ export class CSPFoundation {
|
|
|
21998
22333
|
Module.ccall("csp_systems_GLTFMaterial_SetAlphaCutoff_void_float", "void", ["number", "number"], [this.pointer, cutoff]);
|
|
21999
22334
|
}
|
|
22000
22335
|
/**
|
|
22001
|
-
* Gets the alpha cutoff value
|
|
22002
|
-
* @return
|
|
22336
|
+
* @description Gets the alpha cutoff value.
|
|
22337
|
+
* @return The alpha cutoff value.
|
|
22003
22338
|
*/
|
|
22004
22339
|
getAlphaCutoff() {
|
|
22005
22340
|
let _result = Module.ccall("csp_systems_GLTFMaterial_GetAlphaCutoffC_float", "number", ["number"], [this.pointer]);
|
|
@@ -22007,16 +22342,16 @@ export class CSPFoundation {
|
|
|
22007
22342
|
}
|
|
22008
22343
|
/**
|
|
22009
22344
|
* @description Sets the doubleSided property which specifies whether the material is double sided.
|
|
22010
|
-
|
|
22345
|
+
@details When this value is false, back - face culling is enabled, i.e., only front-facing triangles are rendered.
|
|
22011
22346
|
* When this value is true, back - face culling is disabled and double sided lighting is enabled.
|
|
22012
|
-
* @param doubleSided -
|
|
22347
|
+
* @param doubleSided - The double sided value to set.
|
|
22013
22348
|
*/
|
|
22014
22349
|
setDoubleSided(doubleSided) {
|
|
22015
22350
|
Module.ccall("csp_systems_GLTFMaterial_SetDoubleSided_void_bool", "void", ["number", "boolean"], [this.pointer, doubleSided]);
|
|
22016
22351
|
}
|
|
22017
22352
|
/**
|
|
22018
|
-
* @description Gets the double sided value
|
|
22019
|
-
* @return
|
|
22353
|
+
* @description Gets the double sided value.
|
|
22354
|
+
* @return The double sided value.
|
|
22020
22355
|
*/
|
|
22021
22356
|
getDoubleSided() {
|
|
22022
22357
|
let _result = Module.ccall("csp_systems_GLTFMaterial_GetDoubleSidedC_bool", "boolean", ["number"], [this.pointer]);
|
|
@@ -22024,15 +22359,15 @@ export class CSPFoundation {
|
|
|
22024
22359
|
}
|
|
22025
22360
|
/**
|
|
22026
22361
|
* @description Sets the factors for the base color of the material.
|
|
22027
|
-
|
|
22028
|
-
* @param factor -
|
|
22362
|
+
@details This value defines linear multipliers for the sampled texels of the base color texture.
|
|
22363
|
+
* @param factor - The base color factor to set.
|
|
22029
22364
|
*/
|
|
22030
22365
|
setBaseColorFactor(factor) {
|
|
22031
22366
|
Module.ccall("csp_systems_GLTFMaterial_SetBaseColorFactor_void_Vector4RC", "void", ["number", "number"], [this.pointer, factor.pointer]);
|
|
22032
22367
|
}
|
|
22033
22368
|
/**
|
|
22034
|
-
* @description Gets the factor of the base color texture
|
|
22035
|
-
* @return
|
|
22369
|
+
* @description Gets the factor of the base color texture.
|
|
22370
|
+
* @return The base color factor.
|
|
22036
22371
|
*/
|
|
22037
22372
|
getBaseColorFactor() {
|
|
22038
22373
|
var _ret = Module._malloc(8);
|
|
@@ -22043,8 +22378,8 @@ export class CSPFoundation {
|
|
|
22043
22378
|
}
|
|
22044
22379
|
/**
|
|
22045
22380
|
* @description Sets the factor for the metalness of the material.
|
|
22046
|
-
|
|
22047
|
-
* @param factor -
|
|
22381
|
+
@details This value defines a linear multiplier for the sampled metalness values of the metallic-roughness texture.
|
|
22382
|
+
* @param factor - The metallic factor to set.
|
|
22048
22383
|
*/
|
|
22049
22384
|
setMetallicFactor(factor) {
|
|
22050
22385
|
assert(factor >= Limits.FLOAT_MIN);
|
|
@@ -22052,8 +22387,8 @@ export class CSPFoundation {
|
|
|
22052
22387
|
Module.ccall("csp_systems_GLTFMaterial_SetMetallicFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
|
|
22053
22388
|
}
|
|
22054
22389
|
/**
|
|
22055
|
-
* @description Gets the factor of the metallic texture
|
|
22056
|
-
* @return
|
|
22390
|
+
* @description Gets the factor of the metallic texture.
|
|
22391
|
+
* @return The metallic factor.
|
|
22057
22392
|
*/
|
|
22058
22393
|
getMetallicFactor() {
|
|
22059
22394
|
let _result = Module.ccall("csp_systems_GLTFMaterial_GetMetallicFactorC_float", "number", ["number"], [this.pointer]);
|
|
@@ -22061,8 +22396,8 @@ export class CSPFoundation {
|
|
|
22061
22396
|
}
|
|
22062
22397
|
/**
|
|
22063
22398
|
* @description Sets the factor for the roughness of the material.
|
|
22064
|
-
|
|
22065
|
-
* @param factor -
|
|
22399
|
+
@details This value defines a linear multiplier for the sampled roughness values of the metallic-roughness texture.
|
|
22400
|
+
* @param factor - The roughness factor to set.
|
|
22066
22401
|
*/
|
|
22067
22402
|
setRoughnessFactor(factor) {
|
|
22068
22403
|
assert(factor >= Limits.FLOAT_MIN);
|
|
@@ -22070,8 +22405,8 @@ export class CSPFoundation {
|
|
|
22070
22405
|
Module.ccall("csp_systems_GLTFMaterial_SetRoughnessFactor_void_float", "void", ["number", "number"], [this.pointer, factor]);
|
|
22071
22406
|
}
|
|
22072
22407
|
/**
|
|
22073
|
-
* @description Gets the factor of the roughness texture
|
|
22074
|
-
* @return
|
|
22408
|
+
* @description Gets the factor of the roughness texture.
|
|
22409
|
+
* @return The roughness factor.
|
|
22075
22410
|
*/
|
|
22076
22411
|
getRoughnessFactor() {
|
|
22077
22412
|
let _result = Module.ccall("csp_systems_GLTFMaterial_GetRoughnessFactorC_float", "number", ["number"], [this.pointer]);
|
|
@@ -22079,15 +22414,15 @@ export class CSPFoundation {
|
|
|
22079
22414
|
}
|
|
22080
22415
|
/**
|
|
22081
22416
|
* @description Sets factors for the emissive color of the material.
|
|
22082
|
-
|
|
22083
|
-
* @param factor -
|
|
22417
|
+
@details This value defines linear multipliers for the sampled texels of the emissive texture.
|
|
22418
|
+
* @param factor - The emissive factor to set.
|
|
22084
22419
|
*/
|
|
22085
22420
|
setEmissiveFactor(factor) {
|
|
22086
22421
|
Module.ccall("csp_systems_GLTFMaterial_SetEmissiveFactor_void_Vector3RC", "void", ["number", "number"], [this.pointer, factor.pointer]);
|
|
22087
22422
|
}
|
|
22088
22423
|
/**
|
|
22089
|
-
* @description Gets the factor of the emissive color texture
|
|
22090
|
-
* @return
|
|
22424
|
+
* @description Gets the factor of the emissive color texture.
|
|
22425
|
+
* @return The emissive factor.
|
|
22091
22426
|
*/
|
|
22092
22427
|
getEmissiveFactor() {
|
|
22093
22428
|
var _ret = Module._malloc(8);
|
|
@@ -22097,20 +22432,20 @@ export class CSPFoundation {
|
|
|
22097
22432
|
return _nPtr;
|
|
22098
22433
|
}
|
|
22099
22434
|
/**
|
|
22100
|
-
* @description Sets the base color texture.
|
|
22101
|
-
|
|
22435
|
+
* @description Sets the base color texture.
|
|
22436
|
+
@details The first three components (RGB) MUST be encoded with the sRGB transfer function. They specify the base color of the material.
|
|
22102
22437
|
* If the fourth component (A) is present, it represents the linear alpha coverage of the material.
|
|
22103
22438
|
* Otherwise, the alpha coverage is equal to 1.0. The material.alphaMode property specifies how alpha is interpreted.
|
|
22104
22439
|
* The stored texels MUST NOT be premultiplied.
|
|
22105
22440
|
* When undefined, the texture MUST be sampled as having 1.0 in all components.
|
|
22106
|
-
* @param texture -
|
|
22441
|
+
* @param texture - The base color texture to set.
|
|
22107
22442
|
*/
|
|
22108
22443
|
setBaseColorTexture(texture) {
|
|
22109
22444
|
Module.ccall("csp_systems_GLTFMaterial_SetBaseColorTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
|
|
22110
22445
|
}
|
|
22111
22446
|
/**
|
|
22112
|
-
* @description Gets the base color texture
|
|
22113
|
-
* @return
|
|
22447
|
+
* @description Gets the base color texture.
|
|
22448
|
+
* @return The base color texture.
|
|
22114
22449
|
*/
|
|
22115
22450
|
getBaseColorTexture() {
|
|
22116
22451
|
var _ret = Module._malloc(8);
|
|
@@ -22121,19 +22456,19 @@ export class CSPFoundation {
|
|
|
22121
22456
|
}
|
|
22122
22457
|
/**
|
|
22123
22458
|
* @description Sets the metallic-roughness texture.
|
|
22124
|
-
|
|
22459
|
+
@details The metalness values are sampled from the B channel.
|
|
22125
22460
|
* The roughness values are sampled from the G channel.
|
|
22126
22461
|
* These values MUST be encoded with a linear transfer function.
|
|
22127
22462
|
* If other channels are present (R or A), they MUST be ignored for metallic-roughness calculations.
|
|
22128
22463
|
* When undefined, the texture MUST be sampled as having 1.0 in G and B components.
|
|
22129
|
-
* @param texture -
|
|
22464
|
+
* @param texture - The metallic-roughness texture to set.
|
|
22130
22465
|
*/
|
|
22131
22466
|
setMetallicRoughnessTexture(texture) {
|
|
22132
22467
|
Module.ccall("csp_systems_GLTFMaterial_SetMetallicRoughnessTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
|
|
22133
22468
|
}
|
|
22134
22469
|
/**
|
|
22135
|
-
* @description Gets the metallic-roughness texture
|
|
22136
|
-
* @return
|
|
22470
|
+
* @description Gets the metallic-roughness texture.
|
|
22471
|
+
* @return The metallic-roughness texture.
|
|
22137
22472
|
*/
|
|
22138
22473
|
getMetallicRoughnessTexture() {
|
|
22139
22474
|
var _ret = Module._malloc(8);
|
|
@@ -22144,18 +22479,18 @@ export class CSPFoundation {
|
|
|
22144
22479
|
}
|
|
22145
22480
|
/**
|
|
22146
22481
|
* @description Sets the tangent space normal texture.
|
|
22147
|
-
|
|
22482
|
+
@details The texture encodes RGB components with linear transfer function.
|
|
22148
22483
|
* Each texel represents the XYZ components of a normal vector in tangent space.
|
|
22149
22484
|
* The normal vectors use the convention +X is right and +Y is up. +Z points toward the viewer.
|
|
22150
22485
|
* If a fourth component (A) is present, it MUST be ignored. When undefined, the material does not have a tangent space normal texture.
|
|
22151
|
-
* @param texture -
|
|
22486
|
+
* @param texture - The normal texture to set.
|
|
22152
22487
|
*/
|
|
22153
22488
|
setNormalTexture(texture) {
|
|
22154
22489
|
Module.ccall("csp_systems_GLTFMaterial_SetNormalTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
|
|
22155
22490
|
}
|
|
22156
22491
|
/**
|
|
22157
22492
|
* @description Gets the tangent space normal texture.
|
|
22158
|
-
* @return
|
|
22493
|
+
* @return The normal texture.
|
|
22159
22494
|
*/
|
|
22160
22495
|
getNormalTexture() {
|
|
22161
22496
|
var _ret = Module._malloc(8);
|
|
@@ -22166,18 +22501,18 @@ export class CSPFoundation {
|
|
|
22166
22501
|
}
|
|
22167
22502
|
/**
|
|
22168
22503
|
* @description Sets the occlusion texture.
|
|
22169
|
-
|
|
22504
|
+
@details The occlusion values are linearly sampled from the R channel.
|
|
22170
22505
|
* Higher values indicate areas that receive full indirect lighting and lower values indicate no indirect lighting.
|
|
22171
22506
|
* If other channels are present (GBA), they MUST be ignored for occlusion calculations.
|
|
22172
22507
|
* When undefined, the material does not have an occlusion texture.
|
|
22173
|
-
* @param texture -
|
|
22508
|
+
* @param texture - The occlusion texture to set.
|
|
22174
22509
|
*/
|
|
22175
22510
|
setOcclusionTexture(texture) {
|
|
22176
22511
|
Module.ccall("csp_systems_GLTFMaterial_SetOcclusionTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
|
|
22177
22512
|
}
|
|
22178
22513
|
/**
|
|
22179
|
-
* @description Gets the occlusion texture
|
|
22180
|
-
* @return
|
|
22514
|
+
* @description Gets the occlusion texture.
|
|
22515
|
+
* @return The occlusion texture.
|
|
22181
22516
|
*/
|
|
22182
22517
|
getOcclusionTexture() {
|
|
22183
22518
|
var _ret = Module._malloc(8);
|
|
@@ -22188,18 +22523,18 @@ export class CSPFoundation {
|
|
|
22188
22523
|
}
|
|
22189
22524
|
/**
|
|
22190
22525
|
* @description Sets the emissive texture.
|
|
22191
|
-
|
|
22526
|
+
@details It controls the color and intensity of the light being emitted by the material.
|
|
22192
22527
|
* This texture contains RGB components encoded with the sRGB transfer function.
|
|
22193
22528
|
* If a fourth component (A) is present, it MUST be ignored.
|
|
22194
22529
|
* When undefined, the texture MUST be sampled as having 1.0 in RGB components.
|
|
22195
|
-
* @param texture -
|
|
22530
|
+
* @param texture - The emissive texture to set.
|
|
22196
22531
|
*/
|
|
22197
22532
|
setEmissiveTexture(texture) {
|
|
22198
22533
|
Module.ccall("csp_systems_GLTFMaterial_SetEmissiveTexture_void_TextureInfoRC", "void", ["number", "number"], [this.pointer, texture.pointer]);
|
|
22199
22534
|
}
|
|
22200
22535
|
/**
|
|
22201
|
-
* @description Gets the emissive texture
|
|
22202
|
-
* @return
|
|
22536
|
+
* @description Gets the emissive texture.
|
|
22537
|
+
* @return The emissive texture.
|
|
22203
22538
|
*/
|
|
22204
22539
|
getEmissiveTexture() {
|
|
22205
22540
|
var _ret = Module._malloc(8);
|
|
@@ -22209,20 +22544,14 @@ export class CSPFoundation {
|
|
|
22209
22544
|
return _nPtr;
|
|
22210
22545
|
}
|
|
22211
22546
|
/**
|
|
22212
|
-
* @description Constructor which links the material to an asset
|
|
22547
|
+
* @description Constructor which links the material to an asset.
|
|
22213
22548
|
* @param name - The name of the material.
|
|
22214
|
-
* @param
|
|
22215
|
-
* @param
|
|
22549
|
+
* @param materialCollectionId - The asset collection which holds the associated material asset.
|
|
22550
|
+
* @param materialId - The asset where the material info is stored.
|
|
22216
22551
|
*/
|
|
22217
|
-
static
|
|
22552
|
+
static create_name_materialCollectionId_materialId(name, materialCollectionId, materialId) {
|
|
22218
22553
|
var _ptr = Module._malloc(8);
|
|
22219
|
-
Module.ccall("csp_systems_GLTFMaterial_Ctor_StringRC_StringRC_StringRC", "void", ["number", "string", "string", "string"], [_ptr, name,
|
|
22220
|
-
var _nPtr = getNativePointer(_ptr);
|
|
22221
|
-
return new GLTFMaterial(_nPtr);
|
|
22222
|
-
}
|
|
22223
|
-
static create() {
|
|
22224
|
-
var _ptr = Module._malloc(8);
|
|
22225
|
-
Module.ccall("csp_systems_GLTFMaterial_Ctor", "void", ["number"], [_ptr]);
|
|
22554
|
+
Module.ccall("csp_systems_GLTFMaterial_Ctor_StringRC_StringRC_StringRC", "void", ["number", "string", "string", "string"], [_ptr, name, materialCollectionId, materialId]);
|
|
22226
22555
|
var _nPtr = getNativePointer(_ptr);
|
|
22227
22556
|
return new GLTFMaterial(_nPtr);
|
|
22228
22557
|
}
|
|
@@ -22232,107 +22561,116 @@ export class CSPFoundation {
|
|
|
22232
22561
|
this.disposed = true;
|
|
22233
22562
|
}
|
|
22234
22563
|
}
|
|
22564
|
+
static create() {
|
|
22565
|
+
var _ptr = Module._malloc(8);
|
|
22566
|
+
Module.ccall("csp_systems_GLTFMaterial_Ctor", "void", ["number"], [_ptr]);
|
|
22567
|
+
var _nPtr = getNativePointer(_ptr);
|
|
22568
|
+
return new GLTFMaterial(_nPtr);
|
|
22569
|
+
}
|
|
22235
22570
|
}
|
|
22236
22571
|
Systems.GLTFMaterial = GLTFMaterial;
|
|
22237
22572
|
})(Systems || (Systems = {}));
|
|
22238
22573
|
(function (Systems) {
|
|
22239
22574
|
/**
|
|
22240
22575
|
@ingroup Asset System
|
|
22241
|
-
* @description Data class used to contain information when attempting to download
|
|
22576
|
+
* @description Data class used to contain information when attempting to download LOD chain data.
|
|
22242
22577
|
*/
|
|
22243
|
-
class
|
|
22578
|
+
class LODChainResult extends Systems.ResultBase {
|
|
22244
22579
|
/** @internal */
|
|
22245
22580
|
constructor(pointer) {
|
|
22246
22581
|
super(pointer);
|
|
22247
22582
|
}
|
|
22248
22583
|
static fromResultBase(baseInstance) {
|
|
22249
22584
|
const nativeClassWrapper = baseInstance;
|
|
22250
|
-
return new Systems.
|
|
22585
|
+
return new Systems.LODChainResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22251
22586
|
}
|
|
22252
22587
|
/**
|
|
22253
|
-
* @description Retreives the
|
|
22588
|
+
* @description Retreives the LODChain from the result.
|
|
22254
22589
|
*/
|
|
22255
|
-
|
|
22590
|
+
getLODChain() {
|
|
22256
22591
|
var _ret = Module._malloc(8);
|
|
22257
|
-
Module.ccall("
|
|
22258
|
-
var _nPtr = new Systems.
|
|
22592
|
+
Module.ccall("csp_systems_LODChainResult_GetLODChainC_LODChainRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
22593
|
+
var _nPtr = new Systems.LODChain(getNativePointer(_ret));
|
|
22259
22594
|
Module._free(_ret);
|
|
22260
22595
|
return _nPtr;
|
|
22261
22596
|
}
|
|
22262
22597
|
delete() {
|
|
22263
22598
|
if (this.ownsPointer && !this.disposed) {
|
|
22264
|
-
Module.ccall("
|
|
22599
|
+
Module.ccall("csp_systems_LODChainResult_Dtor", "void", ["number"], [this.pointer]);
|
|
22265
22600
|
this.disposed = true;
|
|
22266
22601
|
}
|
|
22267
22602
|
}
|
|
22268
22603
|
}
|
|
22269
|
-
Systems.
|
|
22604
|
+
Systems.LODChainResult = LODChainResult;
|
|
22270
22605
|
})(Systems || (Systems = {}));
|
|
22271
22606
|
(function (Systems) {
|
|
22272
22607
|
/**
|
|
22273
22608
|
@ingroup Asset System
|
|
22274
|
-
* @description
|
|
22609
|
+
* @description Result data class that contains downloaded material data.
|
|
22275
22610
|
*/
|
|
22276
|
-
class
|
|
22611
|
+
class MaterialResult extends Systems.ResultBase {
|
|
22277
22612
|
/** @internal */
|
|
22278
22613
|
constructor(pointer) {
|
|
22279
22614
|
super(pointer);
|
|
22280
22615
|
}
|
|
22281
22616
|
static fromResultBase(baseInstance) {
|
|
22282
22617
|
const nativeClassWrapper = baseInstance;
|
|
22283
|
-
return new Systems.
|
|
22618
|
+
return new Systems.MaterialResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22284
22619
|
}
|
|
22285
22620
|
/**
|
|
22286
|
-
* @description
|
|
22621
|
+
* @description Retrieves the Material from the result.
|
|
22622
|
+
* @return Returns a pointer to the Material object. The caller should take ownership of the pointer.
|
|
22287
22623
|
*/
|
|
22288
|
-
|
|
22624
|
+
getMaterial() {
|
|
22289
22625
|
var _ret = Module._malloc(8);
|
|
22290
|
-
Module.ccall("
|
|
22291
|
-
var _nPtr = new
|
|
22626
|
+
Module.ccall("csp_systems_MaterialResult_GetMaterialC_MaterialPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
22627
|
+
var _nPtr = new Systems.Material(getNativePointer(_ret));
|
|
22292
22628
|
Module._free(_ret);
|
|
22293
22629
|
return _nPtr;
|
|
22294
22630
|
}
|
|
22295
22631
|
delete() {
|
|
22296
22632
|
if (this.ownsPointer && !this.disposed) {
|
|
22297
|
-
Module.ccall("
|
|
22633
|
+
Module.ccall("csp_systems_MaterialResult_Dtor", "void", ["number"], [this.pointer]);
|
|
22298
22634
|
this.disposed = true;
|
|
22299
22635
|
}
|
|
22300
22636
|
}
|
|
22301
22637
|
}
|
|
22302
|
-
Systems.
|
|
22638
|
+
Systems.MaterialResult = MaterialResult;
|
|
22303
22639
|
})(Systems || (Systems = {}));
|
|
22304
22640
|
(function (Systems) {
|
|
22305
22641
|
/**
|
|
22306
22642
|
@ingroup Asset System
|
|
22307
|
-
* @description
|
|
22643
|
+
* @description Result data class that contains a collection of downloaded material data.
|
|
22308
22644
|
*/
|
|
22309
|
-
class
|
|
22645
|
+
class MaterialsResult extends Systems.ResultBase {
|
|
22310
22646
|
/** @internal */
|
|
22311
22647
|
constructor(pointer) {
|
|
22312
22648
|
super(pointer);
|
|
22313
22649
|
}
|
|
22314
22650
|
static fromResultBase(baseInstance) {
|
|
22315
22651
|
const nativeClassWrapper = baseInstance;
|
|
22316
|
-
return new Systems.
|
|
22652
|
+
return new Systems.MaterialsResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22317
22653
|
}
|
|
22318
22654
|
/**
|
|
22319
|
-
* @description Retreives
|
|
22655
|
+
* @description Retreives an Array of Materials from the result.
|
|
22656
|
+
* @return Returns a const pointer to an Array of Material class pointers. The caller should take ownership of the
|
|
22657
|
+
* pointer.
|
|
22320
22658
|
*/
|
|
22321
|
-
|
|
22659
|
+
getMaterials() {
|
|
22322
22660
|
var _ret = Module._malloc(8);
|
|
22323
|
-
Module.ccall("
|
|
22324
|
-
var _nPtr = new
|
|
22661
|
+
Module.ccall("csp_systems_MaterialsResult_GetMaterialsC_ArrayPC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
22662
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_MaterialFactory, "csp_systems_Material");
|
|
22325
22663
|
Module._free(_ret);
|
|
22326
22664
|
return _nPtr;
|
|
22327
22665
|
}
|
|
22328
22666
|
delete() {
|
|
22329
22667
|
if (this.ownsPointer && !this.disposed) {
|
|
22330
|
-
Module.ccall("
|
|
22668
|
+
Module.ccall("csp_systems_MaterialsResult_Dtor", "void", ["number"], [this.pointer]);
|
|
22331
22669
|
this.disposed = true;
|
|
22332
22670
|
}
|
|
22333
22671
|
}
|
|
22334
22672
|
}
|
|
22335
|
-
Systems.
|
|
22673
|
+
Systems.MaterialsResult = MaterialsResult;
|
|
22336
22674
|
})(Systems || (Systems = {}));
|
|
22337
22675
|
(function (Systems) {
|
|
22338
22676
|
/**
|
|
@@ -28158,6 +28496,30 @@ export class CSPFoundation {
|
|
|
28158
28496
|
Module.ccall("csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
28159
28497
|
return _promise;
|
|
28160
28498
|
}
|
|
28499
|
+
/**
|
|
28500
|
+
* @description Post Service Proxy to perform specified operation of specified service
|
|
28501
|
+
* @param params - Params to specify service, operation, set help and parameters
|
|
28502
|
+
* @param callback - Callback to call when a response is received
|
|
28503
|
+
*/
|
|
28504
|
+
async postServiceProxy(params) {
|
|
28505
|
+
var _resolve;
|
|
28506
|
+
var _promise = new Promise((_r) => {
|
|
28507
|
+
_resolve = _r;
|
|
28508
|
+
});
|
|
28509
|
+
var _callbackPtr;
|
|
28510
|
+
var _callback = (_stateObject__, result) => {
|
|
28511
|
+
var _resultPtr = getNativePointer(result);
|
|
28512
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
28513
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
28514
|
+
return;
|
|
28515
|
+
}
|
|
28516
|
+
_resolve(_resultInstance);
|
|
28517
|
+
Module.removeFunction(_callbackPtr);
|
|
28518
|
+
};
|
|
28519
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
28520
|
+
Module.ccall("csp_systems_UserSystem_PostServiceProxy_void_TokenInfoParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
28521
|
+
return _promise;
|
|
28522
|
+
}
|
|
28161
28523
|
/**
|
|
28162
28524
|
* @description Re-send user verification email
|
|
28163
28525
|
* @param inEmail - User's email address
|
|
@@ -28338,17 +28700,17 @@ export class CSPFoundation {
|
|
|
28338
28700
|
Module._free(_ret);
|
|
28339
28701
|
return _inst;
|
|
28340
28702
|
}
|
|
28341
|
-
static
|
|
28703
|
+
static ofcsp_systems_LODAsset() {
|
|
28342
28704
|
var _ret = Module._malloc(8);
|
|
28343
|
-
Module.ccall("
|
|
28344
|
-
var _inst = new Array(getNativePointer(_ret),
|
|
28705
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_LODAsset", "void", ["number"], [_ret]);
|
|
28706
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_LODAssetFactory, "csp_systems_LODAsset");
|
|
28345
28707
|
Module._free(_ret);
|
|
28346
28708
|
return _inst;
|
|
28347
28709
|
}
|
|
28348
|
-
static
|
|
28710
|
+
static ofcsp_systems_Material() {
|
|
28349
28711
|
var _ret = Module._malloc(8);
|
|
28350
|
-
Module.ccall("
|
|
28351
|
-
var _inst = new Array(getNativePointer(_ret),
|
|
28712
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_Material", "void", ["number"], [_ret]);
|
|
28713
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_MaterialFactory, "csp_systems_Material");
|
|
28352
28714
|
Module._free(_ret);
|
|
28353
28715
|
return _inst;
|
|
28354
28716
|
}
|
|
@@ -28625,17 +28987,17 @@ export class CSPFoundation {
|
|
|
28625
28987
|
Module._free(_ret);
|
|
28626
28988
|
return _inst;
|
|
28627
28989
|
}
|
|
28628
|
-
static
|
|
28990
|
+
static ofcsp_systems_LODAsset_number(size) {
|
|
28629
28991
|
var _ret = Module._malloc(8);
|
|
28630
|
-
Module.ccall("
|
|
28631
|
-
var _inst = new Array(getNativePointer(_ret),
|
|
28992
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_LODAsset", "void", ["number", "number"], [_ret, size]);
|
|
28993
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_LODAssetFactory, "csp_systems_LODAsset");
|
|
28632
28994
|
Module._free(_ret);
|
|
28633
28995
|
return _inst;
|
|
28634
28996
|
}
|
|
28635
|
-
static
|
|
28997
|
+
static ofcsp_systems_Material_number(size) {
|
|
28636
28998
|
var _ret = Module._malloc(8);
|
|
28637
|
-
Module.ccall("
|
|
28638
|
-
var _inst = new Array(getNativePointer(_ret),
|
|
28999
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Material", "void", ["number", "number"], [_ret, size]);
|
|
29000
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_MaterialFactory, "csp_systems_Material");
|
|
28639
29001
|
Module._free(_ret);
|
|
28640
29002
|
return _inst;
|
|
28641
29003
|
}
|