connected-spaces-platform.web 5.16.0 → 5.17.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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +11 -11
- 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 +18 -260
- package/connectedspacesplatform.js +33 -40
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +71 -346
- package/package.json +1 -1
|
@@ -3242,7 +3242,7 @@ export namespace Multiplayer {
|
|
|
3242
3242
|
* Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
|
|
3243
3243
|
* All properties for the component should be included.
|
|
3244
3244
|
* Delete means the component has been marked for deletion. It is likely that some other clients will not have the component at the point this is
|
|
3245
|
-
*
|
|
3245
|
+
* received. Any wrapping data objects should be deleted when this is received, and clients should cease updating this component as any call would
|
|
3246
3246
|
* fail. The CSP representation of the component has been removed at this point.
|
|
3247
3247
|
*/
|
|
3248
3248
|
export enum ComponentUpdateType {
|
|
@@ -4334,278 +4334,6 @@ export namespace Web {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
4336
|
|
|
4337
|
-
export namespace Multiplayer {
|
|
4338
|
-
/**
|
|
4339
|
-
* @description The serialiser is responsible for converting a SpaceEntity instance into a data structure that both SignalR
|
|
4340
|
-
* and our servers can understand and use.
|
|
4341
|
-
* /// To use the serialiser, Start with BeginEntity(), then use the write(bool, int, etc) functions to write data at the
|
|
4342
|
-
* Entity level. Use BeginComponents() to start writing as the Server component data, with each BeginComponent and
|
|
4343
|
-
* EndComponent brace dictating information written into a server component. Within a component, use WriteProperty()
|
|
4344
|
-
* to write the individual data. Ensure you finish by closing out the relevant sections with the 'End' functions.
|
|
4345
|
-
*/
|
|
4346
|
-
export interface IEntitySerialiser {
|
|
4347
|
-
/**
|
|
4348
|
-
* @description Start the serialisiation.
|
|
4349
|
-
*/
|
|
4350
|
-
beginEntity: () => void;
|
|
4351
|
-
|
|
4352
|
-
/**
|
|
4353
|
-
* @description End the serialisiation.
|
|
4354
|
-
*/
|
|
4355
|
-
endEntity: () => void;
|
|
4356
|
-
|
|
4357
|
-
/**
|
|
4358
|
-
* @description Write a boolean field of the entity.
|
|
4359
|
-
* @param value - The value to write.
|
|
4360
|
-
*/
|
|
4361
|
-
writeBool: (value: boolean) => void;
|
|
4362
|
-
|
|
4363
|
-
/**
|
|
4364
|
-
* @description Write a byte field of the entity.
|
|
4365
|
-
* @param value - The value to write.
|
|
4366
|
-
*/
|
|
4367
|
-
writeByte: (value: number) => void;
|
|
4368
|
-
|
|
4369
|
-
/**
|
|
4370
|
-
* @description Write a double field of the entity.
|
|
4371
|
-
* @param value - The value to write.
|
|
4372
|
-
*/
|
|
4373
|
-
writeDouble: (value: number) => void;
|
|
4374
|
-
|
|
4375
|
-
/**
|
|
4376
|
-
* @description Write an int64_t field of the entity.
|
|
4377
|
-
* @param value - The value to write.
|
|
4378
|
-
*/
|
|
4379
|
-
writeInt64: (value: bigint) => void;
|
|
4380
|
-
|
|
4381
|
-
/**
|
|
4382
|
-
* @description Write a uint64_t field of the entity.
|
|
4383
|
-
* @param value - The value to write.
|
|
4384
|
-
*/
|
|
4385
|
-
writeUInt64: (value: bigint) => void;
|
|
4386
|
-
|
|
4387
|
-
/**
|
|
4388
|
-
* @description Write a string field of the entity.
|
|
4389
|
-
* @param value - The value to write.
|
|
4390
|
-
*/
|
|
4391
|
-
writeString: (value: string) => void;
|
|
4392
|
-
|
|
4393
|
-
/**
|
|
4394
|
-
* @description Write a null field of the entity.
|
|
4395
|
-
*/
|
|
4396
|
-
writeNull: () => void;
|
|
4397
|
-
|
|
4398
|
-
/**
|
|
4399
|
-
* @description Start an array section.
|
|
4400
|
-
*/
|
|
4401
|
-
beginArray: () => void;
|
|
4402
|
-
|
|
4403
|
-
/**
|
|
4404
|
-
* @description Finish an array section.
|
|
4405
|
-
*/
|
|
4406
|
-
endArray: () => void;
|
|
4407
|
-
|
|
4408
|
-
/**
|
|
4409
|
-
* @description Start the components section.
|
|
4410
|
-
*/
|
|
4411
|
-
beginComponents: () => void;
|
|
4412
|
-
|
|
4413
|
-
/**
|
|
4414
|
-
* @description Finish the components section
|
|
4415
|
-
*/
|
|
4416
|
-
endComponents: () => void;
|
|
4417
|
-
|
|
4418
|
-
/**
|
|
4419
|
-
* @description Begin writing component with the given ID and type.
|
|
4420
|
-
* @param id - The ID of the component.
|
|
4421
|
-
*/
|
|
4422
|
-
beginComponent: (id: number, type: bigint) => void;
|
|
4423
|
-
|
|
4424
|
-
/**
|
|
4425
|
-
* @description Finish a component section.
|
|
4426
|
-
*/
|
|
4427
|
-
endComponent: () => void;
|
|
4428
|
-
|
|
4429
|
-
/**
|
|
4430
|
-
* @description Write the given component property.
|
|
4431
|
-
* @param id - ID of the component property.
|
|
4432
|
-
* @param value - The value to be written.
|
|
4433
|
-
*/
|
|
4434
|
-
writeProperty: (id: bigint, value: Multiplayer.ReplicatedValue) => void;
|
|
4435
|
-
|
|
4436
|
-
/**
|
|
4437
|
-
* @description Specific handler for writing view components.
|
|
4438
|
-
* /// View Components are data that is stored in specific keys on the server, it allows us to discretely update these
|
|
4439
|
-
* singular data pieces, rather than replicating larger chunks of data, and also allows us to always know where
|
|
4440
|
-
* in a data structure this data will be.
|
|
4441
|
-
* /// @param Id uint16_t : The ID of the component
|
|
4442
|
-
* @param value - The value of the component data to add
|
|
4443
|
-
*/
|
|
4444
|
-
addViewComponent: (id: number, value: Multiplayer.ReplicatedValue) => void;
|
|
4445
|
-
}
|
|
4446
|
-
}
|
|
4447
|
-
|
|
4448
|
-
export namespace Multiplayer {
|
|
4449
|
-
/**
|
|
4450
|
-
* @description The deserialiser is used to take recieved signalr message data and turn it into values you can use to populate a SpaceEntity.
|
|
4451
|
-
* /// This works similarly to the serialiser and you can refer to the serialiser for more details.
|
|
4452
|
-
* It is expected that you will be using the data as you read it to populate either a newly created or currently existing SpaceEntity.
|
|
4453
|
-
*/
|
|
4454
|
-
export interface IEntityDeserialiser {
|
|
4455
|
-
/**
|
|
4456
|
-
* @description Starts the deserialisation.
|
|
4457
|
-
*/
|
|
4458
|
-
enterEntity: () => void;
|
|
4459
|
-
|
|
4460
|
-
/**
|
|
4461
|
-
* @description Ends the deserialisation.
|
|
4462
|
-
*/
|
|
4463
|
-
leaveEntity: () => void;
|
|
4464
|
-
|
|
4465
|
-
/**
|
|
4466
|
-
* @description Reads a boolean from the deserialiser.
|
|
4467
|
-
* @return The deserialised boolean.
|
|
4468
|
-
*/
|
|
4469
|
-
readBool: () => boolean;
|
|
4470
|
-
|
|
4471
|
-
/**
|
|
4472
|
-
* @description Reads a byte from the deserialiser.
|
|
4473
|
-
* @return The deserialised byte.
|
|
4474
|
-
*/
|
|
4475
|
-
readByte: () => number;
|
|
4476
|
-
|
|
4477
|
-
/**
|
|
4478
|
-
* @description Reads a double from the deserialiser.
|
|
4479
|
-
* @return The deserialised double.
|
|
4480
|
-
*/
|
|
4481
|
-
readDouble: () => number;
|
|
4482
|
-
|
|
4483
|
-
/**
|
|
4484
|
-
* @description Reads an int64_t from the deserialiser.
|
|
4485
|
-
* @return The deserialised boolean.
|
|
4486
|
-
*/
|
|
4487
|
-
readInt64: () => bigint;
|
|
4488
|
-
|
|
4489
|
-
/**
|
|
4490
|
-
* @description Reads a uint64_t from the deserialiser.
|
|
4491
|
-
* @return The deserialised uint64_t.
|
|
4492
|
-
*/
|
|
4493
|
-
readUInt64: () => bigint;
|
|
4494
|
-
|
|
4495
|
-
/**
|
|
4496
|
-
* @description Reads a string from the deserialiser.
|
|
4497
|
-
* @return The deserialised string.
|
|
4498
|
-
*/
|
|
4499
|
-
readString: () => string;
|
|
4500
|
-
|
|
4501
|
-
/**
|
|
4502
|
-
* @description Reads a vector2 from the deserialiser.
|
|
4503
|
-
* @return The deserialised vector2.
|
|
4504
|
-
*/
|
|
4505
|
-
readVector2: () => Common.Vector2;
|
|
4506
|
-
|
|
4507
|
-
/**
|
|
4508
|
-
* @description Reads a vector3 from the deserialiser.
|
|
4509
|
-
* @return The deserialised vector3.
|
|
4510
|
-
*/
|
|
4511
|
-
readVector3: () => Common.Vector3;
|
|
4512
|
-
|
|
4513
|
-
/**
|
|
4514
|
-
* @description Reads a vector4 from the deserialiser.
|
|
4515
|
-
* @return The deserialised vector4.
|
|
4516
|
-
*/
|
|
4517
|
-
readVector4: () => Common.Vector4;
|
|
4518
|
-
|
|
4519
|
-
/**
|
|
4520
|
-
* @description Checks if the next value is null.
|
|
4521
|
-
* @return True if the next value is null, false otherwise.
|
|
4522
|
-
*/
|
|
4523
|
-
nextValueIsNull: () => boolean;
|
|
4524
|
-
|
|
4525
|
-
/**
|
|
4526
|
-
* @description Checks if the next value is an array.
|
|
4527
|
-
* @return True if the next value is null, false otherwise.
|
|
4528
|
-
*/
|
|
4529
|
-
nextValueIsArray: () => boolean;
|
|
4530
|
-
|
|
4531
|
-
/**
|
|
4532
|
-
* @description Puts the deserialiser into array processing mode to begin reading from an array.
|
|
4533
|
-
* @param outLength - A reference to variable to store the length of the array.
|
|
4534
|
-
*/
|
|
4535
|
-
enterArray: (outLength: NativeRef) => void;
|
|
4536
|
-
|
|
4537
|
-
/**
|
|
4538
|
-
* @description Completes reading from and array and leaves the array processing mode.
|
|
4539
|
-
*/
|
|
4540
|
-
leaveArray: () => void;
|
|
4541
|
-
|
|
4542
|
-
/**
|
|
4543
|
-
* @description Puts the deserialiser into component processing mode to begin reading from the components section of the serialised entity.
|
|
4544
|
-
*/
|
|
4545
|
-
enterComponents: () => void;
|
|
4546
|
-
|
|
4547
|
-
/**
|
|
4548
|
-
* @description Completes reading the components and exits that mode.
|
|
4549
|
-
*/
|
|
4550
|
-
leaveComponents: () => void;
|
|
4551
|
-
|
|
4552
|
-
/**
|
|
4553
|
-
* @description Gets the total number of components, including view components.
|
|
4554
|
-
* /// If iterating components by this count, subtract number of view components.
|
|
4555
|
-
* /// @return The number of components.
|
|
4556
|
-
*/
|
|
4557
|
-
getNumComponents: () => bigint;
|
|
4558
|
-
|
|
4559
|
-
/**
|
|
4560
|
-
* @description Gets the number of components that are not view components.
|
|
4561
|
-
* @return The number of non-view components.
|
|
4562
|
-
*/
|
|
4563
|
-
getNumRealComponents: () => bigint;
|
|
4564
|
-
|
|
4565
|
-
/**
|
|
4566
|
-
* @description Begins the processes of deserialising a single component that is not a view component.
|
|
4567
|
-
*/
|
|
4568
|
-
enterComponent: (outId: NativeRef, outType: NativeRef) => void;
|
|
4569
|
-
|
|
4570
|
-
/**
|
|
4571
|
-
* @description Completes the deserialisation of a single component.
|
|
4572
|
-
*/
|
|
4573
|
-
leaveComponent: () => void;
|
|
4574
|
-
|
|
4575
|
-
/**
|
|
4576
|
-
* @description Gets the number of properties in the component that is currently being deserialised.
|
|
4577
|
-
* @return The number of properties in the component.
|
|
4578
|
-
*/
|
|
4579
|
-
getNumProperties: () => bigint;
|
|
4580
|
-
|
|
4581
|
-
/**
|
|
4582
|
-
* @description Reads a property from the deserialiser, returning it as a ReplicatedValue.
|
|
4583
|
-
* @param outId - A reference to a variable to store the ID of the property.
|
|
4584
|
-
* @return The property value.
|
|
4585
|
-
*/
|
|
4586
|
-
readProperty: (outId: NativeRef) => Multiplayer.ReplicatedValue;
|
|
4587
|
-
|
|
4588
|
-
/**
|
|
4589
|
-
* @description Reads a view component from the deserialiser, returning it as a ReplicatedValue.
|
|
4590
|
-
* /// Since view components are handled differently in the serialiser, they are similarly deserialised in their own way.
|
|
4591
|
-
* /// @return The view component value.
|
|
4592
|
-
*/
|
|
4593
|
-
getViewComponent: (id: number) => Multiplayer.ReplicatedValue;
|
|
4594
|
-
|
|
4595
|
-
/**
|
|
4596
|
-
* @description Gets whether there is a view component with the given ID.
|
|
4597
|
-
* @param id - The ID of the component.
|
|
4598
|
-
* @return True if there is a view component, false otherwise.
|
|
4599
|
-
*/
|
|
4600
|
-
hasViewComponent: (id: number) => boolean;
|
|
4601
|
-
|
|
4602
|
-
/**
|
|
4603
|
-
* @description Skips a field when deserialising the SpaceEntity fields.
|
|
4604
|
-
*/
|
|
4605
|
-
skip: () => void;
|
|
4606
|
-
}
|
|
4607
|
-
}
|
|
4608
|
-
|
|
4609
4337
|
export namespace Multiplayer {
|
|
4610
4338
|
/**
|
|
4611
4339
|
* @description Controls whether a component is enabled or disabled.
|
|
@@ -21965,7 +21693,7 @@ export namespace Multiplayer {
|
|
|
21965
21693
|
@ingroup Multiplayer
|
|
21966
21694
|
* @description Handling of all network events.
|
|
21967
21695
|
*/
|
|
21968
|
-
export class EventBus extends NativeClassWrapper {
|
|
21696
|
+
export class EventBus extends NativeClassWrapper implements INativeResource {
|
|
21969
21697
|
/** @internal */
|
|
21970
21698
|
constructor(pointer: NativePointer) {
|
|
21971
21699
|
super(pointer);
|
|
@@ -22111,6 +21839,19 @@ export namespace Multiplayer {
|
|
|
22111
21839
|
[this.pointer],
|
|
22112
21840
|
);
|
|
22113
21841
|
}
|
|
21842
|
+
|
|
21843
|
+
delete(): void {
|
|
21844
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21845
|
+
Module.ccall(
|
|
21846
|
+
"csp_multiplayer_EventBus_Dtor",
|
|
21847
|
+
"void",
|
|
21848
|
+
["number"],
|
|
21849
|
+
[this.pointer],
|
|
21850
|
+
);
|
|
21851
|
+
|
|
21852
|
+
this.disposed = true;
|
|
21853
|
+
}
|
|
21854
|
+
}
|
|
22114
21855
|
}
|
|
22115
21856
|
}
|
|
22116
21857
|
|
|
@@ -22784,7 +22525,10 @@ export namespace Multiplayer {
|
|
|
22784
22525
|
@ingroup Multiplayer
|
|
22785
22526
|
* @description Handling of all multiplayer connection functionality, such as connect, disconnect, entity replication and network events.
|
|
22786
22527
|
*/
|
|
22787
|
-
export class MultiplayerConnection
|
|
22528
|
+
export class MultiplayerConnection
|
|
22529
|
+
extends NativeClassWrapper
|
|
22530
|
+
implements INativeResource
|
|
22531
|
+
{
|
|
22788
22532
|
/** @internal */
|
|
22789
22533
|
constructor(pointer: NativePointer) {
|
|
22790
22534
|
super(pointer);
|
|
@@ -22908,7 +22652,7 @@ export namespace Multiplayer {
|
|
|
22908
22652
|
|
|
22909
22653
|
/**
|
|
22910
22654
|
* @description Sets the Self Messaging flag for this client.
|
|
22911
|
-
* This allows a client to declare that it wishes to
|
|
22655
|
+
* This allows a client to declare that it wishes to receive every patch and object message it sends.
|
|
22912
22656
|
@warning Don't use this function if you aren't sure of the consequences, it's very unlikely that a client would want to use this!
|
|
22913
22657
|
* @param allowSelfMessaging - True to allow and false to disallow.
|
|
22914
22658
|
* @param callback - A callback with failure state.
|
|
@@ -22957,6 +22701,19 @@ export namespace Multiplayer {
|
|
|
22957
22701
|
|
|
22958
22702
|
return _result;
|
|
22959
22703
|
}
|
|
22704
|
+
|
|
22705
|
+
delete(): void {
|
|
22706
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22707
|
+
Module.ccall(
|
|
22708
|
+
"csp_multiplayer_MultiplayerConnection_Dtor",
|
|
22709
|
+
"void",
|
|
22710
|
+
["number"],
|
|
22711
|
+
[this.pointer],
|
|
22712
|
+
);
|
|
22713
|
+
|
|
22714
|
+
this.disposed = true;
|
|
22715
|
+
}
|
|
22716
|
+
}
|
|
22960
22717
|
}
|
|
22961
22718
|
}
|
|
22962
22719
|
|
|
@@ -23910,8 +23667,8 @@ export namespace Multiplayer {
|
|
|
23910
23667
|
}
|
|
23911
23668
|
|
|
23912
23669
|
/**
|
|
23913
|
-
* @description Get whether the space is transient or
|
|
23914
|
-
* @return Returns true if the space is transient and false if it is marked as
|
|
23670
|
+
* @description Get whether the space is transient or persistent.
|
|
23671
|
+
* @return Returns true if the space is transient and false if it is marked as persistent.
|
|
23915
23672
|
*/
|
|
23916
23673
|
|
|
23917
23674
|
getIsTransient(): boolean {
|
|
@@ -24196,7 +23953,7 @@ export namespace Multiplayer {
|
|
|
24196
23953
|
* @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
|
|
24197
23954
|
* @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
|
|
24198
23955
|
* and an array of information to tell which components updated.
|
|
24199
|
-
* When this callback is
|
|
23956
|
+
* When this callback is received, the flags and arrays should be used to determine which properties have updated data.
|
|
24200
23957
|
*/
|
|
24201
23958
|
setUpdateCallback(
|
|
24202
23959
|
callback: (
|
|
@@ -24357,70 +24114,6 @@ export namespace Multiplayer {
|
|
|
24357
24114
|
);
|
|
24358
24115
|
}
|
|
24359
24116
|
|
|
24360
|
-
/**
|
|
24361
|
-
* @description Serialise local changes into patch message format into the given serialiser. Does not send a patch.
|
|
24362
|
-
* @param serialiser - The serialiser to use.
|
|
24363
|
-
*/
|
|
24364
|
-
|
|
24365
|
-
serialisePatch(serialiser: Multiplayer.IEntitySerialiser): void {
|
|
24366
|
-
Module.ccall(
|
|
24367
|
-
"csp_multiplayer_SpaceEntity_SerialisePatchC_void_IEntitySerialiserR",
|
|
24368
|
-
"void",
|
|
24369
|
-
["number", "number"],
|
|
24370
|
-
[this.pointer, (serialiser as unknown as NativeClassWrapper).pointer],
|
|
24371
|
-
);
|
|
24372
|
-
}
|
|
24373
|
-
|
|
24374
|
-
/**
|
|
24375
|
-
* @description Serialise the entire SpaceEntity into object message format into the given serialiser. Does not send a message.
|
|
24376
|
-
* @param serialiser - The serialiser to use.
|
|
24377
|
-
*/
|
|
24378
|
-
|
|
24379
|
-
serialise(serialiser: Multiplayer.IEntitySerialiser): void {
|
|
24380
|
-
Module.ccall(
|
|
24381
|
-
"csp_multiplayer_SpaceEntity_SerialiseC_void_IEntitySerialiserR",
|
|
24382
|
-
"void",
|
|
24383
|
-
["number", "number"],
|
|
24384
|
-
[this.pointer, (serialiser as unknown as NativeClassWrapper).pointer],
|
|
24385
|
-
);
|
|
24386
|
-
}
|
|
24387
|
-
|
|
24388
|
-
/**
|
|
24389
|
-
* @description Serialises a given component into a consistent format for the given serialiser.
|
|
24390
|
-
* @param serialiser - The serialiser to use.
|
|
24391
|
-
* @param component - The component to be serialised.
|
|
24392
|
-
*/
|
|
24393
|
-
|
|
24394
|
-
serialiseComponent(
|
|
24395
|
-
serialiser: Multiplayer.IEntitySerialiser,
|
|
24396
|
-
component: Multiplayer.ComponentBase,
|
|
24397
|
-
): void {
|
|
24398
|
-
Module.ccall(
|
|
24399
|
-
"csp_multiplayer_SpaceEntity_SerialiseComponentC_void_IEntitySerialiserR_ComponentBaseP",
|
|
24400
|
-
"void",
|
|
24401
|
-
["number", "number", "number"],
|
|
24402
|
-
[
|
|
24403
|
-
this.pointer,
|
|
24404
|
-
(serialiser as unknown as NativeClassWrapper).pointer,
|
|
24405
|
-
component.pointer,
|
|
24406
|
-
],
|
|
24407
|
-
);
|
|
24408
|
-
}
|
|
24409
|
-
|
|
24410
|
-
/**
|
|
24411
|
-
* @description Using the given deserialiser, populate the SpaceEntity with the data in the deserialiser.
|
|
24412
|
-
* @param deserialiser - The deserialiser to use.
|
|
24413
|
-
*/
|
|
24414
|
-
|
|
24415
|
-
deserialise(deserialiser: Multiplayer.IEntityDeserialiser): void {
|
|
24416
|
-
Module.ccall(
|
|
24417
|
-
"csp_multiplayer_SpaceEntity_Deserialise_void_IEntityDeserialiserR",
|
|
24418
|
-
"void",
|
|
24419
|
-
["number", "number"],
|
|
24420
|
-
[this.pointer, (deserialiser as unknown as NativeClassWrapper).pointer],
|
|
24421
|
-
);
|
|
24422
|
-
}
|
|
24423
|
-
|
|
24424
24117
|
/**
|
|
24425
24118
|
* @description Gets the script associated with the space entity.
|
|
24426
24119
|
* @return The EntityScript instance set on the entity.
|
|
@@ -24590,7 +24283,10 @@ export namespace Multiplayer {
|
|
|
24590
24283
|
* can be registered for certain events that occur within the entity system so clients can
|
|
24591
24284
|
* react appropriately.
|
|
24592
24285
|
*/
|
|
24593
|
-
export class SpaceEntitySystem
|
|
24286
|
+
export class SpaceEntitySystem
|
|
24287
|
+
extends NativeClassWrapper
|
|
24288
|
+
implements INativeResource
|
|
24289
|
+
{
|
|
24594
24290
|
/** @internal */
|
|
24595
24291
|
constructor(pointer: NativePointer) {
|
|
24596
24292
|
super(pointer);
|
|
@@ -25312,7 +25008,7 @@ export namespace Multiplayer {
|
|
|
25312
25008
|
* \rst
|
|
25313
25009
|
* .. note::
|
|
25314
25010
|
* If disabling this feature, more requests will be made to Magnopus Connected Services,
|
|
25315
|
-
* and
|
|
25011
|
+
* and consequently more patch merges may occur on the server as a result.
|
|
25316
25012
|
* \endrst
|
|
25317
25013
|
*/
|
|
25318
25014
|
|
|
@@ -25326,7 +25022,7 @@ export namespace Multiplayer {
|
|
|
25326
25022
|
}
|
|
25327
25023
|
|
|
25328
25024
|
/**
|
|
25329
|
-
* @description Retrieves all
|
|
25025
|
+
* @description Retrieves all entities that exist at the root level (do not have a parent entity).
|
|
25330
25026
|
* @return A list of root entities.
|
|
25331
25027
|
*/
|
|
25332
25028
|
|
|
@@ -25348,6 +25044,19 @@ export namespace Multiplayer {
|
|
|
25348
25044
|
|
|
25349
25045
|
return _nPtr;
|
|
25350
25046
|
}
|
|
25047
|
+
|
|
25048
|
+
delete(): void {
|
|
25049
|
+
if (this.ownsPointer && !this.disposed) {
|
|
25050
|
+
Module.ccall(
|
|
25051
|
+
"csp_multiplayer_SpaceEntitySystem_Dtor",
|
|
25052
|
+
"void",
|
|
25053
|
+
["number"],
|
|
25054
|
+
[this.pointer],
|
|
25055
|
+
);
|
|
25056
|
+
|
|
25057
|
+
this.disposed = true;
|
|
25058
|
+
}
|
|
25059
|
+
}
|
|
25351
25060
|
}
|
|
25352
25061
|
}
|
|
25353
25062
|
|
|
@@ -26161,6 +25870,22 @@ export namespace Multiplayer {
|
|
|
26161
25870
|
return _result;
|
|
26162
25871
|
}
|
|
26163
25872
|
|
|
25873
|
+
/**
|
|
25874
|
+
* @description Checks if the entity has a script component.
|
|
25875
|
+
* @return True if component exist, false otherwise.
|
|
25876
|
+
*/
|
|
25877
|
+
|
|
25878
|
+
hasEntityScriptComponent(): boolean {
|
|
25879
|
+
let _result = Module.ccall(
|
|
25880
|
+
"csp_multiplayer_EntityScript_HasEntityScriptComponent_bool",
|
|
25881
|
+
"boolean",
|
|
25882
|
+
["number"],
|
|
25883
|
+
[this.pointer],
|
|
25884
|
+
);
|
|
25885
|
+
|
|
25886
|
+
return _result;
|
|
25887
|
+
}
|
|
25888
|
+
|
|
26164
25889
|
/**
|
|
26165
25890
|
* @description Gets the text of the last error if it is known or otherwise returns a default unknown error string.
|
|
26166
25891
|
* @return Text of the last error.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connected-spaces-platform.web",
|
|
3
3
|
"displayName": "connected-spaces-platform.web",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.17.1+594",
|
|
5
5
|
"description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|