@utsp/core 0.17.0-nightly.20260128152056.03a8669 → 0.17.0-nightly.20260128161430.00e511d
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/dist/benchmark.cjs +1 -1
- package/dist/benchmark.d.ts +17 -0
- package/dist/benchmark.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7255,6 +7255,10 @@ declare class Core {
|
|
|
7255
7255
|
a: number;
|
|
7256
7256
|
e: number;
|
|
7257
7257
|
}[];
|
|
7258
|
+
/**
|
|
7259
|
+
* Reliability mode for input transmission
|
|
7260
|
+
*/
|
|
7261
|
+
private _inputReliability;
|
|
7258
7262
|
readonly mode: CoreMode;
|
|
7259
7263
|
readonly maxUsers: number;
|
|
7260
7264
|
strictMode: boolean;
|
|
@@ -7318,6 +7322,19 @@ declare class Core {
|
|
|
7318
7322
|
* ```
|
|
7319
7323
|
*/
|
|
7320
7324
|
isStandalone(): boolean;
|
|
7325
|
+
/**
|
|
7326
|
+
* Sets the reliability mode for input transmission
|
|
7327
|
+
*
|
|
7328
|
+
* - 'reliable': Inputs are sent ordered and guaranteed (TCP-like). Good for turn-based games or menus.
|
|
7329
|
+
* - 'volatile': Inputs are sent unreliable/unordered (UDP-like). Good for real-time action games to avoid lag.
|
|
7330
|
+
*
|
|
7331
|
+
* @param mode - 'reliable' or 'volatile'
|
|
7332
|
+
*/
|
|
7333
|
+
setInputReliability(mode: 'reliable' | 'volatile'): void;
|
|
7334
|
+
/**
|
|
7335
|
+
* Gets the current input transmission reliability mode
|
|
7336
|
+
*/
|
|
7337
|
+
getInputReliability(): 'reliable' | 'volatile';
|
|
7321
7338
|
/**
|
|
7322
7339
|
* Creates a new user in the engine
|
|
7323
7340
|
*
|