connected-spaces-platform.web 5.3.1 → 5.5.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 +33 -83
- 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 +36 -111
- package/connectedspacesplatform.js +82 -404
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +171 -742
- package/package.json +1 -1
|
Binary file
|
|
@@ -202,7 +202,8 @@ export declare namespace Multiplayer {
|
|
|
202
202
|
String = 4,
|
|
203
203
|
Vector2 = 5,
|
|
204
204
|
Vector3 = 6,
|
|
205
|
-
Vector4 = 7
|
|
205
|
+
Vector4 = 7,
|
|
206
|
+
Map = 8
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
export declare namespace Multiplayer {
|
|
@@ -3775,20 +3776,6 @@ export declare namespace Multiplayer {
|
|
|
3775
3776
|
set newKey(value: string);
|
|
3776
3777
|
}
|
|
3777
3778
|
}
|
|
3778
|
-
export declare namespace Multiplayer {
|
|
3779
|
-
class SequenceHierarchyChangedParams extends NativeClassWrapper implements INativeResource {
|
|
3780
|
-
/** @internal */
|
|
3781
|
-
constructor(pointer: NativePointer);
|
|
3782
|
-
static create(): SequenceHierarchyChangedParams;
|
|
3783
|
-
delete(): void;
|
|
3784
|
-
get updateType(): Multiplayer.ESequenceUpdateType;
|
|
3785
|
-
set updateType(value: Multiplayer.ESequenceUpdateType);
|
|
3786
|
-
get parentId(): bigint;
|
|
3787
|
-
set parentId(value: bigint);
|
|
3788
|
-
get isRoot(): boolean;
|
|
3789
|
-
set isRoot(value: boolean);
|
|
3790
|
-
}
|
|
3791
|
-
}
|
|
3792
3779
|
export declare namespace Multiplayer {
|
|
3793
3780
|
class SequenceHotspotChangedParams extends NativeClassWrapper implements INativeResource {
|
|
3794
3781
|
/** @internal */
|
|
@@ -3959,6 +3946,11 @@ export declare namespace Multiplayer {
|
|
|
3959
3946
|
* @param inVector4Value - Initial value.
|
|
3960
3947
|
*/
|
|
3961
3948
|
static create_vector4Value(vector4Value: Common.Vector4): ReplicatedValue;
|
|
3949
|
+
/**
|
|
3950
|
+
* @description Construct a ReplicatedValue based on an csp::common::Map type.
|
|
3951
|
+
* @param inMapValue - Initial value.
|
|
3952
|
+
*/
|
|
3953
|
+
static create_mapValue(mapValue: Common.Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue>): ReplicatedValue;
|
|
3962
3954
|
/**
|
|
3963
3955
|
* @description Copy constructor
|
|
3964
3956
|
* @param other - The value to copy.
|
|
@@ -3980,6 +3972,14 @@ export declare namespace Multiplayer {
|
|
|
3980
3972
|
* @description Non equality operator overload.
|
|
3981
3973
|
* @param replicatedValue - Other value to compare to.
|
|
3982
3974
|
*/
|
|
3975
|
+
/**
|
|
3976
|
+
* @description Less than operator overload.
|
|
3977
|
+
* @param replicatedValue - Other value to compare to.
|
|
3978
|
+
*/
|
|
3979
|
+
/**
|
|
3980
|
+
* @description Greater than operator overload.
|
|
3981
|
+
* @param replicatedValue - Other value to compare to.
|
|
3982
|
+
*/
|
|
3983
3983
|
/**
|
|
3984
3984
|
* @description Gets the type of replicated value.
|
|
3985
3985
|
* @return Enum representing all supported replication base types.
|
|
@@ -4055,24 +4055,16 @@ export declare namespace Multiplayer {
|
|
|
4055
4055
|
* /// @return csp::common::Vector4
|
|
4056
4056
|
*/
|
|
4057
4057
|
getVector4(): Common.Vector4;
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
constructor(pointer: NativePointer);
|
|
4069
|
-
hasParent(): boolean;
|
|
4070
|
-
static create(): SequenceHierarchy;
|
|
4071
|
-
delete(): void;
|
|
4072
|
-
get ids(): Common.Array<bigint>;
|
|
4073
|
-
set ids(value: Common.Array<bigint>);
|
|
4074
|
-
get parentId(): bigint;
|
|
4075
|
-
set parentId(value: bigint);
|
|
4058
|
+
/**
|
|
4059
|
+
* @description Get a csp::common::Map value from this replicated value, will assert if not a csp::common::Map type.
|
|
4060
|
+
* /// Use ReplicatedValue::GetReplicatedValueType to ensure type before accessing.
|
|
4061
|
+
* /// @return csp::common::Map
|
|
4062
|
+
*/
|
|
4063
|
+
getMap(): Common.Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue>;
|
|
4064
|
+
/**
|
|
4065
|
+
* @description Set a Map value for this replicated value from a csp::common::Map, will overwrite and previous value.
|
|
4066
|
+
*/
|
|
4067
|
+
setMap(value: Common.Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue>): void;
|
|
4076
4068
|
}
|
|
4077
4069
|
}
|
|
4078
4070
|
export declare namespace Multiplayer {
|
|
@@ -4594,43 +4586,6 @@ export declare namespace Multiplayer {
|
|
|
4594
4586
|
* @return A list of root entities.
|
|
4595
4587
|
*/
|
|
4596
4588
|
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity>;
|
|
4597
|
-
/**
|
|
4598
|
-
* @description Creates an entity hierarchy for a given parent entity id. Pass null to create a hiererchy for the root.
|
|
4599
|
-
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
4600
|
-
* @param hierarchyItemIds - An array of entity ids.
|
|
4601
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
4602
|
-
*/
|
|
4603
|
-
createSequenceHierarchy(parentId: bigint | null, hierarchyItemIds: Common.Array<bigint>): Promise<Multiplayer.SequenceHierarchyResult>;
|
|
4604
|
-
/**
|
|
4605
|
-
* @description Updates an entity hierarchy for a given parent entity id. Pass null to update the root.
|
|
4606
|
-
* This will create a hierarchy if it doesnt exist.
|
|
4607
|
-
* @param parentId - An optional parent. Pass null to create a hiererchy for the root.
|
|
4608
|
-
* @param hierarchyItemIds - An array of entity ids.
|
|
4609
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
4610
|
-
*/
|
|
4611
|
-
updateSequenceHierarchy(parentId: bigint | null, hierarchyItemIds: Common.Array<bigint>): Promise<Multiplayer.SequenceHierarchyResult>;
|
|
4612
|
-
/**
|
|
4613
|
-
* @description Gets an entity hierarchy for a given parent entity id. Pass null to get the root hierarchy.
|
|
4614
|
-
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
4615
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
4616
|
-
*/
|
|
4617
|
-
getSequenceHierarchy(parentId: bigint | null): Promise<Multiplayer.SequenceHierarchyResult>;
|
|
4618
|
-
/**
|
|
4619
|
-
* @description Gets all hierarchies for a space
|
|
4620
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
4621
|
-
*/
|
|
4622
|
-
getAllSequenceHierarchies(): Promise<Multiplayer.SequenceHierarchyCollectionResult>;
|
|
4623
|
-
/**
|
|
4624
|
-
* @description Deletes an entity hierarchy for a given parent entity id. Pass null to delete the root hierarchy.
|
|
4625
|
-
* @param parentId - An optional parent. Pass null to get the root hierarchy.
|
|
4626
|
-
* @param callback - A callback when the asynchronous task finishes.
|
|
4627
|
-
*/
|
|
4628
|
-
deleteSequenceHierarchy(parentId: bigint | null): Promise<Systems.NullResult>;
|
|
4629
|
-
/**
|
|
4630
|
-
* @description Sets a callback for a sequence hierarchy changed event.
|
|
4631
|
-
* @param callback - Callback to receive data for the sequence hierarchy that has been changed.
|
|
4632
|
-
*/
|
|
4633
|
-
setSequenceHierarchyChangedCallback(callback: (arg1: Multiplayer.SequenceHierarchyChangedParams) => void): void;
|
|
4634
4589
|
}
|
|
4635
4590
|
}
|
|
4636
4591
|
export declare namespace Multiplayer {
|
|
@@ -6251,38 +6206,6 @@ export declare namespace Systems {
|
|
|
6251
6206
|
isLocalUserMuted(): boolean;
|
|
6252
6207
|
}
|
|
6253
6208
|
}
|
|
6254
|
-
export declare namespace Multiplayer {
|
|
6255
|
-
/**
|
|
6256
|
-
@ingroup Space Entity System
|
|
6257
|
-
* @description Data class used to contain information when attempting to get a sequence hierarchy
|
|
6258
|
-
*/
|
|
6259
|
-
class SequenceHierarchyResult extends Systems.ResultBase implements INativeResource {
|
|
6260
|
-
/** @internal */
|
|
6261
|
-
constructor(pointer: NativePointer);
|
|
6262
|
-
static fromResultBase(baseInstance: Systems.ResultBase): Multiplayer.SequenceHierarchyResult;
|
|
6263
|
-
/**
|
|
6264
|
-
* @description Retreives the SequenceHierarchy from the result.
|
|
6265
|
-
*/
|
|
6266
|
-
getSequenceHierarchy(): Multiplayer.SequenceHierarchy;
|
|
6267
|
-
delete(): void;
|
|
6268
|
-
}
|
|
6269
|
-
}
|
|
6270
|
-
export declare namespace Multiplayer {
|
|
6271
|
-
/**
|
|
6272
|
-
@ingroup Space Entity System
|
|
6273
|
-
* @description Data class used to contain information when attempting to get an array of sequence hierachies
|
|
6274
|
-
*/
|
|
6275
|
-
class SequenceHierarchyCollectionResult extends Systems.ResultBase implements INativeResource {
|
|
6276
|
-
/** @internal */
|
|
6277
|
-
constructor(pointer: NativePointer);
|
|
6278
|
-
static fromResultBase(baseInstance: Systems.ResultBase): Multiplayer.SequenceHierarchyCollectionResult;
|
|
6279
|
-
/**
|
|
6280
|
-
* @description Retreives the SequenceHierarchies from the result.
|
|
6281
|
-
*/
|
|
6282
|
-
getSequenceHierarchyCollection(): Common.Array<Multiplayer.SequenceHierarchy>;
|
|
6283
|
-
delete(): void;
|
|
6284
|
-
}
|
|
6285
|
-
}
|
|
6286
6209
|
export declare namespace Multiplayer {
|
|
6287
6210
|
/**
|
|
6288
6211
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -6920,7 +6843,7 @@ export declare namespace Multiplayer {
|
|
|
6920
6843
|
static create_parent(parent: Multiplayer.SpaceEntity): CinematicCameraSpaceComponent;
|
|
6921
6844
|
/**
|
|
6922
6845
|
* @description Gived the sensor size and focal length, return the horizonal fov
|
|
6923
|
-
* @return FOV in
|
|
6846
|
+
* @return FOV in radians
|
|
6924
6847
|
*/
|
|
6925
6848
|
getFov(): number;
|
|
6926
6849
|
/**
|
|
@@ -9467,9 +9390,10 @@ export declare namespace Systems {
|
|
|
9467
9390
|
* @description Updates the Metadata field of an Asset Collection
|
|
9468
9391
|
* @param assetCollection - Asset collection to be updated
|
|
9469
9392
|
* @param newMetadata - The new metadata information that will replace the previous
|
|
9393
|
+
* @param tags - Optional array of strings to replace the tags
|
|
9470
9394
|
* @param callback - Callback when asynchronous task finishes
|
|
9471
9395
|
*/
|
|
9472
|
-
updateAssetCollectionMetadata(assetCollection: Systems.AssetCollection, newMetadata: Common.Map<string, string>): Promise<Systems.AssetCollectionResult>;
|
|
9396
|
+
updateAssetCollectionMetadata(assetCollection: Systems.AssetCollection, newMetadata: Common.Map<string, string>, tags: Common.Array<string> | null): Promise<Systems.AssetCollectionResult>;
|
|
9473
9397
|
/**
|
|
9474
9398
|
* @description Creates a new asset.
|
|
9475
9399
|
* @param assetCollection - The parent collection for the asset to be associated with
|
|
@@ -10877,9 +10801,10 @@ export declare namespace Systems {
|
|
|
10877
10801
|
* their emails and roles
|
|
10878
10802
|
* @param metadata - Metadata information for the new space
|
|
10879
10803
|
* @param fileThumbnail - Optional thumbnail image for the new space
|
|
10804
|
+
* @param tags - Optional array of strings to set the metadata tags for the new space
|
|
10880
10805
|
* @param callback - Callback when asynchronous task finishes
|
|
10881
10806
|
*/
|
|
10882
|
-
createSpace(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, fileThumbnail: Systems.FileAssetDataSource | null): Promise<Systems.SpaceResult>;
|
|
10807
|
+
createSpace(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, fileThumbnail: Systems.FileAssetDataSource | null, tags: Common.Array<string> | null): Promise<Systems.SpaceResult>;
|
|
10883
10808
|
/**
|
|
10884
10809
|
* @description Creates a new space Using BufferAssetDataSource.
|
|
10885
10810
|
* @param name - Name for the new space
|
|
@@ -10889,9 +10814,10 @@ export declare namespace Systems {
|
|
|
10889
10814
|
* their emails and roles
|
|
10890
10815
|
* @param metadata - Metadata information for the new space
|
|
10891
10816
|
* @param thumbnail - Thumbnail image buffer for the new space
|
|
10817
|
+
* @param tags - Optional array of strings to set the metadata tags for the new space
|
|
10892
10818
|
* @param callback - Callback when asynchronous task finishes
|
|
10893
10819
|
*/
|
|
10894
|
-
createSpaceWithBuffer(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, thumbnail: Systems.BufferAssetDataSource): Promise<Systems.SpaceResult>;
|
|
10820
|
+
createSpaceWithBuffer(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, thumbnail: Systems.BufferAssetDataSource, tags: Common.Array<string> | null): Promise<Systems.SpaceResult>;
|
|
10895
10821
|
/**
|
|
10896
10822
|
* @description Updates the name and/or the description of a Space
|
|
10897
10823
|
* @param space - The space to update
|
|
@@ -11019,9 +10945,10 @@ export declare namespace Systems {
|
|
|
11019
10945
|
* @description Updates the Space metadata information with the new one provided
|
|
11020
10946
|
* @param spaceId - ID of Space for which the metadata will be updated
|
|
11021
10947
|
* @param newMetadata - New metadata information that will replace the previous one
|
|
10948
|
+
* @param tags - Optional array of strings to replace the tags in the metadata
|
|
11022
10949
|
* @param callback - Callback when asynchronous task finishes
|
|
11023
10950
|
*/
|
|
11024
|
-
updateSpaceMetadata(spaceId: string, newMetadata: Common.Map<string, string>): Promise<Systems.NullResult>;
|
|
10951
|
+
updateSpaceMetadata(spaceId: string, newMetadata: Common.Map<string, string>, tags: Common.Array<string> | null): Promise<Systems.NullResult>;
|
|
11025
10952
|
/**
|
|
11026
10953
|
* @description Retrieves Spaces metadata information
|
|
11027
10954
|
* @param spaces - Spaces for which metadata will be retrieved
|
|
@@ -11622,8 +11549,6 @@ export declare namespace Common {
|
|
|
11622
11549
|
static ofcsp_multiplayer_ReplicatedValue(): Array<Multiplayer.ReplicatedValue>;
|
|
11623
11550
|
static ofcsp_multiplayer_ComponentUpdateInfo(): Array<Multiplayer.ComponentUpdateInfo>;
|
|
11624
11551
|
static ofcsp_systems_SpaceUserRole(): Array<Systems.SpaceUserRole>;
|
|
11625
|
-
static ofuint64_t(): Array<bigint>;
|
|
11626
|
-
static ofcsp_multiplayer_SequenceHierarchy(): Array<Multiplayer.SequenceHierarchy>;
|
|
11627
11552
|
static ofcsp_multiplayer_MessageInfo(): Array<Multiplayer.MessageInfo>;
|
|
11628
11553
|
static ofString(): Array<string>;
|
|
11629
11554
|
static ofcsp_systems_EAssetPlatform(): Array<Systems.EAssetPlatform>;
|
|
@@ -11666,8 +11591,6 @@ export declare namespace Common {
|
|
|
11666
11591
|
static ofcsp_multiplayer_ReplicatedValue_number(size: number): Array<Multiplayer.ReplicatedValue>;
|
|
11667
11592
|
static ofcsp_multiplayer_ComponentUpdateInfo_number(size: number): Array<Multiplayer.ComponentUpdateInfo>;
|
|
11668
11593
|
static ofcsp_systems_SpaceUserRole_number(size: number): Array<Systems.SpaceUserRole>;
|
|
11669
|
-
static ofuint64_t_number(size: number): Array<bigint>;
|
|
11670
|
-
static ofcsp_multiplayer_SequenceHierarchy_number(size: number): Array<Multiplayer.SequenceHierarchy>;
|
|
11671
11594
|
static ofcsp_multiplayer_MessageInfo_number(size: number): Array<Multiplayer.MessageInfo>;
|
|
11672
11595
|
static ofString_number(size: number): Array<string>;
|
|
11673
11596
|
static ofcsp_systems_EAssetPlatform_number(size: number): Array<Systems.EAssetPlatform>;
|
|
@@ -11750,10 +11673,12 @@ export declare namespace Common {
|
|
|
11750
11673
|
private TValueTypeFactory;
|
|
11751
11674
|
private TValueTypeName;
|
|
11752
11675
|
static ofUInt32Andcsp_multiplayer_ReplicatedValue(): Map<number, Multiplayer.ReplicatedValue>;
|
|
11676
|
+
static ofcsp_multiplayer_ReplicatedValueAndcsp_multiplayer_ReplicatedValue(): Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue>;
|
|
11753
11677
|
static ofUInt16Andcsp_multiplayer_ComponentBase(): Map<number, Multiplayer.ComponentBase>;
|
|
11754
11678
|
static ofStringAndString(): Map<string, string>;
|
|
11755
11679
|
static ofStringAndcsp_common_Map_String_String(): Map<string, Common.Map<string, string>>;
|
|
11756
11680
|
static ofUInt32Andcsp_multiplayer_ReplicatedValue_Map(other: Common.Map<number, Multiplayer.ReplicatedValue>): Map<number, Multiplayer.ReplicatedValue>;
|
|
11681
|
+
static ofcsp_multiplayer_ReplicatedValueAndcsp_multiplayer_ReplicatedValue_Map(other: Common.Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue>): Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue>;
|
|
11757
11682
|
static ofUInt16Andcsp_multiplayer_ComponentBase_Map(other: Common.Map<number, Multiplayer.ComponentBase>): Map<number, Multiplayer.ComponentBase>;
|
|
11758
11683
|
static ofStringAndString_Map(other: Common.Map<string, string>): Map<string, string>;
|
|
11759
11684
|
static ofStringAndcsp_common_Map_String_String_Map(other: Common.Map<string, Common.Map<string, string>>): Map<string, Common.Map<string, string>>;
|