connected-spaces-platform.web 4.29.1 → 4.30.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.
@@ -157,6 +157,13 @@ export declare namespace Multiplayer {
157
157
  Invalid = 3
158
158
  }
159
159
  }
160
+ export declare namespace Multiplayer {
161
+ enum ESequenceUpdateType {
162
+ Create = 0,
163
+ Update = 1,
164
+ Delete = 2
165
+ }
166
+ }
160
167
  export declare namespace Multiplayer {
161
168
  /**
162
169
  * @description Enum used to specify the current state of the multiplayer connection.
@@ -560,12 +567,6 @@ export declare namespace Multiplayer {
560
567
  Num = 10
561
568
  }
562
569
  }
563
- export declare namespace Multiplayer {
564
- enum HotspotType {
565
- TeleportHotspot = 0,
566
- SpawnHotspot = 1
567
- }
568
- }
569
570
  export declare namespace Multiplayer {
570
571
  /**
571
572
  * @description Enumerates the list of properties that can be replicated for an Hotspot space component.
@@ -574,10 +575,11 @@ export declare namespace Multiplayer {
574
575
  Position = 0,
575
576
  Rotation = 1,
576
577
  Name = 2,
577
- HotspotType = 3,
578
- IsVisible = 4,
579
- IsARVisible = 5,
580
- Num = 6
578
+ IsTeleportPoint = 3,
579
+ IsSpawnPoint = 4,
580
+ IsVisible = 5,
581
+ IsARVisible = 6,
582
+ Num = 7
581
583
  }
582
584
  }
583
585
  export declare namespace Multiplayer {
@@ -3613,6 +3615,20 @@ export declare namespace Multiplayer {
3613
3615
  set userId(value: string);
3614
3616
  }
3615
3617
  }
3618
+ export declare namespace Multiplayer {
3619
+ class SequenceChangedParams extends NativeClassWrapper implements INativeResource {
3620
+ /** @internal */
3621
+ constructor(pointer: NativePointer);
3622
+ static create(): SequenceChangedParams;
3623
+ delete(): void;
3624
+ get updateType(): Multiplayer.ESequenceUpdateType;
3625
+ set updateType(value: Multiplayer.ESequenceUpdateType);
3626
+ get key(): string;
3627
+ set key(value: string);
3628
+ get newKey(): string;
3629
+ set newKey(value: string);
3630
+ }
3631
+ }
3616
3632
  export declare namespace Multiplayer {
3617
3633
  /**
3618
3634
  @ingroup Multiplayer
@@ -3668,6 +3684,11 @@ export declare namespace Multiplayer {
3668
3684
  * @param callback - Callback to receive data for the user permissions that has been changed.
3669
3685
  */
3670
3686
  setUserPermissionsChangedCallback(callback: (arg1: Multiplayer.UserPermissionsParams) => void): void;
3687
+ /**
3688
+ * @description Sets a callback for a sequence changed event.
3689
+ * @param callback - Callback to receive data for the sequence that has been changed.
3690
+ */
3691
+ setSequenceChangedCallback(callback: (arg1: Multiplayer.SequenceChangedParams) => void): void;
3671
3692
  /**
3672
3693
  * @description Registers a callback to listen for the named event.
3673
3694
  * @param eventName - The identifying name for the event to listen for.
@@ -4637,6 +4658,11 @@ export declare namespace Systems {
4637
4658
  * @return Pointer to the organization system class
4638
4659
  */
4639
4660
  getOrganizationSystem(): Systems.OrganizationSystem;
4661
+ /**
4662
+ * @description Retrieves the Sequence system.
4663
+ * @return Pointer to the sequence system class
4664
+ */
4665
+ getSequenceSystem(): Systems.SequenceSystem;
4640
4666
  getSpaceEntitySystem(): Multiplayer.SpaceEntitySystem;
4641
4667
  getMultiplayerConnection(): Multiplayer.MultiplayerConnection;
4642
4668
  }
@@ -5441,6 +5467,26 @@ export declare namespace Systems {
5441
5467
  runScriptFile(contextId: bigint, scriptFilePath: string): boolean;
5442
5468
  }
5443
5469
  }
