connected-spaces-platform.web 5.1.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,8 @@ export declare namespace Multiplayer {
130
130
  FiducialMarker = 23,
131
131
  GaussianSplat = 24,
132
132
  Text = 25,
133
- Hotspot = 26
133
+ Hotspot = 26,
134
+ CinematicCamera = 27
134
135
  }
135
136
  }
136
137
  export declare namespace Multiplayer {
@@ -162,7 +163,8 @@ export declare namespace Multiplayer {
162
163
  Create = 0,
163
164
  Update = 1,
164
165
  Rename = 2,
165
- Delete = 3
166
+ Delete = 3,
167
+ Invalid = 4
166
168
  }
167
169
  }
168
170
  export declare namespace Multiplayer {
@@ -198,8 +200,9 @@ export declare namespace Multiplayer {
198
200
  Integer = 2,
199
201
  Float = 3,
200
202
  String = 4,
201
- Vector3 = 5,
202
- Vector4 = 6
203
+ Vector2 = 5,
204
+ Vector3 = 6,
205
+ Vector4 = 7
203
206
  }
204
207
  }
205
208
  export declare namespace Multiplayer {
@@ -405,6 +408,27 @@ export declare namespace Multiplayer {
405
408
  Num = 10
406
409
  }
407
410
  }
411
+ export declare namespace Multiplayer {
412
+ /**
413
+ * @description Enumerates the list of properties that can be replicated for a CinematicCamera component.
414
+ */
415
+ enum CinematicCameraPropertyKeys {
416
+ Position = 0,
417
+ Rotation = 1,
418
+ IsEnabled = 2,
419
+ FocalLength = 3,
420
+ AspectRatio = 4,
421
+ SensorSize = 5,
422
+ NearClip = 6,
423
+ FarClip = 7,
424
+ Iso = 8,
425
+ ShutterSpeed = 9,
426
+ Aperture = 10,
427
+ IsViewerCamera = 11,
428
+ ThirdPartyComponentRef = 12,
429
+ Num = 13
430
+ }
431
+ }
408
432
  export declare namespace Multiplayer {
409
433
  /**
410
434
  * @description Enumerates the list of properties that can be replicated for a collision component.
@@ -1196,6 +1220,11 @@ export declare namespace Multiplayer {
1196
1220
  * @param value - The value to write.
1197
1221
  */
1198
1222
  writeString: (value: string) => void;
1223
+ /**
1224
+ * @description Write a vector2 field of the entity.
1225
+ * @param value - The value to write.
1226
+ */
1227
+ writeVector2: (value: Common.Vector2) => void;
1199
1228
  /**
1200
1229
  * @description Write a vector3 field of the entity.
1201
1230
  * @param value - The value to write.
@@ -1297,6 +1326,11 @@ export declare namespace Multiplayer {
1297
1326
  * @return The deserialised string.
1298
1327
  */
1299
1328
  readString: () => string;
1329
+ /**
1330
+ * @description Reads a vector2 from the deserialiser.
1331
+ * @return The deserialised vector2.
1332
+ */
1333
+ readVector2: () => Common.Vector2;
1300
1334
  /**
1301
1335
  * @description Reads a vector3 from the deserialiser.
1302
1336
  * @return The deserialised vector3.
@@ -3432,6 +3466,60 @@ export declare namespace Common {
3432
3466
  getVector4(): Common.Vector4;
3433
3467
  }
3434
3468
  }
3469
+ export declare namespace Common {
3470
+ /**
3471
+ * @description Represents a 2 dimensional vector.
3472
+ */
3473
+ class Vector2 extends NativeClassWrapper implements INativeResource {
3474
+ /** @internal */
3475
+ constructor(pointer: NativePointer);
3476
+ /**
3477
+ * @description Returns a Vector2 with all fields set to 0.
3478
+ * @return Const vector2&
3479
+ */
3480
+ static zero(): Common.Vector2;
3481
+ /**
3482
+ * @description Returns a Vector2 with all fields set to 1.
3483
+ * @return Const vector2&
3484
+ */
3485
+ static one(): Common.Vector2;
3486
+ /**
3487
+ * @description Constructs a Vector2 with all fields set to 0.
3488
+ */
3489
+ static create(): Vector2;
3490
+ /**
3491
+ * @description Constructs a Vector2 with the given x, y values.
3492
+ * @param x - Float
3493
+ * @param y - Float
3494
+ */
3495
+ static create_x_y(x: number, y: number): Vector2;
3496
+ /**
3497
+ * @description Member by member addition with another Vector2
3498
+ * @param vector2 - Other
3499
+ */
3500
+ /**
3501
+ * @description Subtracts another Vector2 from this one
3502
+ * @param vector2 - Other
3503
+ */
3504
+ /**
3505
+ * @description Divides the Vector2 by divisor
3506
+ * @param float - Divisor
3507
+ */
3508
+ /**
3509
+ * @description Member by member multiplication with another Vector2
3510
+ * @param vector2 - Other
3511
+ */
3512
+ /**
3513
+ * @description Multiplies the Vector2 by a scalar
3514
+ * @param float - Scalar
3515
+ */
3516
+ delete(): void;
3517
+ get x(): number;
3518
+ set x(value: number);
3519
+ get y(): number;
3520
+ set y(value: number);
3521
+ }
3522
+ }
3435
3523
  export declare namespace Common {
3436
3524
  /**
3437
3525
  * @description Represents a 3 dimensional vector.
@@ -3701,6 +3789,22 @@ export declare namespace Multiplayer {
3701
3789
  set isRoot(value: boolean);
3702
3790
  }
3703
3791
  }
3792
+ export declare namespace Multiplayer {
3793
+ class SequenceHotspotChangedParams extends NativeClassWrapper implements INativeResource {
3794
+ /** @internal */
3795
+ constructor(pointer: NativePointer);
3796
+ static create(): SequenceHotspotChangedParams;
3797
+ delete(): void;
3798
+ get updateType(): Multiplayer.ESequenceUpdateType;
3799
+ set updateType(value: Multiplayer.ESequenceUpdateType);
3800
+ get spaceId(): string;
3801
+ set spaceId(value: string);
3802
+ get name(): string;
3803
+ set name(value: string);
3804
+ get newName(): string;
3805
+ set newName(value: string);
3806
+ }
3807
+ }
3704
3808
  export declare namespace Multiplayer {
3705
3809
  /**
3706
3810
  @ingroup Multiplayer
@@ -3761,6 +3865,11 @@ export declare namespace Multiplayer {
3761
3865
  * @param callback - Callback to receive data for the sequence that has been changed.
3762
3866
  */
3763
3867
  setSequenceChangedCallback(callback: (arg1: Multiplayer.SequenceChangedParams) => void): void;
3868
+ /**
3869
+ * @description Sets a callback to be fired when a hotspot sequence is changed.
3870
+ * @param callback - Callback to receive data for the hotspot sequence that has been changed.
3871
+ */
3872
+ setHotspotSequenceChangedCallback(callback: (arg1: Multiplayer.SequenceHotspotChangedParams) => void): void;
3764
3873
  /**
3765
3874
  * @description Registers a callback to listen for the named event.
3766
3875
  * @param eventName - The identifying name for the event to listen for.
@@ -3835,6 +3944,11 @@ export declare namespace Multiplayer {
3835
3944
  * @param inStringValue - Initial value.
3836
3945
  */
3837
3946
  static create_stringValue(stringValue: string): ReplicatedValue;
3947
+ /**
3948
+ * @description Construct a ReplicatedValue based on a csp::common::Vector2 type.
3949
+ * @param inVector2Value - Initial value.
3950
+ */
3951
+ static create_vector2Value(vector2Value: Common.Vector2): ReplicatedValue;
3838
3952
  /**
3839
3953
  * @description Construct a ReplicatedValue based on a csp::common::Vector3 type.
3840
3954
  * @param inVector3Value - Initial value.
@@ -3911,6 +4025,16 @@ export declare namespace Multiplayer {
3911
4025
  * /// @return csp::common::String&
3912
4026
  */
3913
4027
  getString(): string;
4028
+ /**
4029
+ * @description Set a Vector2 value for this replicated value from a csp::common::Vector2, will overwrite and previous value.
4030
+ */
4031
+ setVector2(value: Common.Vector2): void;
4032
+ /**
4033
+ * @description Get a csp::common::Vector2 value from this replicated value, will assert if not a csp::common::Vector2 type.
4034
+ * /// Use ReplicatedValue::GetReplicatedValueType to ensure type before accessing.
4035
+ * /// @return csp::common::Vector2
4036
+ */
4037
+ getVector2(): Common.Vector2;
3914
4038
  /**
3915
4039
  * @description Set a Vector3 value for this replicated value from a csp::common::Vector3, will overwrite and previous value.
3916
4040
  */
@@ -6041,7 +6165,7 @@ export declare namespace Systems {
6041
6165
  }
6042
6166
  export declare namespace Systems {
6043
6167
  /**
6044
- * @description Data structure for an Agora user token, giving userID, channel name and settings regarding sharing of audio/video/screenshare.
6168
+ * @description Data structure for an Agora user token, giving userID, referenceID, channel name and settings regarding sharing of audio/video/screenshare.
6045
6169
  */
6046
6170
  class AgoraUserTokenParams extends NativeClassWrapper implements INativeResource {
6047
6171
  /** @internal */
@@ -6052,6 +6176,8 @@ export declare namespace Systems {
6052
6176
  set agoraUserId(value: string);
6053
6177
  get channelName(): string;
6054
6178
  set channelName(value: string);
6179
+ get referenceId(): string;
6180
+ set referenceId(value: string);
6055
6181
  get lifespan(): number;
6056
6182
  set lifespan(value: number);
6057
6183
  get readOnly(): boolean;
@@ -6778,6 +6904,173 @@ export declare namespace Multiplayer {
6778
6904
  delete(): void;
6779
6905
  }
6780
6906
  }
6907
+ export declare namespace Multiplayer {
6908
+ /**
6909
+ @ingroup CinematicCameraSpaceComponent
6910
+ * @description Data representation of an CinematicCameraSpaceComponent.
6911
+ */
6912
+ class CinematicCameraSpaceComponent extends Multiplayer.ComponentBase implements Multiplayer.IThirdPartyComponentRef, Multiplayer.IPositionComponent, Multiplayer.IRotationComponent, Multiplayer.IEnableableComponent, INativeResource {
6913
+ /** @internal */
6914
+ constructor(pointer: NativePointer);
6915
+ static fromComponentBase(baseInstance: Multiplayer.ComponentBase): Multiplayer.CinematicCameraSpaceComponent;
6916
+ /**
6917
+ * @description Constructs the CinematicCamera space component, and associates it with the specified Parent space entity.
6918
+ * @param parent - The Space entity that owns this component.
6919
+ */
6920
+ static create_parent(parent: Multiplayer.SpaceEntity): CinematicCameraSpaceComponent;
6921
+ /**
6922
+ * @description Gived the sensor size and focal length, return the horizonal fov
6923
+ * @return FOV in degrees
6924
+ */
6925
+ getFov(): number;
6926
+ /**
6927
+ * \addtogroup IPositionComponent
6928
+ @{
6929
+ @copydoc IPositionComponent::GetPosition()
6930
+ */
6931
+ getPosition(): Common.Vector3;
6932
+ /**
6933
+ @copydoc IPositionComponent::SetPosition()
6934
+ */
6935
+ setPosition(value: Common.Vector3): void;
6936
+ /**
6937
+ @}
6938
+ * \addtogroup IRotationComponent
6939
+ @{
6940
+ @copydoc IRotationComponent::GetRotation()
6941
+ */
6942
+ getRotation(): Common.Vector4;
6943
+ /**
6944
+ @copydoc IRotationComponent::SetRotation()
6945
+ */
6946
+ setRotation(value: Common.Vector4): void;
6947
+ /**
6948
+ @}
6949
+ * @description Get focal length
6950
+ * @return Current focal length
6951
+ */
6952
+ getFocalLength(): number;
6953
+ /**
6954
+ * @description Set focalLength
6955
+ * Note: Effects the result of GetFov()
6956
+ * @param value - Focallength
6957
+ */
6958
+ setFocalLength(value: number): void;
6959
+ /**
6960
+ * @description Get Current aspect ratio
6961
+ * @return Current aspect ratio
6962
+ */
6963
+ getAspectRatio(): number;
6964
+ /**
6965
+ * @description Set Current aspect ratio
6966
+ * @param value - Current aspect ratio
6967
+ */
6968
+ setAspectRatio(value: number): void;
6969
+ /**
6970
+ * @description Get sensor size
6971
+ * @return Current sensor size
6972
+ */
6973
+ getSensorSize(): Common.Vector2;
6974
+ /**
6975
+ * @description Set Current SensorSize
6976
+ * @param value - Current SensorSize
6977
+ */
6978
+ setSensorSize(value: Common.Vector2): void;
6979
+ /**
6980
+ * @description Get near clip
6981
+ * Note: On platforms that don't support reversedZ, near clip should be used to control the clipping distance
6982
+ * @return Current near clip
6983
+ */
6984
+ getNearClip(): number;
6985
+ /**
6986
+ * @description Set near clip
6987
+ * @param value - Near clip
6988
+ */
6989
+ setNearClip(value: number): void;
6990
+ /**
6991
+ * @description Get far clip
6992
+ * Note: On platforms that don't support reversedZ, far clip should be used to control the clipping distance
6993
+ * @return Current far clip
6994
+ */
6995
+ getFarClip(): number;
6996
+ /**
6997
+ * @description Set far clip
6998
+ * Note: far clip, controls how the density increases and height decreases. Smaller values make the visible transition larger.
6999
+ * @param value - Far clip
7000
+ */
7001
+ setFarClip(value: number): void;
7002
+ /**
7003
+ * @description Get ISO sensitivity for controlling exposure.
7004
+ * Note: reserved for future use, do not implement on clients
7005
+ * @return Current iso
7006
+ */
7007
+ getIso(): number;
7008
+ /**
7009
+ * @description Set ISO sensitivity for controlling exposure.
7010
+ * Note: reserved for future use, do not implement on clients
7011
+ * @param value - ISO sensitivity for controlling exposure.
7012
+ */
7013
+ setIso(value: number): void;
7014
+ /**
7015
+ * @description Get shutter speed.
7016
+ * Note: reserved for future use, do not implement on clients
7017
+ * @param value - Shutter speed
7018
+ */
7019
+ getShutterSpeed(): number;
7020
+ /**
7021
+ * @description Set shutter speed
7022
+ * Note: reserved for future use, do not implement on clients
7023
+ * @param value - Shutter speed
7024
+ */
7025
+ setShutterSpeed(value: number): void;
7026
+ /**
7027
+ * @description Get aperture.
7028
+ * Note: reserved for future use, do not implement on clients
7029
+ * @param value - Aperture
7030
+ */
7031
+ getAperture(): number;
7032
+ /**
7033
+ * @description Set aperture
7034
+ * Note: reserved for future use, do not implement on clients
7035
+ * @param value - Aperture flag
7036
+ */
7037
+ setAperture(value: number): void;
7038
+ /**
7039
+ * @description Get IsViewerCamera.
7040
+ * Note: reserved for future use, do not implement on clients
7041
+ * @param value - IsViewerCamera
7042
+ */
7043
+ getIsViewerCamera(): boolean;
7044
+ /**
7045
+ * @description Set IsViewerCamera
7046
+ * Note: reserved for future use, do not implement on clients
7047
+ * @param value - IsViewerCamera Flag
7048
+ */
7049
+ setIsViewerCamera(value: boolean): void;
7050
+ /**
7051
+ * \addtogroup IEnableableComponent
7052
+ @{
7053
+ @copydoc IEnableableComponent::GetIsEnabled()
7054
+ */
7055
+ getIsEnabled(): boolean;
7056
+ /**
7057
+ @copydoc IEnableableComponent::SetIsEnabled()
7058
+ */
7059
+ setIsEnabled(value: boolean): void;
7060
+ /**
7061
+ @}
7062
+ * \addtogroup IThirdPartyComponentRef
7063
+ @{
7064
+ @copydoc IThirdPartyComponentRef::GetThirdPartyComponentRef()
7065
+ */
7066
+ getThirdPartyComponentRef(): string;
7067
+ /**
7068
+ @copydoc IThirdPartyComponentRef::SetThirdPartyComponentRef()
7069
+ */
7070
+ setThirdPartyComponentRef(value: string): void;
7071
+ delete(): void;
7072
+ }
7073
+ }
6781
7074
  export declare namespace Multiplayer {
6782
7075
  /**
6783
7076
  @ingroup CollisionSpaceComponent
@@ -9749,6 +10042,13 @@ export declare namespace Systems {
9749
10042
  */
9750
10043
  deleteHotspotGroup(groupName: string): Promise<Systems.NullResult>;
9751
10044
  delete(): void;
10045
+ /**
10046
+ * @description This will delete any groups which only contain this item
10047
+ * For any groups which contanin the given item and additional items, it will just update the group by removing the given item.
10048
+ * @param itemName - An item to update all sequences containing.
10049
+ * @param callback - Callback to call when a response is received
10050
+ */
10051
+ removeItemFromGroups(itemName: string): Promise<Systems.NullResult>;
9752
10052
  }
9753
10053
  }
9754
10054
  export declare namespace Systems {
@@ -10164,6 +10464,14 @@ export declare namespace Systems {
10164
10464
  * @param callback - Callback to call when a response is received
10165
10465
  */
10166
10466
  getSequencesByCriteria(sequenceKeys: Common.Array<string>, keyRegex: string | null, referenceType: string | null, referenceIds: Common.Array<string>, metaData: Common.Map<string, string>): Promise<Systems.SequencesResult>;
10467
+ /**
10468
+ * @description Finds all sequences that contain the given items
10469
+ * @param items - An array of items which should be searched for
10470
+ * @param referenceType - The type of reference (GroupId etc.). Must be used with ReferenceIds
10471
+ * @param referenceIds - The ids of the reference. Must be used with ReferenceType
10472
+ * @param callback - Callback to call when a response is received
10473
+ */
10474
+ getAllSequencesContainingItems(items: Common.Array<string>, referenceType: string | null, referenceIds: Common.Array<string>): Promise<Systems.SequencesResult>;
10167
10475
  /**
10168
10476
  * @description Gets a sequence by it's key
10169
10477
  * NOTE: This call will fail (Reason InvalidSequenceKey) if the SequenceKey parameter contains invalid keys, such as spaces, '/' or '%'