connected-spaces-platform.web 5.22.0 → 6.0.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 +115 -93
- 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 +323 -261
- package/connectedspacesplatform.js +940 -702
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1941 -1534
- package/package.json +1 -1
|
@@ -300,8 +300,8 @@ export declare namespace Common {
|
|
|
300
300
|
* @description Enum of concrete types of RealtimeEngines.
|
|
301
301
|
*/
|
|
302
302
|
enum RealtimeEngineType {
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
Online = 0,
|
|
304
|
+
Offline = 1
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
export declare namespace Common {
|
|
@@ -385,7 +385,11 @@ export declare namespace Multiplayer {
|
|
|
385
385
|
SET_ALLOW_SELF_MESSAGING = 10,
|
|
386
386
|
SET_SCOPES = 11,
|
|
387
387
|
START_LISTENING = 12,
|
|
388
|
-
STOP_LISTENING = 13
|
|
388
|
+
STOP_LISTENING = 13,
|
|
389
|
+
ON_OBJECT_MESSAGE = 14,
|
|
390
|
+
ON_OBJECT_PATCH = 15,
|
|
391
|
+
ON_REQUEST_TO_SEND_OBJECT = 16,
|
|
392
|
+
ON_REQUEST_TO_DISCONNECT = 17
|
|
389
393
|
}
|
|
390
394
|
}
|
|
391
395
|
export declare namespace Multiplayer {
|
|
@@ -3784,24 +3788,24 @@ export declare namespace Common {
|
|
|
3784
3788
|
}
|
|
3785
3789
|
}
|
|
3786
3790
|
export declare namespace Common {
|
|
3787
|
-
class
|
|
3791
|
+
class IJSScriptRunner extends NativeClassWrapper implements INativeResource {
|
|
3788
3792
|
/** @internal */
|
|
3789
3793
|
constructor(pointer: NativePointer);
|
|
3790
|
-
|
|
3794
|
+
/**
|
|
3795
|
+
* @description Virtual destructor.
|
|
3796
|
+
*/
|
|
3791
3797
|
delete(): void;
|
|
3792
|
-
|
|
3793
|
-
set msg(value: string);
|
|
3798
|
+
runScript(contextId: bigint, scriptText: string): boolean;
|
|
3794
3799
|
}
|
|
3795
3800
|
}
|
|
3796
3801
|
export declare namespace Common {
|
|
3797
|
-
class
|
|
3802
|
+
class InvalidInterfaceUseError extends NativeClassWrapper implements INativeResource {
|
|
3798
3803
|
/** @internal */
|
|
3799
3804
|
constructor(pointer: NativePointer);
|
|
3800
|
-
|
|
3801
|
-
* @description Virtual destructor.
|
|
3802
|
-
*/
|
|
3805
|
+
static create_msg(msg: string): InvalidInterfaceUseError;
|
|
3803
3806
|
delete(): void;
|
|
3804
|
-
|
|
3807
|
+
get msg(): string;
|
|
3808
|
+
set msg(value: string);
|
|
3805
3809
|
}
|
|
3806
3810
|
}
|
|
3807
3811
|
export declare namespace Common {
|
|
@@ -3819,22 +3823,28 @@ export declare namespace Common {
|
|
|
3819
3823
|
/**
|
|
3820
3824
|
* @description Create and add a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
3821
3825
|
* @param name - The entity name of the newly created avatar entity.
|
|
3826
|
+
* @param userId - Id of the user creating this avatar. If your backend data store requires authentication, this will
|
|
3827
|
+
* probably be your username or some similar unique identifier.
|
|
3822
3828
|
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
3823
|
-
* @param
|
|
3829
|
+
* @param isVisible - Whether the avatar defaults to being visible.
|
|
3830
|
+
* @param avatarState - The initial Avatar State to set.
|
|
3824
3831
|
* @param avatarId - The ID to be set on the AvatarSpaceComponent
|
|
3825
3832
|
* @param avatarPlayMode - The Initial AvatarPlayMode to set.
|
|
3826
3833
|
* @param callback - Csp::multiplayer::entitycreatedcallback a callback that executes when the creation is complete,
|
|
3827
3834
|
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
3828
3835
|
*/
|
|
3829
|
-
createAvatar(name: string, spaceTransform: Multiplayer.SpaceTransform,
|
|
3836
|
+
createAvatar(name: string, userId: string, spaceTransform: Multiplayer.SpaceTransform, isVisible: boolean, avatarState: Multiplayer.AvatarState, avatarId: string, avatarPlayMode: Multiplayer.AvatarPlayMode): Promise<Multiplayer.SpaceEntity>;
|
|
3830
3837
|
/**
|
|
3831
3838
|
* @description Create and add a SpaceEntity, with relevant default values.
|
|
3832
3839
|
* @param name - The name of the newly created SpaceEntity.
|
|
3833
3840
|
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
3841
|
+
* @param parentID - ID of another entity in the space that this entity should be created as a child to. If
|
|
3842
|
+
* empty, entity is created as a root entity.
|
|
3834
3843
|
* @param callback - A callback that executes when the creation is complete,
|
|
3835
3844
|
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
3836
3845
|
*/
|
|
3837
|
-
createEntity(name: string, spaceTransform: Multiplayer.SpaceTransform): Promise<Multiplayer.SpaceEntity>;
|
|
3846
|
+
createEntity(name: string, spaceTransform: Multiplayer.SpaceTransform, parentID: bigint | null): Promise<Multiplayer.SpaceEntity>;
|
|
3847
|
+
addEntity(entityToAdd: Multiplayer.SpaceEntity): void;
|
|
3838
3848
|
/**
|
|
3839
3849
|
* @description Destroy the specified entity.
|
|
3840
3850
|
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
@@ -3844,6 +3854,8 @@ export declare namespace Common {
|
|
|
3844
3854
|
/**
|
|
3845
3855
|
* @description Sets a callback to be executed when an entity is fully created.
|
|
3846
3856
|
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
3857
|
+
* The better way to set this and avoid initialisation race conditions is via passing this in the constructor, only use this if you wish to
|
|
3858
|
+
* override or remove this callback.
|
|
3847
3859
|
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
3848
3860
|
*/
|
|
3849
3861
|
setEntityCreatedCallback(callback: (arg1: Multiplayer.SpaceEntity) => void): void;
|
|
@@ -3910,10 +3922,14 @@ export declare namespace Common {
|
|
|
3910
3922
|
*/
|
|
3911
3923
|
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity>;
|
|
3912
3924
|
/**
|
|
3913
|
-
* @description
|
|
3914
|
-
*
|
|
3925
|
+
* @description Set Callback that notifies when the OnlineRealtimeEngine is in a valid state
|
|
3926
|
+
* after entering a space, and entity mutation can begin. Users should not mutate entities before receiving this callback.
|
|
3927
|
+
* This callback should be emitted in response to FetchAllEntitiesAndPopulateBuffers completing, either syncronously or asyncronously.
|
|
3928
|
+
* This callback must be set prior to entering a space.
|
|
3929
|
+
* @param fetchCompleteCallback - Callback that notifies when the RealtimeEngine has completed initial
|
|
3930
|
+
* entity fetch
|
|
3915
3931
|
*/
|
|
3916
|
-
|
|
3932
|
+
setEntityFetchCompleteCallback(callback: (arg1: number) => void): void;
|
|
3917
3933
|
/**
|
|
3918
3934
|
* @description Adds an entity to a list of entities to be updated when ProcessPendingEntityOperations is called.
|
|
3919
3935
|
* From a client perspective, ProcessPendingEntityOperations is normally called via the CSPFoundation::Tick method.
|
|
@@ -4072,11 +4088,11 @@ export declare namespace Multiplayer {
|
|
|
4072
4088
|
/**
|
|
4073
4089
|
* @description Constructor for CSPSceneDescription by deserializing a SceneDescription json file.
|
|
4074
4090
|
* @param sceneDescriptionJson - The SceneDescription to deserialize.
|
|
4075
|
-
* @param entitySystem - The
|
|
4076
|
-
* @param logSystem - The
|
|
4091
|
+
* @param entitySystem - The OnlineRealtimeEngine for this session.
|
|
4092
|
+
* @param logSystem - The OnlineRealtimeEngine for this session.
|
|
4077
4093
|
* @param remoteScriptRunner - The ScriptRunner for this session.
|
|
4078
4094
|
*/
|
|
4079
|
-
static create_sceneDescriptionJson_entitySystem_logSystem_remoteScriptRunner(sceneDescriptionJson: string, entitySystem: Multiplayer.
|
|
4095
|
+
static create_sceneDescriptionJson_entitySystem_logSystem_remoteScriptRunner(sceneDescriptionJson: string, entitySystem: Multiplayer.OnlineRealtimeEngine, logSystem: Common.LogSystem, remoteScriptRunner: Common.IJSScriptRunner): CSPSceneDescription;
|
|
4080
4096
|
delete(): void;
|
|
4081
4097
|
get entities(): Common.Array<Multiplayer.SpaceEntity>;
|
|
4082
4098
|
set entities(value: Common.Array<Multiplayer.SpaceEntity>);
|
|
@@ -4129,6 +4145,12 @@ export declare namespace Multiplayer {
|
|
|
4129
4145
|
* @return True if self messaging is allowed, false otherwise.
|
|
4130
4146
|
*/
|
|
4131
4147
|
getAllowSelfMessagingFlag(): boolean;
|
|
4148
|
+
/**
|
|
4149
|
+
* @description Get the currently set realtime engine.
|
|
4150
|
+
* @return Non-owning pointer to currently set realtime engine. This should be non-null when in a space, and null before entering, or after
|
|
4151
|
+
* exiting a space.
|
|
4152
|
+
*/
|
|
4153
|
+
getOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine;
|
|
4132
4154
|
delete(): void;
|
|
4133
4155
|
}
|
|
4134
4156
|
}
|
|
@@ -4238,7 +4260,7 @@ export declare namespace Multiplayer {
|
|
|
4238
4260
|
/**
|
|
4239
4261
|
* @description Creates a SpaceEntity instance using the space entity system provided.
|
|
4240
4262
|
*/
|
|
4241
|
-
static create_entitySystem_scriptRunner_logSystem(entitySystem: Multiplayer.
|
|
4263
|
+
static create_entitySystem_scriptRunner_logSystem(entitySystem: Multiplayer.OnlineRealtimeEngine, scriptRunner: Common.IJSScriptRunner, logSystem: Common.LogSystem): SpaceEntity;
|
|
4242
4264
|
/**
|
|
4243
4265
|
* @description Destroys the SpaceEntity instance.
|
|
4244
4266
|
*/
|
|
@@ -4349,11 +4371,6 @@ export declare namespace Multiplayer {
|
|
|
4349
4371
|
* @return The SpaceEntityType enum value.
|
|
4350
4372
|
*/
|
|
4351
4373
|
getEntityType(): Multiplayer.SpaceEntityType;
|
|
4352
|
-
/**
|
|
4353
|
-
* @description Get SpaceEntitySystem Object
|
|
4354
|
-
* @return SpaceEntitySystem
|
|
4355
|
-
*/
|
|
4356
|
-
getSpaceEntitySystem(): Multiplayer.SpaceEntitySystem;
|
|
4357
4374
|
/**
|
|
4358
4375
|
* @description Sets the parent for this entity
|
|
4359
4376
|
* QueueUpdate() should be called afterwards to enable changes to the parent.
|
|
@@ -4495,236 +4512,6 @@ export declare namespace Multiplayer {
|
|
|
4495
4512
|
isLocked(): boolean;
|
|
4496
4513
|
}
|
|
4497
4514
|
}
|
|
4498
|
-
export declare namespace Multiplayer {
|
|
4499
|
-
/**
|
|
4500
|
-
* @description Class for creating and managing multiplayer objects known as space entities.
|
|
4501
|
-
* /// This provides functions to create and manage multiple player avatars and other objects.
|
|
4502
|
-
* It manages things like queueing updated entities and triggering tick events. Callbacks
|
|
4503
|
-
* can be registered for certain events that occur within the entity system so clients can
|
|
4504
|
-
* react appropriately.
|
|
4505
|
-
*/
|
|
4506
|
-
class SpaceEntitySystem extends NativeClassWrapper implements INativeResource {
|
|
4507
|
-
/** @internal */
|
|
4508
|
-
constructor(pointer: NativePointer);
|
|
4509
|
-
/**
|
|
4510
|
-
* @description Creates a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
4511
|
-
* @param inName - The name to give the new SpaceEntity.
|
|
4512
|
-
* @param inSpaceTransform - The initial transform to set the SpaceEntity to.
|
|
4513
|
-
* @param isVisible - The initial visibility of the Avatar.
|
|
4514
|
-
* @param inState - The initial Avatar State to set.
|
|
4515
|
-
* @param inAvatarId - The Initial AvatarID to set.
|
|
4516
|
-
* @param inAvatarPlayMode - The Initial AvatarPlayMode to set.
|
|
4517
|
-
* @param callback - EntityCreatedCallback A callback that executes when the creation is complete,
|
|
4518
|
-
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
4519
|
-
*/
|
|
4520
|
-
createAvatar(name: string, loginState: Common.LoginState, spaceTransform: Multiplayer.SpaceTransform, isVisible: boolean, state: Multiplayer.AvatarState, avatarId: string, avatarPlayMode: Multiplayer.AvatarPlayMode): Promise<Multiplayer.SpaceEntity>;
|
|
4521
|
-
/**
|
|
4522
|
-
* @description Creates a SpaceEntity of type Object, and relevant default values.
|
|
4523
|
-
* @param inName - The name to give the new SpaceEntity.
|
|
4524
|
-
* @param inSpaceTransform - The initial transform to set the SpaceEntity to.
|
|
4525
|
-
* @param callback - A callback that executes when the creation is complete,
|
|
4526
|
-
* which contains a pointer to the new SpaceEntity so that it can be used on the local client.
|
|
4527
|
-
*/
|
|
4528
|
-
createObject(name: string, spaceTransform: Multiplayer.SpaceTransform): Promise<Multiplayer.SpaceEntity>;
|
|
4529
|
-
/**
|
|
4530
|
-
* @description Destroys both the remote view and the local view of the specified entity.
|
|
4531
|
-
* @param entity - The entity to be destroyed.
|
|
4532
|
-
* @param callback - The callback to execute.
|
|
4533
|
-
*/
|
|
4534
|
-
destroyEntity(entity: Multiplayer.SpaceEntity): Promise<boolean>;
|
|
4535
|
-
/**
|
|
4536
|
-
* @description Destroys the local client's view of the specified entity.
|
|
4537
|
-
* @param entity - The entity to be destroyed locally.
|
|
4538
|
-
*/
|
|
4539
|
-
localDestroyEntity(entity: Multiplayer.SpaceEntity): void;
|
|
4540
|
-
/**
|
|
4541
|
-
* @description Finds the first SpaceEntity that matches InName.
|
|
4542
|
-
* @param inName - The name to search.
|
|
4543
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
4544
|
-
*/
|
|
4545
|
-
findSpaceEntity(name: string): Multiplayer.SpaceEntity;
|
|
4546
|
-
/**
|
|
4547
|
-
* @description Finds the first SpaceEntity that has the ID EntityId.
|
|
4548
|
-
* @param entityId - The Id to look for.
|
|
4549
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
4550
|
-
*/
|
|
4551
|
-
findSpaceEntityById(entityId: bigint): Multiplayer.SpaceEntity;
|
|
4552
|
-
/**
|
|
4553
|
-
* @description Finds the first SpaceEntity of type Avatar that matches InName.
|
|
4554
|
-
* @param inName - The name to search.
|
|
4555
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
4556
|
-
*/
|
|
4557
|
-
findSpaceAvatar(name: string): Multiplayer.SpaceEntity;
|
|
4558
|
-
/**
|
|
4559
|
-
* @description Finds the first SpaceEntity of type Object that matches InName.
|
|
4560
|
-
* @param inName - The name to search.
|
|
4561
|
-
* @return A pointer to the first found match SpaceEntity.
|
|
4562
|
-
*/
|
|
4563
|
-
findSpaceObject(name: string): Multiplayer.SpaceEntity;
|
|
4564
|
-
/**
|
|
4565
|
-
* @description Locks the entity mutex.
|
|
4566
|
-
*/
|
|
4567
|
-
lockEntityUpdate(): void;
|
|
4568
|
-
/**
|
|
4569
|
-
* @description Unlocks the entity mutex.
|
|
4570
|
-
*/
|
|
4571
|
-
unlockEntityUpdate(): void;
|
|
4572
|
-
/**
|
|
4573
|
-
* @description Get the number of total entities in the system (both Avatars and Objects).
|
|
4574
|
-
* @return The total number of entities.
|
|
4575
|
-
*/
|
|
4576
|
-
getNumEntities(): number;
|
|
4577
|
-
/**
|
|
4578
|
-
* @description Get the number of total Avatars in the system.
|
|
4579
|
-
* @return The total number of Avatar entities.
|
|
4580
|
-
*/
|
|
4581
|
-
getNumAvatars(): number;
|
|
4582
|
-
/**
|
|
4583
|
-
* @description Get the number of total Objects in the system.
|
|
4584
|
-
* @return The total number of object entities.
|
|
4585
|
-
*/
|
|
4586
|
-
getNumObjects(): number;
|
|
4587
|
-
/**
|
|
4588
|
-
* @description Get an Entity (Avatar or Object) by its index.
|
|
4589
|
-
* /// Note this is not currently thread safe and should only be called from the main thread.
|
|
4590
|
-
* /// @param EntityIndex size_t : The index of the entity to get.
|
|
4591
|
-
* @return A pointer to the entity with the given index.
|
|
4592
|
-
*/
|
|
4593
|
-
getEntityByIndex(entityIndex: number): Multiplayer.SpaceEntity;
|
|
4594
|
-
/**
|
|
4595
|
-
* @description Get an Avatar by its index.
|
|
4596
|
-
* /// Note this is not currently thread safe and should only be called from the main thread.
|
|
4597
|
-
* /// @param AvatarIndex size_t : The index of the avatar entity to get.
|
|
4598
|
-
* @return A pointer to the avatar entity with the given index.
|
|
4599
|
-
*/
|
|
4600
|
-
getAvatarByIndex(avatarIndex: number): Multiplayer.SpaceEntity;
|
|
4601
|
-
/**
|
|
4602
|
-
* @description Get an Object by its index.
|
|
4603
|
-
* /// Note this is not currently thread safe and should only be called from the main thread.
|
|
4604
|
-
* /// @param ObjectIndex size_t : The index of the object entity to get.
|
|
4605
|
-
* @return A pointer to the object entity with the given index.
|
|
4606
|
-
*/
|
|
4607
|
-
getObjectByIndex(objectIndex: number): Multiplayer.SpaceEntity;
|
|
4608
|
-
/**
|
|
4609
|
-
* @description Add a new entity to the system.
|
|
4610
|
-
* /// This can be called at any time from any thread and internally add the entity to a pending
|
|
4611
|
-
* list which is then updated in a thread safe manner when ProcessPendingEntityOperations
|
|
4612
|
-
* is called from the main thread.
|
|
4613
|
-
* /// @param EntityToAdd SpaceEntity : Pointer to the entity to be added.
|
|
4614
|
-
*/
|
|
4615
|
-
addEntity(entityToAdd: Multiplayer.SpaceEntity): void;
|
|
4616
|
-
/**
|
|
4617
|
-
* @description Sets a callback to be executed when an entity is remotely created.
|
|
4618
|
-
* /// Only one callback may be registered, calling this function again will override whatever was previously set.
|
|
4619
|
-
* If this is not set, some patch functions may fail.
|
|
4620
|
-
* /// @param Callback EntityCreatedCallback : the callback to execute.
|
|
4621
|
-
*/
|
|
4622
|
-
setEntityCreatedCallback(callback: (arg1: Multiplayer.SpaceEntity) => void): void;
|
|
4623
|
-
/**
|
|
4624
|
-
* @description Sets a callback to be executed when all existing entities have been retrieved after entering a space.
|
|
4625
|
-
* @param callback - The callback to execute.
|
|
4626
|
-
*/
|
|
4627
|
-
setInitialEntitiesRetrievedCallback(callback: (arg1: boolean) => void): void;
|
|
4628
|
-
/**
|
|
4629
|
-
* @description Sets a callback to be executed when the script system is ready to run scripts.
|
|
4630
|
-
* @param callback - The callback to execute.
|
|
4631
|
-
*/
|
|
4632
|
-
setScriptSystemReadyCallback(callback: (arg1: boolean) => void): void;
|
|
4633
|
-
/**
|
|
4634
|
-
* @description Triggers queuing of the SpaceEntities updated components and replicated data.
|
|
4635
|
-
* /// Causes the replication of a SpaceEntities data on next Tick() or ProcessPendingEntityOperations(). However, this is bound by an
|
|
4636
|
-
* entities rate limit and will only be replicated if there has been sufficient time since the last time the entity sent a message.
|
|
4637
|
-
* /// @param EntityToUpdate SpaceEntity : A pointer to the SpaceEntity to update.
|
|
4638
|
-
*/
|
|
4639
|
-
queueEntityUpdate(entityToUpdate: Multiplayer.SpaceEntity): void;
|
|
4640
|
-
/**
|
|
4641
|
-
* @description Processes pending entity operations and then calls tick on scripts if necessary.
|
|
4642
|
-
*/
|
|
4643
|
-
tickEntities(): void;
|
|
4644
|
-
registerEntityScriptAsModule(newEntity: Multiplayer.SpaceEntity): void;
|
|
4645
|
-
bindNewEntityToScript(newEntity: Multiplayer.SpaceEntity): void;
|
|
4646
|
-
/**
|
|
4647
|
-
* @description Sets the script owner for the given entity to the current client
|
|
4648
|
-
* @param entity - A pointer to the entity
|
|
4649
|
-
*/
|
|
4650
|
-
claimScriptOwnership(entity: Multiplayer.SpaceEntity): void;
|
|
4651
|
-
/**
|
|
4652
|
-
* @description Adds the entity to a list of entities to be updated on tick
|
|
4653
|
-
* @param entity - A pointer to the entity to be added
|
|
4654
|
-
*/
|
|
4655
|
-
markEntityForUpdate(entity: Multiplayer.SpaceEntity): void;
|
|
4656
|
-
/**
|
|
4657
|
-
* @description Process pending entity adds/removes and Patch message send and receives.
|
|
4658
|
-
* /// Note this should only be called from main thread
|
|
4659
|
-
*/
|
|
4660
|
-
processPendingEntityOperations(): void;
|
|
4661
|
-
/**
|
|
4662
|
-
* @description Retrieves all entities from the endpoint, calls "GetAllScopedObjects" currently.
|
|
4663
|
-
* /// Note this will generate new entity objects for every entity in the current scopes.
|
|
4664
|
-
* If this is called by a client manually without first deleting all existing tracked entities, it is possible there will be duplicates.
|
|
4665
|
-
* It is highly advised not to call this function unless you know what you are doing.
|
|
4666
|
-
*/
|
|
4667
|
-
retrieveAllEntities(): void;
|
|
4668
|
-
/**
|
|
4669
|
-
* @description Destroys the client's local view of all currently known entities.
|
|
4670
|
-
* /// They still reside on the server, however they will not be accessible in the client application.
|
|
4671
|
-
*/
|
|
4672
|
-
localDestroyAllEntities(): void;
|
|
4673
|
-
/**
|
|
4674
|
-
* @description Sets the selected state of an entity, if the operation is acceptable.
|
|
4675
|
-
* /// Criteria:
|
|
4676
|
-
* For Selection:
|
|
4677
|
-
* - Entity must be deselected currently
|
|
4678
|
-
* For Deselection:
|
|
4679
|
-
* - Entity must be selected currently
|
|
4680
|
-
* - Entity must be selected by the client attempting the deselection (SpaceEntity::GetSelectingClientID will return this information)
|
|
4681
|
-
* /// @param SelectedState bool : The state to set the entity to, Selected = True, Deselected = false.
|
|
4682
|
-
* @param entity - A pointer to the entity to modify selection state on.
|
|
4683
|
-
* @return True if a selection state change has occurred, false if no change was made (due to one of the above criteria not being met).
|
|
4684
|
-
*/
|
|
4685
|
-
setSelectionStateOfEntity(selectedState: boolean, entity: Multiplayer.SpaceEntity): boolean;
|
|
4686
|
-
/**
|
|
4687
|
-
* @description Enable Leader Election feature.
|
|
4688
|
-
*/
|
|
4689
|
-
enableLeaderElection(): void;
|
|
4690
|
-
/**
|
|
4691
|
-
* @description Disable Leader Election feature.
|
|
4692
|
-
*/
|
|
4693
|
-
disableLeaderElection(): void;
|
|
4694
|
-
/**
|
|
4695
|
-
* @description Check if the Leader Election feature is enabled.
|
|
4696
|
-
* @return True if enabled, false otherwise.
|
|
4697
|
-
*/
|
|
4698
|
-
isLeaderElectionEnabled(): boolean;
|
|
4699
|
-
/**
|
|
4700
|
-
* @description Debug helper to get the id of the currently elected script leader.
|
|
4701
|
-
* @return The id of the leader.
|
|
4702
|
-
*/
|
|
4703
|
-
getLeaderId(): bigint;
|
|
4704
|
-
/**
|
|
4705
|
-
* @description Retrieve the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
4706
|
-
* @return True if enabled, false otherwise.
|
|
4707
|
-
*/
|
|
4708
|
-
getEntityPatchRateLimitEnabled(): boolean;
|
|
4709
|
-
/**
|
|
4710
|
-
* @description Set the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
4711
|
-
* /// This feature is enabled by default and should only be disabled if you are encountering issues.
|
|
4712
|
-
* /// @param Enabled : sets if the feature should be enabled or not.
|
|
4713
|
-
* \rst
|
|
4714
|
-
* .. note::
|
|
4715
|
-
* If disabling this feature, more requests will be made to Magnopus Connected Services,
|
|
4716
|
-
* and consequently more patch merges may occur on the server as a result.
|
|
4717
|
-
* \endrst
|
|
4718
|
-
*/
|
|
4719
|
-
setEntityPatchRateLimitEnabled(enabled: boolean): void;
|
|
4720
|
-
/**
|
|
4721
|
-
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
4722
|
-
* @return A list of root entities.
|
|
4723
|
-
*/
|
|
4724
|
-
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity>;
|
|
4725
|
-
delete(): void;
|
|
4726
|
-
}
|
|
4727
|
-
}
|
|
4728
4515
|
export declare namespace Multiplayer {
|
|
4729
4516
|
/**
|
|
4730
4517
|
* @description Simple class for holding the position, rotation and scale of a transform.
|
|
@@ -5090,6 +4877,11 @@ export declare namespace Systems {
|
|
|
5090
4877
|
* @return Pointer to the log system class
|
|
5091
4878
|
*/
|
|
5092
4879
|
getLogSystem(): Common.LogSystem;
|
|
4880
|
+
/**
|
|
4881
|
+
* @description Retrieves the Application Settings system.
|
|
4882
|
+
* @return Pointer to the application settings system class
|
|
4883
|
+
*/
|
|
4884
|
+
getApplicationSettingsSystem(): Systems.ApplicationSettingsSystem;
|
|
5093
4885
|
/**
|
|
5094
4886
|
* @description Retrieves the Settings system.
|
|
5095
4887
|
* @return Pointer to the settings system class
|
|
@@ -5135,9 +4927,9 @@ export declare namespace Systems {
|
|
|
5135
4927
|
* @return Pointer to the hotspotsequencesystem system class
|
|
5136
4928
|
*/
|
|
5137
4929
|
getHotspotSequenceSystem(): Systems.HotspotSequenceSystem;
|
|
5138
|
-
getSpaceEntitySystem(): Multiplayer.SpaceEntitySystem;
|
|
5139
4930
|
getMultiplayerConnection(): Multiplayer.MultiplayerConnection;
|
|
5140
4931
|
getEventBus(): Multiplayer.NetworkEventBus;
|
|
4932
|
+
makeOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine;
|
|
5141
4933
|
}
|
|
5142
4934
|
}
|
|
5143
4935
|
export declare namespace Systems {
|
|
@@ -5951,6 +5743,26 @@ export declare namespace Systems {
|
|
|
5951
5743
|
set metaData(value: Common.Map<string, string>);
|
|
5952
5744
|
}
|
|
5953
5745
|
}
|
|
5746
|
+
export declare namespace Systems {
|
|
5747
|
+
/**
|
|
5748
|
+
@ingroup Application Settings System
|
|
5749
|
+
* @description Represents configuration settings for an application context.
|
|
5750
|
+
*/
|
|
5751
|
+
class ApplicationSettings extends NativeClassWrapper implements INativeResource {
|
|
5752
|
+
/** @internal */
|
|
5753
|
+
constructor(pointer: NativePointer);
|
|
5754
|
+
static create(): ApplicationSettings;
|
|
5755
|
+
delete(): void;
|
|
5756
|
+
get applicationName(): string;
|
|
5757
|
+
set applicationName(value: string);
|
|
5758
|
+
get context(): string;
|
|
5759
|
+
set context(value: string);
|
|
5760
|
+
get allowAnonymous(): boolean;
|
|
5761
|
+
set allowAnonymous(value: boolean);
|
|
5762
|
+
get settings(): Common.Map<string, string>;
|
|
5763
|
+
set settings(value: Common.Map<string, string>);
|
|
5764
|
+
}
|
|
5765
|
+
}
|
|
5954
5766
|
export declare namespace Systems {
|
|
5955
5767
|
/**
|
|
5956
5768
|
@ingroup Settings System
|
|
@@ -6443,6 +6255,209 @@ export declare namespace Common {
|
|
|
6443
6255
|
set hotspotData(value: Common.HotspotSequenceChangedNetworkEventData);
|
|
6444
6256
|
}
|
|
6445
6257
|
}
|
|
6258
|
+
export declare namespace Multiplayer {
|
|
6259
|
+
/**
|
|
6260
|
+
* @description Class for creating and managing multiplayer objects known as space entities.
|
|
6261
|
+
* /// This provides functions to create and manage multiple player avatars and other objects.
|
|
6262
|
+
* It manages things like queueing updated entities and triggering tick events. Callbacks
|
|
6263
|
+
* can be registered for certain events that occur within the entity system so clients can
|
|
6264
|
+
* react appropriately.
|
|
6265
|
+
*/
|
|
6266
|
+
class OnlineRealtimeEngine extends Common.IRealtimeEngine implements INativeResource {
|
|
6267
|
+
/** @internal */
|
|
6268
|
+
constructor(pointer: NativePointer);
|
|
6269
|
+
static fromIRealtimeEngine(baseInstance: Common.IRealtimeEngine): Multiplayer.OnlineRealtimeEngine;
|
|
6270
|
+
/**
|
|
6271
|
+
* @description OnlineRealtimeEngine constructor
|
|
6272
|
+
* @param inMultiplayerConnection - The multiplayer connection to construct the onlinerealtimeengine with
|
|
6273
|
+
* @param logSystem - Logger such that this system can print status and debug output
|
|
6274
|
+
* @param networkEventBus - Reference the the network event bus, used for leadership election messaging.
|
|
6275
|
+
* @param remoteScriptRunner - Object capable of running a script. Called to execute scripts when the leader
|
|
6276
|
+
* election system
|
|
6277
|
+
*/
|
|
6278
|
+
static create_multiplayerConnection_logSystem_networkEventBus_remoteScriptRunner(multiplayerConnection: Multiplayer.MultiplayerConnection, logSystem: Common.LogSystem, networkEventBus: Multiplayer.NetworkEventBus, remoteScriptRunner: Common.IJSScriptRunner): OnlineRealtimeEngine;
|
|
6279
|
+
/**
|
|
6280
|
+
* @description Returns the concrete type of the instantiation of the abstract IRealtimeEngine.
|
|
6281
|
+
*/
|
|
6282
|
+
getRealtimeEngineType(): Common.RealtimeEngineType;
|
|
6283
|
+
/**
|
|
6284
|
+
* @description Create and add a SpaceEntity with type Avatar, and relevant components and default states as specified.
|
|
6285
|
+
* @param name - The entity name of the newly created avatar entity.
|
|
6286
|
+
* @param userId - The Id of the user creating the avatar. This can be fetched from csp::systems::UserSystem::GetLoginState
|
|
6287
|
+
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
6288
|
+
* @param state - The initial Avatar State to set.
|
|
6289
|
+
* @param avatarId - The ID to be set on the AvatarSpaceComponent
|
|
6290
|
+
* @param avatarPlayMode - The Initial AvatarPlayMode to set.
|
|
6291
|
+
* @param callback - Csp::multiplayer::entitycreatedcallback a callback that executes when the creation is complete,
|
|
6292
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
6293
|
+
*/
|
|
6294
|
+
createAvatar(name: string, userId: string, spaceTransform: Multiplayer.SpaceTransform, isVisible: boolean, state: Multiplayer.AvatarState, avatarId: string, avatarPlayMode: Multiplayer.AvatarPlayMode): Promise<Multiplayer.SpaceEntity>;
|
|
6295
|
+
/**
|
|
6296
|
+
* @description Create and add a SpaceEntity, with relevant default values.
|
|
6297
|
+
* @param name - The name of the newly created SpaceEntity.
|
|
6298
|
+
* @param spaceTransform - The initial transform to set the SpaceEntity to.
|
|
6299
|
+
* @param parentID - ID of another entity in the space that this entity should be created as a child to. If empty,
|
|
6300
|
+
* entity is created as a root entity.
|
|
6301
|
+
* @param callback - A callback that executes when the creation is complete,
|
|
6302
|
+
* which will provide a non-owning pointer to the new SpaceEntity so that it can be used on the local client.
|
|
6303
|
+
*/
|
|
6304
|
+
createEntity(name: string, spaceTransform: Multiplayer.SpaceTransform, parentID: bigint | null): Promise<Multiplayer.SpaceEntity>;
|
|
6305
|
+
/**
|
|
6306
|
+
* @description Add a new entity to the system.
|
|
6307
|
+
* /// This can be called at any time from any thread and internally add the entity to a pending
|
|
6308
|
+
* list which is then updated in a thread safe manner when ProcessPendingEntityOperations
|
|
6309
|
+
* is called from the main thread.
|
|
6310
|
+
* /// @param EntityToAdd SpaceEntity : Pointer to the entity to be added.
|
|
6311
|
+
*/
|
|
6312
|
+
addEntity(entityToAdd: Multiplayer.SpaceEntity): void;
|
|
6313
|
+
/**
|
|
6314
|
+
* @description Destroy the specified entity.
|
|
6315
|
+
* @param entity - A non-owning pointer to the entity to be destroyed.
|
|
6316
|
+
* @param callback - A callback that executes when the entity destruction is complete.
|
|
6317
|
+
*/
|
|
6318
|
+
destroyEntity(entity: Multiplayer.SpaceEntity): Promise<boolean>;
|
|
6319
|
+
/**
|
|
6320
|
+
* @description Sets a callback to be executed when an entity is fully created.
|
|
6321
|
+
* /// Only one EntityCreatedCallback may be registered, calling this function again will override whatever was previously set.
|
|
6322
|
+
* /// @param Callback csp::multiplayer::EntityCreatedCallback : the callback to execute.
|
|
6323
|
+
*/
|
|
6324
|
+
setEntityCreatedCallback(callback: (arg1: Multiplayer.SpaceEntity) => void): void;
|
|
6325
|
+
/**
|
|
6326
|
+
* @description Finds the first found SpaceEntity of a matching Name.
|
|
6327
|
+
* @param name - The name to search.
|
|
6328
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
6329
|
+
*/
|
|
6330
|
+
findSpaceEntity(name: string): Multiplayer.SpaceEntity;
|
|
6331
|
+
/**
|
|
6332
|
+
* @description Finds the first found SpaceEntity that has the ID EntityId.
|
|
6333
|
+
* @param entityId - The Id to look for.
|
|
6334
|
+
* @return A non-owning pointer to the first found matching SpaceEntity.
|
|
6335
|
+
*/
|
|
6336
|
+
findSpaceEntityById(entityId: bigint): Multiplayer.SpaceEntity;
|
|
6337
|
+
/**
|
|
6338
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will contain an AvatarSpaceComponent.
|
|
6339
|
+
* @param name - The name to search for.
|
|
6340
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
6341
|
+
*/
|
|
6342
|
+
findSpaceAvatar(name: string): Multiplayer.SpaceEntity;
|
|
6343
|
+
/**
|
|
6344
|
+
* @description Finds the first found SpaceEntity of a matching Name. The found SpaceEntity will not contain an AvatarSpaceComponent.
|
|
6345
|
+
* @param name - The name to search for.
|
|
6346
|
+
* @return A pointer to the first found matching SpaceEntity.
|
|
6347
|
+
*/
|
|
6348
|
+
findSpaceObject(name: string): Multiplayer.SpaceEntity;
|
|
6349
|
+
/**
|
|
6350
|
+
* @description Get an Entity by its index.
|
|
6351
|
+
* /// @param EntityIndex size_t : The index of the entity to get.
|
|
6352
|
+
* @return A non-owning pointer to the entity at the given index.
|
|
6353
|
+
*/
|
|
6354
|
+
getEntityByIndex(entityIndex: number): Multiplayer.SpaceEntity;
|
|
6355
|
+
/**
|
|
6356
|
+
* @description Get an Avatar by its index. The returned pointer will be an entity that contains an AvatarSpaceComponent.
|
|
6357
|
+
* /// @param AvatarIndex size_t : The index of the avatar entity to get.
|
|
6358
|
+
* @return A non-owning pointer to the avatar entity with the given index.
|
|
6359
|
+
*/
|
|
6360
|
+
getAvatarByIndex(avatarIndex: number): Multiplayer.SpaceEntity;
|
|
6361
|
+
/**
|
|
6362
|
+
* @description Get an Object by its index. The returned pointer will be an entity that does not contain an AvatarSpaceComponent.
|
|
6363
|
+
* /// @param ObjectIndex size_t : The index of the object entity to get.
|
|
6364
|
+
* @return A non-owning pointer to the object entity with the given index.
|
|
6365
|
+
*/
|
|
6366
|
+
getObjectByIndex(objectIndex: number): Multiplayer.SpaceEntity;
|
|
6367
|
+
/**
|
|
6368
|
+
* @description Get the number of total entities in the system.
|
|
6369
|
+
* @return The total number of entities.
|
|
6370
|
+
*/
|
|
6371
|
+
getNumEntities(): number;
|
|
6372
|
+
/**
|
|
6373
|
+
* @description Get the number of total Avatars in the system. Avatars are entities that contain AvatarSpaceComponents.
|
|
6374
|
+
* @return The total number of Avatar entities.
|
|
6375
|
+
*/
|
|
6376
|
+
getNumAvatars(): number;
|
|
6377
|
+
/**
|
|
6378
|
+
* @description Get the number of total Objects in the system. Objects are entities that do not contain AvatarSpaceComponents.
|
|
6379
|
+
* @return The total number of object entities.
|
|
6380
|
+
*/
|
|
6381
|
+
getNumObjects(): number;
|
|
6382
|
+
/**
|
|
6383
|
+
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
6384
|
+
* @return A list of root entities containing non-owning pointers to entities.
|
|
6385
|
+
*/
|
|
6386
|
+
getRootHierarchyEntities(): Common.List<Multiplayer.SpaceEntity>;
|
|
6387
|
+
/**
|
|
6388
|
+
* @description Adds an entity to a list of entities to be updated when ProcessPendingEntityOperations is called.
|
|
6389
|
+
* From a client perspective, ProcessPendingEntityOperations is normally called via the CSPFoundation::Tick method.
|
|
6390
|
+
* @param entity - A non-owning pointer to the entity to be marked.
|
|
6391
|
+
*/
|
|
6392
|
+
markEntityForUpdate(entity: Multiplayer.SpaceEntity): void;
|
|
6393
|
+
/**
|
|
6394
|
+
* @description Applies any pending changes to entities that have been marked for update.
|
|
6395
|
+
*/
|
|
6396
|
+
processPendingEntityOperations(): void;
|
|
6397
|
+
/**
|
|
6398
|
+
* @description Sets a callback to be executed when the script system is ready to run scripts.
|
|
6399
|
+
* @param callback - The callback to execute.
|
|
6400
|
+
*/
|
|
6401
|
+
setScriptLeaderReadyCallback(callback: (arg1: boolean) => void): void;
|
|
6402
|
+
/**
|
|
6403
|
+
* @description Sets the script owner for the given entity to the current client
|
|
6404
|
+
* @param entity - A pointer to the entity
|
|
6405
|
+
*/
|
|
6406
|
+
claimScriptOwnership(entity: Multiplayer.SpaceEntity): void;
|
|
6407
|
+
/**
|
|
6408
|
+
* @description Enable Leader Election feature.
|
|
6409
|
+
*/
|
|
6410
|
+
enableLeaderElection(): void;
|
|
6411
|
+
/**
|
|
6412
|
+
* @description Disable Leader Election feature.
|
|
6413
|
+
*/
|
|
6414
|
+
disableLeaderElection(): void;
|
|
6415
|
+
/**
|
|
6416
|
+
* @description Check if the Leader Election feature is enabled.
|
|
6417
|
+
* @return True if enabled, false otherwise.
|
|
6418
|
+
*/
|
|
6419
|
+
isLeaderElectionEnabled(): boolean;
|
|
6420
|
+
/**
|
|
6421
|
+
* @description Debug helper to get the id of the currently elected script leader.
|
|
6422
|
+
* @return The id of the leader.
|
|
6423
|
+
*/
|
|
6424
|
+
getLeaderId(): bigint;
|
|
6425
|
+
/**
|
|
6426
|
+
* @description Retrieve the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
6427
|
+
* @return True if enabled, false otherwise.
|
|
6428
|
+
*/
|
|
6429
|
+
getEntityPatchRateLimitEnabled(): boolean;
|
|
6430
|
+
/**
|
|
6431
|
+
* @description Set the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
6432
|
+
* /// This feature is enabled by default and should only be disabled if you are encountering issues.
|
|
6433
|
+
* /// @param Enabled : sets if the feature should be enabled or not.
|
|
6434
|
+
* \rst
|
|
6435
|
+
* .. note::
|
|
6436
|
+
* If disabling this feature, more requests will be made to Magnopus Connected Services,
|
|
6437
|
+
* and consequently more patch merges may occur on the server as a result.
|
|
6438
|
+
* \endrst
|
|
6439
|
+
*/
|
|
6440
|
+
setEntityPatchRateLimitEnabled(enabled: boolean): void;
|
|
6441
|
+
/**
|
|
6442
|
+
* @description Locks the entity mutex.
|
|
6443
|
+
*/
|
|
6444
|
+
lockEntityUpdate(): void;
|
|
6445
|
+
/**
|
|
6446
|
+
* @description Unlocks the entity mutex.
|
|
6447
|
+
*/
|
|
6448
|
+
unlockEntityUpdate(): void;
|
|
6449
|
+
/**
|
|
6450
|
+
* @description Queues a specific entity to update. Used in SpaceEntity to queue updates via passing the this pointer
|
|
6451
|
+
*/
|
|
6452
|
+
queueEntityUpdate(entityToUpdate: Multiplayer.SpaceEntity): void;
|
|
6453
|
+
/**
|
|
6454
|
+
* @description "Resolves" the entity heirarchy, such that the entity is parented appropriately, and internal buffers are populated appropriately.
|
|
6455
|
+
* (Vague, need more understanding about what this does)
|
|
6456
|
+
*/
|
|
6457
|
+
resolveEntityHierarchy(entity: Multiplayer.SpaceEntity): void;
|
|
6458
|
+
delete(): void;
|
|
6459
|
+
}
|
|
6460
|
+
}
|
|
6446
6461
|
export declare namespace Multiplayer {
|
|
6447
6462
|
/**
|
|
6448
6463
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -11210,6 +11225,49 @@ export declare namespace Systems {
|
|
|
11210
11225
|
deregisterSystemCallback(): void;
|
|
11211
11226
|
}
|
|
11212
11227
|
}
|
|
11228
|
+
export declare namespace Systems {
|
|
11229
|
+
/**
|
|
11230
|
+
@ingroup Application Settings System
|
|
11231
|
+
* @description Represents the result of a request for application settings.
|
|
11232
|
+
*/
|
|
11233
|
+
class ApplicationSettingsResult extends Systems.ResultBase implements INativeResource {
|
|
11234
|
+
/** @internal */
|
|
11235
|
+
constructor(pointer: NativePointer);
|
|
11236
|
+
static fromResultBase(baseInstance: Systems.ResultBase): Systems.ApplicationSettingsResult;
|
|
11237
|
+
getApplicationSettings(): Systems.ApplicationSettings;
|
|
11238
|
+
delete(): void;
|
|
11239
|
+
}
|
|
11240
|
+
}
|
|
11241
|
+
export declare namespace Systems {
|
|
11242
|
+
/**
|
|
11243
|
+
@ingroup Application Settings System
|
|
11244
|
+
* @description Public facing system that allows interfacing with Magnopus Connected Services' application settings service.
|
|
11245
|
+
*/
|
|
11246
|
+
class ApplicationSettingsSystem extends Systems.SystemBase {
|
|
11247
|
+
/** @internal */
|
|
11248
|
+
constructor(pointer: NativePointer);
|
|
11249
|
+
static fromSystemBase(baseInstance: Systems.SystemBase): Systems.ApplicationSettingsSystem;
|
|
11250
|
+
/**
|
|
11251
|
+
* @description Asynchronously retrieves application settings for a specific context.
|
|
11252
|
+
* @param applicationName - The name of the application for which settings are requested.
|
|
11253
|
+
* @param context - The specific context whose settings should be retrieved.
|
|
11254
|
+
* @param keys - Array of setting keys to retrieve. If not provided, all settings
|
|
11255
|
+
* for the context are returned.
|
|
11256
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
11257
|
+
*/
|
|
11258
|
+
getSettingsByContext(applicationName: string, context: string, keys: Common.Array<string> | null): Promise<Systems.ApplicationSettingsResult>;
|
|
11259
|
+
/**
|
|
11260
|
+
* @description Asynchronously retrieves application settings for a specific context without requiring authentication.
|
|
11261
|
+
* @param tenant - The tenant identifier under which the application and settings are scoped.
|
|
11262
|
+
* @param applicationName - The name of the application for which settings are requested.
|
|
11263
|
+
* @param context - The specific context whose settings should be retrieved.
|
|
11264
|
+
* @param keys - Array of setting keys to retrieve. If not provided, all settings
|
|
11265
|
+
* for the context are returned.
|
|
11266
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
11267
|
+
*/
|
|
11268
|
+
getSettingsByContextAnonymous(tenant: string, applicationName: string, context: string, keys: Common.Array<string> | null): Promise<Systems.ApplicationSettingsResult>;
|
|
11269
|
+
}
|
|
11270
|
+
}
|
|
11213
11271
|
export declare namespace Systems {
|
|
11214
11272
|
/**
|
|
11215
11273
|
@ingroup Settings System
|
|
@@ -11587,14 +11645,18 @@ export declare namespace Systems {
|
|
|
11587
11645
|
static fromSystemBase(baseInstance: Systems.SystemBase): Systems.SpaceSystem;
|
|
11588
11646
|
/**
|
|
11589
11647
|
* @description Enter a space if you have permission to, based on the Space settings.
|
|
11590
|
-
*
|
|
11591
|
-
*
|
|
11648
|
+
* Registers the user as in the space on the backend service, and calls csp::common::IRealtimeEngine::FetchAllEntitiesAndPopulateBuffers.
|
|
11649
|
+
* The initial load behaviour will differ based on the concrete IRealtimeEngine passed to this function.
|
|
11592
11650
|
* If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
|
|
11593
11651
|
* ERequestFailureReason::UserSpaceAccessDenied
|
|
11594
11652
|
* @param space - Space to enter into
|
|
11653
|
+
* @param realtimeEngine - RealtimeEngine to load the space with. This object belongs to the caller, and does not
|
|
11654
|
+
* transfer ownership. Once the space is loaded, the caller should be sure to maintain the lifetime of the RealtimeEngine so long
|
|
11655
|
+
* as the space is active. Once the caller has called csp::systems::SpaceSystem::ExitSpace and received the callback, then they are
|
|
11656
|
+
* free to release the memory.
|
|
11595
11657
|
* @param callback - Callback when asynchronous task finishes
|
|
11596
11658
|
*/
|
|
11597
|
-
enterSpace(spaceId: string): Promise<Systems.
|
|
11659
|
+
enterSpace(spaceId: string, realtimeEngine: Common.IRealtimeEngine): Promise<Systems.SpaceResult>;
|
|
11598
11660
|
/**
|
|
11599
11661
|
* @description Exits the space and deregisters from the space scope.
|
|
11600
11662
|
*/
|