@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.
- package/dist/index.d.ts +3 -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
|