5470
+ export declare namespace Systems {
5471
+ /**
5472
+ @ingroup Sequence System
5473
+ * @description A basic class abstraction for a sequence, including key, and reference variables, and items.
5474
+ */
5475
+ class Sequence extends NativeClassWrapper implements INativeResource {
5476
+ /** @internal */
5477
+ constructor(pointer: NativePointer);
5478
+ static create(): Sequence;
5479
+ delete(): void;
5480
+ get key(): string;
5481
+ set key(value: string);
5482
+ get referenceType(): string;
5483
+ set referenceType(value: string);
5484
+ get referenceId(): string;
5485
+ set referenceId(value: string);
5486
+ get items(): Common.Array<string>;
5487
+ set items(value: Common.Array<string>);
5488
+ }
5489
+ }
5444
5490
  export declare namespace Systems {
5445
5491
  /**
5446
5492
  @ingroup Settings System
@@ -7403,14 +7449,23 @@ export declare namespace Multiplayer {
7403
7449
  */
7404
7450
  setName(value: string): void;
7405
7451
  /**
7406
- * @description Gets the HotspotType of this Hotspot.
7452
+ * @description Gets the IsTeleportPoint of this Hotspot.
7407
7453
  */
7408
- getHotspotType(): Multiplayer.HotspotType;
7454
+ getIsTeleportPoint(): boolean;
7409
7455
  /**
7410
- * @description Sets the HotspotType of this Hotspot.
7411
- * @param value - The Type of the Hotspot.
7456
+ * @description Sets this Hotspot to be a teleport point.
7457
+ * @param inValue - The teleport point state flag value.
7412
7458
  */
7413
- setHotspotType(value: Multiplayer.HotspotType): void;
7459
+ setIsTeleportPoint(value: boolean): void;
7460
+ /**
7461
+ * @description Gets the IsSpawnPoint of this Hotspot.
7462
+ */
7463
+ getIsSpawnPoint(): boolean;
7464
+ /**
7465
+ * @description Sets this Hotspot to be a spawn point.
7466
+ * @param inValue - The spawn point state flag value.
7467
+ */
7468
+ setIsSpawnPoint(value: boolean): void;
7414
7469
  /**
7415
7470
  * @description Gets a unique identifier for this component in the hierarchy.
7416
7471
  * NOTE: This does not give a complete hierarchy path, only the entityId of the parent for the component.
@@ -9671,6 +9726,90 @@ export declare namespace Systems {
9671
9726
  getTierFeaturesQuota(tierName: Systems.TierNames): Promise<Systems.FeaturesQuotaResult>;
9672
9727
  }
9673
9728
  }
9729
+ export declare namespace Systems {
9730
+ /**
9731
+ @ingroup Sequence System
9732
+ * @description Result structure for a sequence result
9733
+ */
9734
+ class SequenceResult extends Systems.ResultBase implements INativeResource {
9735
+ /** @internal */
9736
+ constructor(pointer: NativePointer);
9737
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.SequenceResult;
9738
+ getSequence(): Systems.Sequence;
9739
+ delete(): void;
9740
+ }
9741
+ }
9742
+ export declare namespace Systems {
9743
+ /**
9744
+ @ingroup Sequence System
9745
+ * @description Data class used to contain information when attempting to get an array of sequences.
9746
+ */
9747
+ class SequencesResult extends Systems.ResultBase implements INativeResource {
9748
+ /** @internal */
9749
+ constructor(pointer: NativePointer);
9750
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.SequencesResult;
9751
+ getSequences(): Common.Array<Systems.Sequence>;
9752
+ delete(): void;
9753
+ }
9754
+ }
9755
+ export declare namespace Systems {
9756
+ /**
9757
+ @ingroup Sequence System
9758
+ * @description Public facing system that allows the management of groupings of items in a space.
9759
+ */
9760
+ class SequenceSystem extends Systems.SystemBase {
9761
+ /** @internal */
9762
+ constructor(pointer: NativePointer);
9763
+ static fromSystemBase(baseInstance: Systems.SystemBase): Systems.SequenceSystem;
9764
+ /**
9765
+ * @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one. This call will fail if the user
9766
+ * isn't a creator of the space.
9767
+ * @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
9768
+ * @param referenceType - The type of reference (GroupId, SpaceId etc.)
9769
+ * @param referenceId - The id of the reference
9770
+ * @param items - An ordered array of members
9771
+ * @param callback - Callback to call when a response is received
9772
+ */
9773
+ createSequence(sequenceKey: string, referenceType: string, referenceId: string, items: Common.Array<string>, callback: (result: Systems.SequenceResult) => void): void;
9774
+ /**
9775
+ * @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
9776
+ * @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
9777
+ * @param referenceType - The type of reference (GroupId, SpaceId etc.)
9778
+ * @param referenceId - The id of the reference
9779
+ * @param items - An ordered array of members
9780
+ * @param callback - Callback to call when a response is received
9781
+ */
9782
+ updateSequence(sequenceKey: string, referenceType: string, referenceId: string, items: Common.Array<string>, callback: (result: Systems.SequenceResult) => void): void;
9783
+ /**
9784
+ * @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
9785
+ * @param oldSequenceKey - The current sequence key name
9786
+ * @param newSequenceKey - The new sequence key name
9787
+ * @param callback - Callback to call when a response is received
9788
+ */
9789
+ renameSequence(oldSequenceKey: string, newSequenceKey: string, callback: (result: Systems.SequenceResult) => void): void;
9790
+ /**
9791
+ * @description Finds sequences based on the given criteria
9792
+ * @param sequenceKeys - An array of sequence keys to search for
9793
+ * @param sequenceKeys - An optional regex string for searching keys
9794
+ * @param referenceType - The type of reference (GroupId, SpaceId etc.). Must be used with ReferenceIds
9795
+ * @param referenceIds - The ids of the reference. Must be used with ReferenceType
9796
+ * @param callback - Callback to call when a response is received
9797
+ */
9798
+ getSequencesByCriteria(sequenceKeys: Common.Array<string>, keyRegex: string, referenceType: string, referenceIds: Common.Array<string>, callback: (result: Systems.SequencesResult) => void): void;
9799
+ /**
9800
+ * @description Gets a sequence by it's key
9801
+ * @param sequenceKey - The unique grouping name
9802
+ * @param callback - Callback to call when a response is received
9803
+ */
9804
+ getSequence(sequenceKey: string, callback: (result: Systems.SequenceResult) => void): void;
9805
+ /**
9806
+ * @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
9807
+ * @param sequenceKeys - An array of sequence keys to delete
9808
+ * @param callback - Callback to call when a response is received
9809
+ */
9810
+ deleteSequences(sequenceKeys: Common.Array<string>, callback: (result: Systems.NullResult) => void): void;
9811
+ }
9812
+ }
9674
9813
  export declare namespace Systems {
9675
9814
  /**
9676
9815
  @ingroup Settings System
@@ -10811,6 +10950,7 @@ export declare namespace Common {
10811
10950
  static ofcsp_systems_FeatureLimitInfo(): Array<Systems.FeatureLimitInfo>;
10812
10951
  static ofcsp_systems_FeatureQuotaInfo(): Array<Systems.FeatureQuotaInfo>;
10813
10952
  static ofcsp_systems_TierFeatures(): Array<Systems.TierFeatures>;
10953
+ static ofcsp_systems_Sequence(): Array<Systems.Sequence>;
10814
10954
  static ofcsp_systems_Site(): Array<Systems.Site>;
10815
10955
  static ofcsp_systems_GeoLocation(): Array<Systems.GeoLocation>;
10816
10956
  static ofcsp_systems_Space(): Array<Systems.Space>;
@@ -10851,6 +10991,7 @@ export declare namespace Common {
10851
10991
  static ofcsp_systems_FeatureLimitInfo_number(size: number): Array<Systems.FeatureLimitInfo>;
10852
10992
  static ofcsp_systems_FeatureQuotaInfo_number(size: number): Array<Systems.FeatureQuotaInfo>;
10853
10993
  static ofcsp_systems_TierFeatures_number(size: number): Array<Systems.TierFeatures>;
10994
+ static ofcsp_systems_Sequence_number(size: number): Array<Systems.Sequence>;
10854
10995
  static ofcsp_systems_Site_number(size: number): Array<Systems.Site>;
10855
10996
  static ofcsp_systems_GeoLocation_number(size: number): Array<Systems.GeoLocation>;
10856
10997
  static ofcsp_systems_Space_number(size: number): Array<Systems.Space>;