connected-spaces-platform.web 4.27.2 → 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.
@@ -486,6 +486,14 @@ function csp_multiplayer_AvatarComponentPropertyKeysFactory(
486
486
  ProxyClassFactories["csp_multiplayer_AvatarComponentPropertyKeys"] =
487
487
  csp_multiplayer_AvatarComponentPropertyKeysFactory;
488
488
 
489
+ function csp_multiplayer_BillboardModeFactory(
490
+ nativePointer: NativePointer,
491
+ ): Multiplayer.BillboardMode {
492
+ return nativePointer.pointer as Multiplayer.BillboardMode;
493
+ }
494
+ ProxyClassFactories["csp_multiplayer_BillboardMode"] =
495
+ csp_multiplayer_BillboardModeFactory;
496
+
489
497
  function csp_multiplayer_ButtonPropertyKeysFactory(
490
498
  nativePointer: NativePointer,
491
499
  ): Multiplayer.ButtonPropertyKeys {
@@ -597,14 +605,6 @@ function csp_multiplayer_ImagePropertyKeysFactory(
597
605
  ProxyClassFactories["csp_multiplayer_ImagePropertyKeys"] =
598
606
  csp_multiplayer_ImagePropertyKeysFactory;
599
607
 
600
- function csp_multiplayer_BillboardModeFactory(
601
- nativePointer: NativePointer,
602
- ): Multiplayer.BillboardMode {
603
- return nativePointer.pointer as Multiplayer.BillboardMode;
604
- }
605
- ProxyClassFactories["csp_multiplayer_BillboardMode"] =
606
- csp_multiplayer_BillboardModeFactory;
607
-
608
608
  function csp_multiplayer_DisplayModeFactory(
609
609
  nativePointer: NativePointer,
610
610
  ): Multiplayer.DisplayMode {
@@ -701,6 +701,14 @@ function csp_multiplayer_StaticModelPropertyKeysFactory(
701
701
  ProxyClassFactories["csp_multiplayer_StaticModelPropertyKeys"] =
702
702
  csp_multiplayer_StaticModelPropertyKeysFactory;
703
703
 
704
+ function csp_multiplayer_TextPropertyKeysFactory(
705
+ nativePointer: NativePointer,
706
+ ): Multiplayer.TextPropertyKeys {
707
+ return nativePointer.pointer as Multiplayer.TextPropertyKeys;
708
+ }
709
+ ProxyClassFactories["csp_multiplayer_TextPropertyKeys"] =
710
+ csp_multiplayer_TextPropertyKeysFactory;
711
+
704
712
  function csp_multiplayer_VideoPlayerPlaybackStateFactory(
705
713
  nativePointer: NativePointer,
706
714
  ): Multiplayer.VideoPlayerPlaybackState {
@@ -1622,6 +1630,14 @@ function csp_multiplayer_StaticModelSpaceComponentFactory(
1622
1630
  ProxyClassFactories["csp_multiplayer_StaticModelSpaceComponent"] =
1623
1631
  csp_multiplayer_StaticModelSpaceComponentFactory;
1624
1632
 
1633
+ function csp_multiplayer_TextSpaceComponentFactory(
1634
+ nativePointer: NativePointer,
1635
+ ): NativeClassWrapper {
1636
+ return new Multiplayer.TextSpaceComponent(nativePointer);
1637
+ }
1638
+ ProxyClassFactories["csp_multiplayer_TextSpaceComponent"] =
1639
+ csp_multiplayer_TextSpaceComponentFactory;
1640
+
1625
1641
  function csp_multiplayer_VideoPlayerSpaceComponentFactory(
1626
1642
  nativePointer: NativePointer,
1627
1643
  ): NativeClassWrapper {
@@ -3092,6 +3108,14 @@ export namespace Multiplayer {
3092
3108
  }
3093
3109
  }
3094
3110
 
3111
+ export namespace Multiplayer {
3112
+ export enum BillboardMode {
3113
+ Off = 0,
3114
+ Billboard,
3115
+ YawLockedBillboard,
3116
+ }
3117
+ }
3118
+
3095
3119
  export namespace Multiplayer {
3096
3120
  /**
3097
3121
  * @description Enumerates the list of properties that can be replicated for a button component.
@@ -3307,17 +3331,6 @@ export namespace Multiplayer {
3307
3331
  }
3308
3332
  }
3309
3333
 
3310
- export namespace Multiplayer {
3311
- /**
3312
- * @description The billboard mode supported by this image space component.
3313
- */
3314
- export enum BillboardMode {
3315
- Off = 0,
3316
- Billboard,
3317
- YawLockedBillboard,
3318
- }
3319
- }
3320
-
3321
3334
  export namespace Multiplayer {
3322
3335
  /**
3323
3336
  * @description The display mode supported by this image space component.
@@ -3485,6 +3498,27 @@ export namespace Multiplayer {
3485
3498
  }
3486
3499
  }
3487
3500
 
3501
+ export namespace Multiplayer {
3502
+ /**
3503
+ * @description Enumerates the list of properties that can be replicated for an text space component.
3504
+ */
3505
+ export enum TextPropertyKeys {
3506
+ Position,
3507
+ Rotation,
3508
+ Scale,
3509
+ Text,
3510
+ TextColor,
3511
+ BackgroundColor,
3512
+ IsBackgroundVisible,
3513
+ Width,
3514
+ Height,
3515
+ BillboardMode,
3516
+ IsVisible,
3517
+ IsARVisible,
3518
+ Num,
3519
+ }
3520
+ }
3521
+
3488
3522
  export namespace Multiplayer {
3489
3523
  /**
3490
3524
  * @description Enumerates the possible playback states for a video player.
@@ -20344,13 +20378,13 @@ export namespace Common {
20344
20378
  }
20345
20379
 
20346
20380
  /**
20347
- * @description Construct a Variant based on a float type.
20381
+ * @description Construct a Variant based on a double-precision float type.
20348
20382
  * @param inFloatValue - In value
20349
20383
  */
20350
20384
  static create_floatValue(floatValue: number): Variant {
20351
20385
  var _ptr = Module._malloc(8);
20352
20386
  Module.ccall(
20353
- "csp_common_Variant_Ctor_float",
20387
+ "csp_common_Variant_Ctor_double",
20354
20388
  "void",
20355
20389
  ["number", "number"],
20356
20390
  [_ptr, floatValue],
@@ -20513,15 +20547,15 @@ export namespace Common {
20513
20547
  }
20514
20548
 
20515
20549
  /**
20516
- * @description Sets internal variant type as a float.
20550
+ * @description Sets internal variant type as a double-precision float.
20517
20551
  */
20518
20552
 
20519
20553
  setFloat(value: number): void {
20520
- assert(value >= Limits.FLOAT_MIN);
20521
- assert(value <= Limits.FLOAT_MAX);
20554
+ assert(value >= Limits.DOUBLE_MIN);
20555
+ assert(value <= Limits.DOUBLE_MAX);
20522
20556
 
20523
20557
  Module.ccall(
20524
- "csp_common_Variant_SetFloat_void_float",
20558
+ "csp_common_Variant_SetFloat_void_double",
20525
20559
  "void",
20526
20560
  ["number", "number"],
20527
20561
  [this.pointer, value],
@@ -20529,13 +20563,13 @@ export namespace Common {
20529
20563
  }
20530
20564
 
20531
20565
  /**
20532
- * @description Gets internal variant type as a float.
20533
- * @return Float
20566
+ * @description Gets internal variant type as a double-precision float.
20567
+ * @return Double
20534
20568
  */
20535
20569
 
20536
20570
  getFloat(): number {
20537
20571
  let _result = Module.ccall(
20538
- "csp_common_Variant_GetFloatC_float",
20572
+ "csp_common_Variant_GetFloatC_double",
20539
20573
  "number",
20540
20574
  ["number"],
20541
20575
  [this.pointer],
@@ -26810,6 +26844,26 @@ export namespace Systems {
26810
26844
  [this.pointer, value],
26811
26845
  );
26812
26846
  }
26847
+
26848
+ get organizationId(): string {
26849
+ let _result = Module.ccall(
26850
+ "csp_systems_AssetCollection__Get_OrganizationId",
26851
+ "string",
26852
+ ["number"],
26853
+ [this.pointer],
26854
+ );
26855
+
26856
+ return _result;
26857
+ }
26858
+
26859
+ set organizationId(value: string) {
26860
+ Module.ccall(
26861
+ "csp_systems_AssetCollection__Set_OrganizationId",
26862
+ "void",
26863
+ ["number", "string"],
26864
+ [this.pointer, value],
26865
+ );
26866
+ }
26813
26867
  }
26814
26868
  }
26815
26869
 
@@ -27460,6 +27514,26 @@ export namespace Systems {
27460
27514
  [this.pointer, value.pointer],
27461
27515
  );
27462
27516
  }
27517
+
27518
+ get availableStock(): number {
27519
+ let _result = Module.ccall(
27520
+ "csp_systems_ProductVariantInfo__Get_AvailableStock",
27521
+ "number",
27522
+ ["number"],
27523
+ [this.pointer],
27524
+ );
27525
+
27526
+ return _result;
27527
+ }
27528
+
27529
+ set availableStock(value: number) {
27530
+ Module.ccall(
27531
+ "csp_systems_ProductVariantInfo__Set_AvailableStock",
27532
+ "void",
27533
+ ["number", "number"],
27534
+ [this.pointer, value],
27535
+ );
27536
+ }
27463
27537
  }
27464
27538
  }
27465
27539
 
@@ -29337,26 +29411,6 @@ export namespace Systems {
29337
29411
  );
29338
29412
  }
29339
29413
 
29340
- get description(): string {
29341
- let _result = Module.ccall(
29342
- "csp_systems_Organization__Get_Description",
29343
- "string",
29344
- ["number"],
29345
- [this.pointer],
29346
- );
29347
-
29348
- return _result;
29349
- }
29350
-
29351
- set description(value: string) {
29352
- Module.ccall(
29353
- "csp_systems_Organization__Set_Description",
29354
- "void",
29355
- ["number", "string"],
29356
- [this.pointer, value],
29357
- );
29358
- }
29359
-
29360
29414
  get members(): Common.Array<Systems.OrganizationRoleInfo> {
29361
29415
  const _ptr = Module._malloc(8);
29362
29416
  Module.ccall(
@@ -39899,6 +39953,484 @@ export namespace Multiplayer {
39899
39953
  }
39900
39954
  }
39901
39955
 
39956
+ export namespace Multiplayer {
39957
+ /**
39958
+ @ingroup TextSpaceComponent
39959
+ * @description Data representation of an TextSpaceComponent.
39960
+ */
39961
+ export class TextSpaceComponent
39962
+ extends Multiplayer.ComponentBase
39963
+ implements
39964
+ Multiplayer.ITransformComponent,
39965
+ Multiplayer.IVisibleComponent,
39966
+ INativeResource
39967
+ {
39968
+ /** @internal */
39969
+ constructor(pointer: NativePointer) {
39970
+ super(pointer);
39971
+ }
39972
+
39973
+ static fromComponentBase(
39974
+ baseInstance: Multiplayer.ComponentBase,
39975
+ ): Multiplayer.TextSpaceComponent {
39976
+ const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
39977
+ return new Multiplayer.TextSpaceComponent(
39978
+ new NativePointer(
39979
+ nativeClassWrapper.pointer,
39980
+ nativeClassWrapper.ownsPointer,
39981
+ ),
39982
+ );
39983
+ }
39984
+
39985
+ /**
39986
+ * @description Constructs the text space component, and associates it with the specified Parent space entity.
39987
+ * @param parent - The Space entity that owns this component.
39988
+ */
39989
+ static create_parent(parent: Multiplayer.SpaceEntity): TextSpaceComponent {
39990
+ var _ptr = Module._malloc(8);
39991
+ Module.ccall(
39992
+ "csp_multiplayer_TextSpaceComponent_Ctor_SpaceEntityP",
39993
+ "void",
39994
+ ["number", "number"],
39995
+ [_ptr, parent.pointer],
39996
+ );
39997
+ var _nPtr = getNativePointer(_ptr);
39998
+
39999
+ return new TextSpaceComponent(_nPtr);
40000
+ }
40001
+
40002
+ /**
40003
+ * @description Gets the text this text component refers to.
40004
+ * @return The text this text component refers to.
40005
+ */
40006
+
40007
+ getText(): string {
40008
+ let _result = Module.ccall(
40009
+ "csp_multiplayer_TextSpaceComponent_GetTextC_StringRC",
40010
+ "number",
40011
+ ["number"],
40012
+ [this.pointer],
40013
+ );
40014
+
40015
+ const _resultString = Module.UTF8ToString(_result);
40016
+ free(_result);
40017
+
40018
+ _result = _resultString;
40019
+
40020
+ return _result;
40021
+ }
40022
+
40023
+ /**
40024
+ * @description Sets the text this text component refers to.
40025
+ * @param value - The text this text component refers to.
40026
+ */
40027
+
40028
+ setText(value: string): void {
40029
+ Module.ccall(
40030
+ "csp_multiplayer_TextSpaceComponent_SetText_void_StringRC",
40031
+ "void",
40032
+ ["number", "string"],
40033
+ [this.pointer, value],
40034
+ );
40035
+ }
40036
+
40037
+ /**
40038
+ * @description Gets the text color.
40039
+ * @return The text color, expected to be in RGB color space, with each value normalised between 0...1.
40040
+ */
40041
+
40042
+ getTextColor(): Common.Vector3 {
40043
+ var _ret = Module._malloc(8);
40044
+
40045
+ Module.ccall(
40046
+ "csp_multiplayer_TextSpaceComponent_GetTextColorC_Vector3RC",
40047
+ "void",
40048
+ ["number", "number"],
40049
+ [_ret, this.pointer],
40050
+ );
40051
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40052
+ Module._free(_ret);
40053
+
40054
+ return _nPtr;
40055
+ }
40056
+
40057
+ /**
40058
+ * @description Sets the text color.
40059
+ * @param value - The text color, expected to be in RGB color space, with each value normalised between 0...1.
40060
+ */
40061
+
40062
+ setTextColor(value: Common.Vector3): void {
40063
+ Module.ccall(
40064
+ "csp_multiplayer_TextSpaceComponent_SetTextColor_void_Vector3RC",
40065
+ "void",
40066
+ ["number", "number"],
40067
+ [this.pointer, value.pointer],
40068
+ );
40069
+ }
40070
+
40071
+ /**
40072
+ * @description Gets the background color that should be globally applied text associated with this component.
40073
+ * @return The background color, expected to be in RGB color space, with each value normalised between 0...1.
40074
+ */
40075
+
40076
+ getBackgroundColor(): Common.Vector3 {
40077
+ var _ret = Module._malloc(8);
40078
+
40079
+ Module.ccall(
40080
+ "csp_multiplayer_TextSpaceComponent_GetBackgroundColorC_Vector3RC",
40081
+ "void",
40082
+ ["number", "number"],
40083
+ [_ret, this.pointer],
40084
+ );
40085
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40086
+ Module._free(_ret);
40087
+
40088
+ return _nPtr;
40089
+ }
40090
+
40091
+ /**
40092
+ * @description Sets the background color.
40093
+ * @param value - The background color, expected to be in RGB color space, with each value normalised between 0...1.
40094
+ */
40095
+
40096
+ setBackgroundColor(value: Common.Vector3): void {
40097
+ Module.ccall(
40098
+ "csp_multiplayer_TextSpaceComponent_SetBackgroundColor_void_Vector3RC",
40099
+ "void",
40100
+ ["number", "number"],
40101
+ [this.pointer, value.pointer],
40102
+ );
40103
+ }
40104
+
40105
+ /**
40106
+ * @description Sets the background visibility.
40107
+ * @param value - The background visibility.
40108
+ */
40109
+
40110
+ getIsBackgroundVisible(): boolean {
40111
+ let _result = Module.ccall(
40112
+ "csp_multiplayer_TextSpaceComponent_GetIsBackgroundVisibleC_bool",
40113
+ "boolean",
40114
+ ["number"],
40115
+ [this.pointer],
40116
+ );
40117
+
40118
+ return _result;
40119
+ }
40120
+
40121
+ /**
40122
+ * @description Sets the background visibility.
40123
+ * @param value - The background visibility.
40124
+ */
40125
+
40126
+ setIsBackgroundVisible(value: boolean): void {
40127
+ Module.ccall(
40128
+ "csp_multiplayer_TextSpaceComponent_SetIsBackgroundVisible_void_bool",
40129
+ "void",
40130
+ ["number", "boolean"],
40131
+ [this.pointer, value],
40132
+ );
40133
+ }
40134
+
40135
+ /**
40136
+ * @description Sets the Text Width.
40137
+ * @param value - The Text Width.
40138
+ */
40139
+
40140
+ getWidth(): number {
40141
+ let _result = Module.ccall(
40142
+ "csp_multiplayer_TextSpaceComponent_GetWidthC_float",
40143
+ "number",
40144
+ ["number"],
40145
+ [this.pointer],
40146
+ );
40147
+
40148
+ return _result;
40149
+ }
40150
+
40151
+ /**
40152
+ * @description Sets the Text Width.
40153
+ * @param value - The Text Width.
40154
+ */
40155
+
40156
+ setWidth(value: number): void {
40157
+ assert(value >= Limits.FLOAT_MIN);
40158
+ assert(value <= Limits.FLOAT_MAX);
40159
+
40160
+ Module.ccall(
40161
+ "csp_multiplayer_TextSpaceComponent_SetWidth_void_float",
40162
+ "void",
40163
+ ["number", "number"],
40164
+ [this.pointer, value],
40165
+ );
40166
+ }
40167
+
40168
+ /**
40169
+ * @description Sets the Text Height.
40170
+ * @param value - The Text Height.
40171
+ */
40172
+
40173
+ getHeight(): number {
40174
+ let _result = Module.ccall(
40175
+ "csp_multiplayer_TextSpaceComponent_GetHeightC_float",
40176
+ "number",
40177
+ ["number"],
40178
+ [this.pointer],
40179
+ );
40180
+
40181
+ return _result;
40182
+ }
40183
+
40184
+ /**
40185
+ * @description Sets the Text Height.
40186
+ * @param value - The Text Height.
40187
+ */
40188
+
40189
+ setHeight(value: number): void {
40190
+ assert(value >= Limits.FLOAT_MIN);
40191
+ assert(value <= Limits.FLOAT_MAX);
40192
+
40193
+ Module.ccall(
40194
+ "csp_multiplayer_TextSpaceComponent_SetHeight_void_float",
40195
+ "void",
40196
+ ["number", "number"],
40197
+ [this.pointer, value],
40198
+ );
40199
+ }
40200
+
40201
+ /**
40202
+ * \addtogroup ITransformComponent
40203
+ @{
40204
+ @copydoc IPositionComponent::GetPosition()
40205
+ */
40206
+
40207
+ getPosition(): Common.Vector3 {
40208
+ var _ret = Module._malloc(8);
40209
+
40210
+ Module.ccall(
40211
+ "csp_multiplayer_TextSpaceComponent_GetPositionC_Vector3RC",
40212
+ "void",
40213
+ ["number", "number"],
40214
+ [_ret, this.pointer],
40215
+ );
40216
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40217
+ Module._free(_ret);
40218
+
40219
+ return _nPtr;
40220
+ }
40221
+
40222
+ /**
40223
+ @copydoc IPositionComponent::SetPosition()
40224
+ */
40225
+
40226
+ setPosition(value: Common.Vector3): void {
40227
+ Module.ccall(
40228
+ "csp_multiplayer_TextSpaceComponent_SetPosition_void_Vector3RC",
40229
+ "void",
40230
+ ["number", "number"],
40231
+ [this.pointer, value.pointer],
40232
+ );
40233
+ }
40234
+
40235
+ /**
40236
+ @copydoc IRotationComponent::GetRotation()
40237
+ */
40238
+
40239
+ getRotation(): Common.Vector4 {
40240
+ var _ret = Module._malloc(8);
40241
+
40242
+ Module.ccall(
40243
+ "csp_multiplayer_TextSpaceComponent_GetRotationC_Vector4RC",
40244
+ "void",
40245
+ ["number", "number"],
40246
+ [_ret, this.pointer],
40247
+ );
40248
+ var _nPtr = new Common.Vector4(getNativePointer(_ret));
40249
+ Module._free(_ret);
40250
+
40251
+ return _nPtr;
40252
+ }
40253
+
40254
+ /**
40255
+ @copydoc IRotationComponent::SetRotation()
40256
+ */
40257
+
40258
+ setRotation(value: Common.Vector4): void {
40259
+ Module.ccall(
40260
+ "csp_multiplayer_TextSpaceComponent_SetRotation_void_Vector4RC",
40261
+ "void",
40262
+ ["number", "number"],
40263
+ [this.pointer, value.pointer],
40264
+ );
40265
+ }
40266
+
40267
+ /**
40268
+ @copydoc IScaleComponent::GetScale()
40269
+ */
40270
+
40271
+ getScale(): Common.Vector3 {
40272
+ var _ret = Module._malloc(8);
40273
+
40274
+ Module.ccall(
40275
+ "csp_multiplayer_TextSpaceComponent_GetScaleC_Vector3RC",
40276
+ "void",
40277
+ ["number", "number"],
40278
+ [_ret, this.pointer],
40279
+ );
40280
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40281
+ Module._free(_ret);
40282
+
40283
+ return _nPtr;
40284
+ }
40285
+
40286
+ /**
40287
+ @copydoc IScaleComponent::SetScale()
40288
+ */
40289
+
40290
+ setScale(value: Common.Vector3): void {
40291
+ Module.ccall(
40292
+ "csp_multiplayer_TextSpaceComponent_SetScale_void_Vector3RC",
40293
+ "void",
40294
+ ["number", "number"],
40295
+ [this.pointer, value.pointer],
40296
+ );
40297
+ }
40298
+
40299
+ /**
40300
+ @copydoc ITransformComponent::GetTransform()
40301
+ */
40302
+
40303
+ getTransform(): Multiplayer.SpaceTransform {
40304
+ var _ret = Module._malloc(8);
40305
+
40306
+ Module.ccall(
40307
+ "csp_multiplayer_TextSpaceComponent_GetTransformC_SpaceTransform",
40308
+ "void",
40309
+ ["number", "number"],
40310
+ [_ret, this.pointer],
40311
+ );
40312
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
40313
+ Module._free(_ret);
40314
+ return _nPtr;
40315
+ }
40316
+
40317
+ /**
40318
+ @copydoc ITransformComonent::SetTransform()
40319
+ */
40320
+
40321
+ setTransform(value: Multiplayer.SpaceTransform): void {
40322
+ Module.ccall(
40323
+ "csp_multiplayer_TextSpaceComponent_SetTransform_void_SpaceTransformRC",
40324
+ "void",
40325
+ ["number", "number"],
40326
+ [this.pointer, value.pointer],
40327
+ );
40328
+ }
40329
+
40330
+ /**
40331
+ @}
40332
+ * @description Gets the billboard mode used by this text component.
40333
+ * @return The billboard mode used by this text component.
40334
+ */
40335
+
40336
+ getBillboardMode(): Multiplayer.BillboardMode {
40337
+ let _result = Module.ccall(
40338
+ "csp_multiplayer_TextSpaceComponent_GetBillboardModeC_BillboardMode",
40339
+ "number",
40340
+ ["number"],
40341
+ [this.pointer],
40342
+ );
40343
+
40344
+ return _result;
40345
+ }
40346
+
40347
+ /**
40348
+ * @description Sets the billboard mode used by this text component.
40349
+ * @param billboardMode - The billboard mode used by this text component.
40350
+ */
40351
+
40352
+ setBillboardMode(billboardMode: Multiplayer.BillboardMode): void {
40353
+ Module.ccall(
40354
+ "csp_multiplayer_TextSpaceComponent_SetBillboardMode_void_BillboardMode",
40355
+ "void",
40356
+ ["number", "number"],
40357
+ [this.pointer, billboardMode],
40358
+ );
40359
+ }
40360
+
40361
+ /**
40362
+ * \addtogroup IVisibleComponent
40363
+ @{
40364
+ @copydoc IVisibleComponent::GetIsVisible()
40365
+ */
40366
+
40367
+ getIsVisible(): boolean {
40368
+ let _result = Module.ccall(
40369
+ "csp_multiplayer_TextSpaceComponent_GetIsVisibleC_bool",
40370
+ "boolean",
40371
+ ["number"],
40372
+ [this.pointer],
40373
+ );
40374
+
40375
+ return _result;
40376
+ }
40377
+
40378
+ /**
40379
+ @copydoc IVisibleComponent::SetIsVisible()
40380
+ */
40381
+
40382
+ setIsVisible(value: boolean): void {
40383
+ Module.ccall(
40384
+ "csp_multiplayer_TextSpaceComponent_SetIsVisible_void_bool",
40385
+ "void",
40386
+ ["number", "boolean"],
40387
+ [this.pointer, value],
40388
+ );
40389
+ }
40390
+
40391
+ /**
40392
+ @copydoc IVisibleComponent::GetIsARVisible()
40393
+ */
40394
+
40395
+ getIsARVisible(): boolean {
40396
+ let _result = Module.ccall(
40397
+ "csp_multiplayer_TextSpaceComponent_GetIsARVisibleC_bool",
40398
+ "boolean",
40399
+ ["number"],
40400
+ [this.pointer],
40401
+ );
40402
+
40403
+ return _result;
40404
+ }
40405
+
40406
+ /**
40407
+ @copydoc IVisibleComponent::SetIsARVisible()
40408
+ */
40409
+
40410
+ setIsARVisible(value: boolean): void {
40411
+ Module.ccall(
40412
+ "csp_multiplayer_TextSpaceComponent_SetIsARVisible_void_bool",
40413
+ "void",
40414
+ ["number", "boolean"],
40415
+ [this.pointer, value],
40416
+ );
40417
+ }
40418
+
40419
+ delete(): void {
40420
+ if (this.ownsPointer && !this.disposed) {
40421
+ Module.ccall(
40422
+ "csp_multiplayer_TextSpaceComponent_Dtor",
40423
+ "void",
40424
+ ["number"],
40425
+ [this.pointer],
40426
+ );
40427
+
40428
+ this.disposed = true;
40429
+ }
40430
+ }
40431
+ }
40432
+ }
40433
+
39902
40434
  export namespace Multiplayer {
39903
40435
  /**
39904
40436
  @ingroup VideoPlayerSpaceComponent
@@ -45216,6 +45748,207 @@ export namespace Systems {
45216
45748
  );
45217
45749
  }
45218
45750
 
45751
+ /**
45752
+ * @description Create a new Organization.
45753
+ * Only a User with tenant admin permissions can create an Organization.
45754
+ * If the user does not have the required permissions their call will be rejected.
45755
+ * @param organizationOwnerId - Id of the Organization owner.
45756
+ * @param organizationName - The Organization name
45757
+ * @param callback - Callback when asynchronous task finishes.
45758
+ */
45759
+
45760
+ async createOrganization(
45761
+ organizationOwnerId: string,
45762
+ organizationName: string,
45763
+ ): Promise<Systems.OrganizationResult> {
45764
+ var _resolve;
45765
+
45766
+ var _promise = new Promise<Systems.OrganizationResult>((_r) => {
45767
+ _resolve = _r;
45768
+ });
45769
+
45770
+ var _callbackPtr: number;
45771
+ var _callback = (_stateObject__: number, result) => {
45772
+ var _resultPtr = getNativePointer(result);
45773
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
45774
+
45775
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45776
+ return;
45777
+ }
45778
+
45779
+ _resolve(_resultInstance);
45780
+
45781
+ Module.removeFunction(_callbackPtr);
45782
+ };
45783
+
45784
+ _callbackPtr = Module.addFunction(_callback, "vii");
45785
+
45786
+ Module.ccall(
45787
+ "csp_systems_OrganizationSystem_CreateOrganization_void_StringRC_StringRC_OrganizationResultCallback",
45788
+ "void",
45789
+ ["number", "string", "string", "number", "number"],
45790
+ [this.pointer, organizationOwnerId, organizationName, _callbackPtr, 0],
45791
+ );
45792
+
45793
+ return _promise;
45794
+ }
45795
+
45796
+ /**
45797
+ * @description Retrieves Organization info for the specified Organization.
45798
+ * If this request is made by a User with an Owner or Admin Organization role, the resultant Organization object will contain an array of
45799
+ * OrganizationRoleInfo objects for each Organization member. If the request is made by a User who does not have the Owner or Admin role, the
45800
+ * resultant Organization object will contain an array with a single OrganizationRoleInfo object which represents them.
45801
+ * @param organizationId - Id of the Organization to retrieve information on. If no Id is specified,
45802
+ * the Id of the Organization the user is currently authenticated against will be used.
45803
+ * @param callback - Callback when asynchronous task finishes.
45804
+ */
45805
+
45806
+ async getOrganization(
45807
+ organizationId: string | null,
45808
+ ): Promise<Systems.OrganizationResult> {
45809
+ var _resolve;
45810
+
45811
+ var _promise = new Promise<Systems.OrganizationResult>((_r) => {
45812
+ _resolve = _r;
45813
+ });
45814
+
45815
+ var _callbackPtr: number;
45816
+ var _callback = (_stateObject__: number, result) => {
45817
+ var _resultPtr = getNativePointer(result);
45818
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
45819
+
45820
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45821
+ return;
45822
+ }
45823
+
45824
+ _resolve(_resultInstance);
45825
+
45826
+ Module.removeFunction(_callbackPtr);
45827
+ };
45828
+
45829
+ _callbackPtr = Module.addFunction(_callback, "vii");
45830
+
45831
+ Module.ccall(
45832
+ "csp_systems_OrganizationSystem_GetOrganization_void_StringRC_OrganizationResultCallback",
45833
+ "void",
45834
+ ["number", "string", "number", "number"],
45835
+ [this.pointer, organizationId, _callbackPtr, 0],
45836
+ );
45837
+
45838
+ return _promise;
45839
+ }
45840
+
45841
+ /**
45842
+ * @description Get the Id of the Organization the user is authenticated against.
45843
+ * @return The Id of the Organization the User belongs to.
45844
+ */
45845
+
45846
+ getCurrentOrganizationId(): string {
45847
+ let _result = Module.ccall(
45848
+ "csp_systems_OrganizationSystem_GetCurrentOrganizationIdC_StringRC",
45849
+ "number",
45850
+ ["number"],
45851
+ [this.pointer],
45852
+ );
45853
+
45854
+ const _resultString = Module.UTF8ToString(_result);
45855
+ free(_result);
45856
+
45857
+ _result = _resultString;
45858
+
45859
+ return _result;
45860
+ }
45861
+
45862
+ /**
45863
+ * @description Updates the name and/or the description of the specified Organization.
45864
+ * Only a User with an Organization Owner role can update an Organization. If the user does not have the required Organization role
45865
+ * their call will be rejected.
45866
+ * @param organizationId - Id of the Organization to update. If no Id is specified,
45867
+ * the Id of the Organization the user is currently authenticated against will be used.
45868
+ * @param name - The new Organization name
45869
+ * @param callback - Callback when asynchronous task finishes.
45870
+ */
45871
+
45872
+ async updateOrganization(
45873
+ organizationId: string | null,
45874
+ name: string,
45875
+ ): Promise<Systems.OrganizationResult> {
45876
+ var _resolve;
45877
+
45878
+ var _promise = new Promise<Systems.OrganizationResult>((_r) => {
45879
+ _resolve = _r;
45880
+ });
45881
+
45882
+ var _callbackPtr: number;
45883
+ var _callback = (_stateObject__: number, result) => {
45884
+ var _resultPtr = getNativePointer(result);
45885
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
45886
+
45887
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45888
+ return;
45889
+ }
45890
+
45891
+ _resolve(_resultInstance);
45892
+
45893
+ Module.removeFunction(_callbackPtr);
45894
+ };
45895
+
45896
+ _callbackPtr = Module.addFunction(_callback, "vii");
45897
+
45898
+ Module.ccall(
45899
+ "csp_systems_OrganizationSystem_UpdateOrganization_void_StringRC_StringRC_OrganizationResultCallback",
45900
+ "void",
45901
+ ["number", "string", "string", "number", "number"],
45902
+ [this.pointer, organizationId, name, _callbackPtr, 0],
45903
+ );
45904
+
45905
+ return _promise;
45906
+ }
45907
+
45908
+ /**
45909
+ * @description Deactivates the specified Organization.
45910
+ * This call performs a soft-delete of the Organization and will allow for Organization reactivation in the future.
45911
+ * Only A User with owner-level permissions can deactivate an Organization. If the user does not have the required role their call will be
45912
+ * rejected.
45913
+ * @param organizationId - Id of the Organization to deactivate.
45914
+ * @param callback - Callback when asynchronous task finishes.
45915
+ */
45916
+
45917
+ async deactivateOrganization(
45918
+ organizationId: string,
45919
+ ): Promise<Systems.NullResult> {
45920
+ var _resolve;
45921
+
45922
+ var _promise = new Promise<Systems.NullResult>((_r) => {
45923
+ _resolve = _r;
45924
+ });
45925
+
45926
+ var _callbackPtr: number;
45927
+ var _callback = (_stateObject__: number, result) => {
45928
+ var _resultPtr = getNativePointer(result);
45929
+ var _resultInstance = new Systems.NullResult(_resultPtr);
45930
+
45931
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45932
+ return;
45933
+ }
45934
+
45935
+ _resolve(_resultInstance);
45936
+
45937
+ Module.removeFunction(_callbackPtr);
45938
+ };
45939
+
45940
+ _callbackPtr = Module.addFunction(_callback, "vii");
45941
+
45942
+ Module.ccall(
45943
+ "csp_systems_OrganizationSystem_DeactivateOrganization_void_StringRC_NullResultCallback",
45944
+ "void",
45945
+ ["number", "string", "number", "number"],
45946
+ [this.pointer, organizationId, _callbackPtr, 0],
45947
+ );
45948
+
45949
+ return _promise;
45950
+ }
45951
+
45219
45952
  /**
45220
45953
  * @description Invites a given email to the User's Organization.
45221
45954
  * 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
@@ -47192,6 +47925,26 @@ export namespace Systems {
47192
47925
  [this.pointer, value.pointer],
47193
47926
  );
47194
47927
  }
47928
+
47929
+ get organizationId(): string {
47930
+ let _result = Module.ccall(
47931
+ "csp_systems_Space__Get_OrganizationId",
47932
+ "string",
47933
+ ["number"],
47934
+ [this.pointer],
47935
+ );
47936
+
47937
+ return _result;
47938
+ }
47939
+
47940
+ set organizationId(value: string) {
47941
+ Module.ccall(
47942
+ "csp_systems_Space__Set_OrganizationId",
47943
+ "void",
47944
+ ["number", "string"],
47945
+ [this.pointer, value],
47946
+ );
47947
+ }
47195
47948
  }
47196
47949
  }
47197
47950