connected-spaces-platform.web 5.3.1 → 5.4.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 +31 -3
- 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 +28 -2
- package/connectedspacesplatform.js +59 -1
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +160 -1
- package/package.json +1 -1
|
@@ -2963,6 +2963,25 @@ function csp_common_Map_UInt32_csp_multiplayer_ReplicatedValueFactory(
|
|
|
2963
2963
|
ProxyClassFactories["csp_common_Map_UInt32_csp_multiplayer_ReplicatedValue"] =
|
|
2964
2964
|
csp_common_Map_UInt32_csp_multiplayer_ReplicatedValueFactory;
|
|
2965
2965
|
|
|
2966
|
+
function csp_common_Map_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValueFactory(
|
|
2967
|
+
nativePointer: NativePointer,
|
|
2968
|
+
): NativeClassWrapper {
|
|
2969
|
+
return new Common.Map<
|
|
2970
|
+
Multiplayer.ReplicatedValue,
|
|
2971
|
+
Multiplayer.ReplicatedValue
|
|
2972
|
+
>(
|
|
2973
|
+
nativePointer,
|
|
2974
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
2975
|
+
"csp_multiplayer_ReplicatedValue",
|
|
2976
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
2977
|
+
"csp_multiplayer_ReplicatedValue",
|
|
2978
|
+
);
|
|
2979
|
+
}
|
|
2980
|
+
ProxyClassFactories[
|
|
2981
|
+
"csp_common_Map_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValue"
|
|
2982
|
+
] =
|
|
2983
|
+
csp_common_Map_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValueFactory;
|
|
2984
|
+
|
|
2966
2985
|
function csp_common_Map_UInt16_csp_multiplayer_ComponentBaseFactory(
|
|
2967
2986
|
nativePointer: NativePointer,
|
|
2968
2987
|
): NativeClassWrapper {
|
|
@@ -3144,6 +3163,7 @@ export namespace Multiplayer {
|
|
|
3144
3163
|
Vector2,
|
|
3145
3164
|
Vector3,
|
|
3146
3165
|
Vector4,
|
|
3166
|
+
Map,
|
|
3147
3167
|
}
|
|
3148
3168
|
}
|
|
3149
3169
|
|
|
@@ -23078,6 +23098,28 @@ export namespace Multiplayer {
|
|
|
23078
23098
|
return new ReplicatedValue(_nPtr);
|
|
23079
23099
|
}
|
|
23080
23100
|
|
|
23101
|
+
/**
|
|
23102
|
+
* @description Construct a ReplicatedValue based on an csp::common::Map type.
|
|
23103
|
+
* @param inMapValue - Initial value.
|
|
23104
|
+
*/
|
|
23105
|
+
static create_mapValue(
|
|
23106
|
+
mapValue: Common.Map<
|
|
23107
|
+
Multiplayer.ReplicatedValue,
|
|
23108
|
+
Multiplayer.ReplicatedValue
|
|
23109
|
+
>,
|
|
23110
|
+
): ReplicatedValue {
|
|
23111
|
+
var _ptr = Module._malloc(8);
|
|
23112
|
+
Module.ccall(
|
|
23113
|
+
"csp_multiplayer_ReplicatedValue_Ctor_MapRC",
|
|
23114
|
+
"void",
|
|
23115
|
+
["number", "number"],
|
|
23116
|
+
[_ptr, mapValue.pointer],
|
|
23117
|
+
);
|
|
23118
|
+
var _nPtr = getNativePointer(_ptr);
|
|
23119
|
+
|
|
23120
|
+
return new ReplicatedValue(_nPtr);
|
|
23121
|
+
}
|
|
23122
|
+
|
|
23081
23123
|
/**
|
|
23082
23124
|
* @description Copy constructor
|
|
23083
23125
|
* @param other - The value to copy.
|
|
@@ -23129,6 +23171,18 @@ export namespace Multiplayer {
|
|
|
23129
23171
|
*/
|
|
23130
23172
|
// operator!=
|
|
23131
23173
|
|
|
23174
|
+
/**
|
|
23175
|
+
* @description Less than operator overload.
|
|
23176
|
+
* @param replicatedValue - Other value to compare to.
|
|
23177
|
+
*/
|
|
23178
|
+
// operator<
|
|
23179
|
+
|
|
23180
|
+
/**
|
|
23181
|
+
* @description Greater than operator overload.
|
|
23182
|
+
* @param replicatedValue - Other value to compare to.
|
|
23183
|
+
*/
|
|
23184
|
+
// operator>
|
|
23185
|
+
|
|
23132
23186
|
/**
|
|
23133
23187
|
* @description Gets the type of replicated value.
|
|
23134
23188
|
* @return Enum representing all supported replication base types.
|
|
@@ -23376,6 +23430,57 @@ export namespace Multiplayer {
|
|
|
23376
23430
|
|
|
23377
23431
|
return _nPtr;
|
|
23378
23432
|
}
|
|
23433
|
+
|
|
23434
|
+
/**
|
|
23435
|
+
* @description Get a csp::common::Map value from this replicated value, will assert if not a csp::common::Map type.
|
|
23436
|
+
* /// Use ReplicatedValue::GetReplicatedValueType to ensure type before accessing.
|
|
23437
|
+
* /// @return csp::common::Map
|
|
23438
|
+
*/
|
|
23439
|
+
|
|
23440
|
+
getMap(): Common.Map<
|
|
23441
|
+
Multiplayer.ReplicatedValue,
|
|
23442
|
+
Multiplayer.ReplicatedValue
|
|
23443
|
+
> {
|
|
23444
|
+
var _ret = Module._malloc(8);
|
|
23445
|
+
|
|
23446
|
+
Module.ccall(
|
|
23447
|
+
"csp_multiplayer_ReplicatedValue_GetMapC_MapRC",
|
|
23448
|
+
"void",
|
|
23449
|
+
["number", "number"],
|
|
23450
|
+
[_ret, this.pointer],
|
|
23451
|
+
);
|
|
23452
|
+
var _nPtr = new Common.Map<
|
|
23453
|
+
Multiplayer.ReplicatedValue,
|
|
23454
|
+
Multiplayer.ReplicatedValue
|
|
23455
|
+
>(
|
|
23456
|
+
getNativePointer(_ret),
|
|
23457
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
23458
|
+
"csp_multiplayer_ReplicatedValue",
|
|
23459
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
23460
|
+
"csp_multiplayer_ReplicatedValue",
|
|
23461
|
+
);
|
|
23462
|
+
Module._free(_ret);
|
|
23463
|
+
|
|
23464
|
+
return _nPtr;
|
|
23465
|
+
}
|
|
23466
|
+
|
|
23467
|
+
/**
|
|
23468
|
+
* @description Set a Map value for this replicated value from a csp::common::Map, will overwrite and previous value.
|
|
23469
|
+
*/
|
|
23470
|
+
|
|
23471
|
+
setMap(
|
|
23472
|
+
value: Common.Map<
|
|
23473
|
+
Multiplayer.ReplicatedValue,
|
|
23474
|
+
Multiplayer.ReplicatedValue
|
|
23475
|
+
>,
|
|
23476
|
+
): void {
|
|
23477
|
+
Module.ccall(
|
|
23478
|
+
"csp_multiplayer_ReplicatedValue_SetMap_void_MapRC",
|
|
23479
|
+
"void",
|
|
23480
|
+
["number", "number"],
|
|
23481
|
+
[this.pointer, value.pointer],
|
|
23482
|
+
);
|
|
23483
|
+
}
|
|
23379
23484
|
}
|
|
23380
23485
|
}
|
|
23381
23486
|
|
|
@@ -36593,7 +36698,7 @@ export namespace Multiplayer {
|
|
|
36593
36698
|
|
|
36594
36699
|
/**
|
|
36595
36700
|
* @description Gived the sensor size and focal length, return the horizonal fov
|
|
36596
|
-
* @return FOV in
|
|
36701
|
+
* @return FOV in radians
|
|
36597
36702
|
*/
|
|
36598
36703
|
|
|
36599
36704
|
getFov(): number {
|
|
@@ -58925,6 +59030,32 @@ export namespace Common {
|
|
|
58925
59030
|
return _inst;
|
|
58926
59031
|
}
|
|
58927
59032
|
|
|
59033
|
+
static ofcsp_multiplayer_ReplicatedValueAndcsp_multiplayer_ReplicatedValue(): Map<
|
|
59034
|
+
Multiplayer.ReplicatedValue,
|
|
59035
|
+
Multiplayer.ReplicatedValue
|
|
59036
|
+
> {
|
|
59037
|
+
var _ret = Module._malloc(8);
|
|
59038
|
+
Module.ccall(
|
|
59039
|
+
"csp_common_Map_Ctor_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValue",
|
|
59040
|
+
"void",
|
|
59041
|
+
["number"],
|
|
59042
|
+
[_ret],
|
|
59043
|
+
);
|
|
59044
|
+
var _inst = new Map<
|
|
59045
|
+
Multiplayer.ReplicatedValue,
|
|
59046
|
+
Multiplayer.ReplicatedValue
|
|
59047
|
+
>(
|
|
59048
|
+
getNativePointer(_ret),
|
|
59049
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
59050
|
+
"csp_multiplayer_ReplicatedValue",
|
|
59051
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
59052
|
+
"csp_multiplayer_ReplicatedValue",
|
|
59053
|
+
);
|
|
59054
|
+
Module._free(_ret);
|
|
59055
|
+
|
|
59056
|
+
return _inst;
|
|
59057
|
+
}
|
|
59058
|
+
|
|
58928
59059
|
static ofUInt16Andcsp_multiplayer_ComponentBase(): Map<
|
|
58929
59060
|
number,
|
|
58930
59061
|
Multiplayer.ComponentBase
|
|
@@ -59013,6 +59144,34 @@ export namespace Common {
|
|
|
59013
59144
|
return _inst;
|
|
59014
59145
|
}
|
|
59015
59146
|
|
|
59147
|
+
static ofcsp_multiplayer_ReplicatedValueAndcsp_multiplayer_ReplicatedValue_Map(
|
|
59148
|
+
other: Common.Map<
|
|
59149
|
+
Multiplayer.ReplicatedValue,
|
|
59150
|
+
Multiplayer.ReplicatedValue
|
|
59151
|
+
>,
|
|
59152
|
+
): Map<Multiplayer.ReplicatedValue, Multiplayer.ReplicatedValue> {
|
|
59153
|
+
var _ret = Module._malloc(8);
|
|
59154
|
+
Module.ccall(
|
|
59155
|
+
"csp_common_Map_Ctor_MapRC_csp_multiplayer_ReplicatedValue_csp_multiplayer_ReplicatedValue",
|
|
59156
|
+
"void",
|
|
59157
|
+
["number", "number"],
|
|
59158
|
+
[_ret, other.pointer],
|
|
59159
|
+
);
|
|
59160
|
+
var _inst = new Map<
|
|
59161
|
+
Multiplayer.ReplicatedValue,
|
|
59162
|
+
Multiplayer.ReplicatedValue
|
|
59163
|
+
>(
|
|
59164
|
+
getNativePointer(_ret),
|
|
59165
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
59166
|
+
"csp_multiplayer_ReplicatedValue",
|
|
59167
|
+
csp_multiplayer_ReplicatedValueFactory,
|
|
59168
|
+
"csp_multiplayer_ReplicatedValue",
|
|
59169
|
+
);
|
|
59170
|
+
Module._free(_ret);
|
|
59171
|
+
|
|
59172
|
+
return _inst;
|
|
59173
|
+
}
|
|
59174
|
+
|
|
59016
59175
|
static ofUInt16Andcsp_multiplayer_ComponentBase_Map(
|
|
59017
59176
|
other: Common.Map<number, Multiplayer.ComponentBase>,
|
|
59018
59177
|
): Map<number, Multiplayer.ComponentBase> {
|
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.4.0+552",
|
|
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": {
|