@utsp/core 0.17.0-nightly.20260128152056.03a8669 → 0.17.0-nightly.20260128165134.1dad36f

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/index.d.ts CHANGED
@@ -4345,6 +4345,7 @@ declare class User<TData = Record<string, any>> {
4345
4345
  private bytesTickRate;
4346
4346
  private currentTickBytesSent;
4347
4347
  private currentTickBytesReceived;
4348
+ private lastInputTick;
4348
4349
  private availableViewports;
4349
4350
  /**
4350
4351
  * Display command sink (used by Display to enqueue network commands)
@@ -5231,7 +5232,7 @@ declare class User<TData = Record<string, any>> {
5231
5232
  * });
5232
5233
  * ```
5233
5234
  */
5234
- decodeAndApplyCompressedInput(buffer: Uint8Array): void;
5235
+ decodeAndApplyCompressedInput(buffer: Uint8Array, reliability?: 'reliable' | 'volatile'): void;
5235
5236
  /**
5236
5237
  * Play a sound for this user
5237
5238
  *
@@ -7255,6 +7256,10 @@ declare class Core {
7255
7256
  a: number;
7256
7257
  e: number;
7257
7258
  }[];
7259
+ /**
7260
+ * Reliability mode for input transmission
7261
+ */
7262
+ private _inputReliability;
7258
7263
  readonly mode: CoreMode;
7259
7264
  readonly maxUsers: number;
7260
7265
  strictMode: boolean;
@@ -7318,6 +7323,19 @@ declare class Core {
7318
7323
  * ```
7319
7324
  */
7320
7325
  isStandalone(): boolean;
7326
+ /**
7327
+ * Sets the reliability mode for input transmission
7328
+ *
7329
+ * - 'reliable': Inputs are sent ordered and guaranteed (TCP-like). Good for turn-based games or menus.
7330
+ * - 'volatile': Inputs are sent unreliable/unordered (UDP-like). Good for real-time action games to avoid lag.
7331
+ *
7332
+ * @param mode - 'reliable' or 'volatile'
7333
+ */
7334
+ setInputReliability(mode: 'reliable' | 'volatile'): void;
7335
+ /**
7336
+ * Gets the current input transmission reliability mode
7337
+ */
7338
+ getInputReliability(): 'reliable' | 'volatile';
7321
7339
  /**
7322
7340
  * Creates a new user in the engine
7323
7341
  *