@utsp/types 0.14.0 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1755,11 +1755,12 @@ interface IApplication<TCore = any, TUser = any, TRuntime = unknown> {
1755
1755
  */
1756
1756
  init(core: TCore, runtime?: TRuntime): void | Promise<void>;
1757
1757
  /**
1758
- * Update global logic (called every frame, runs once)
1758
+ * Update global logic (called every frame, runs once) (optional)
1759
+ * Use this for logic that doesn't depend on specific users.
1759
1760
  * @param core - Core instance
1760
1761
  * @param deltaTime - Time since last update (seconds)
1761
1762
  */
1762
- update(core: TCore, deltaTime: number): void;
1763
+ update?(core: TCore, deltaTime: number): void;
1763
1764
  /**
1764
1765
  * Initialize new user (called when user connects/joins)
1765
1766
  * @param core - Core instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utsp/types",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Type definitions and interfaces for UTSP (Universal Text Stream Protocol)",
5
5
  "author": "THP Software",
6
6
  "license": "MIT",