hytopia 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 (27) hide show
  1. package/README.md +1 -1
  2. package/client-docs/client.hytopiaui.camerafar.md +13 -0
  3. package/client-docs/client.hytopiaui.cameranear.md +13 -0
  4. package/client-docs/client.hytopiaui.filterprofanity.md +56 -0
  5. package/client-docs/client.hytopiaui.getsceneuitemplaterenderer.md +56 -0
  6. package/client-docs/client.hytopiaui.gltfloader.md +13 -0
  7. package/client-docs/client.hytopiaui.hasprofanity.md +56 -0
  8. package/client-docs/client.hytopiaui.hassceneuitemplaterenderer.md +56 -0
  9. package/client-docs/client.hytopiaui.ismobile.md +13 -0
  10. package/client-docs/client.hytopiaui.lockpointer.md +70 -0
  11. package/client-docs/client.hytopiaui.md +374 -0
  12. package/client-docs/client.hytopiaui.offalldata.md +17 -0
  13. package/client-docs/client.hytopiaui.offdata.md +54 -0
  14. package/client-docs/client.hytopiaui.ondata.md +54 -0
  15. package/client-docs/client.hytopiaui.pressinput.md +70 -0
  16. package/client-docs/client.hytopiaui.registersceneuitemplate.md +70 -0
  17. package/client-docs/client.hytopiaui.senddata.md +54 -0
  18. package/client-docs/client.hytopiaui.setentitycolorcorrection.md +74 -0
  19. package/client-docs/client.hytopiaui.setmousesensitivitymultiplier.md +54 -0
  20. package/client-docs/client.hytopiaui.three.md +13 -0
  21. package/client-docs/client.hytopiaui.unregisterloadedsceneuitemplates.md +17 -0
  22. package/client-docs/client.hytopiaui.unregistersceneuitemplate.md +54 -0
  23. package/client-docs/client.md +58 -0
  24. package/client-docs/client.templaterenderer.md +13 -0
  25. package/client-docs/index.md +30 -0
  26. package/package.json +1 -1
  27. package/server.mjs +1 -1
@@ -0,0 +1,74 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [setEntityColorCorrection](./client.hytopiaui.setentitycolorcorrection.md)
4
+
5
+ ## HytopiaUI.setEntityColorCorrection() method
6
+
7
+ Applies color tint to an entity on the client only (does not affect other players' view). Use for client-side visual effects like highlighting, damage indicators, or team colors.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setEntityColorCorrection(entityId: number, color: {
13
+ r: number;
14
+ g: number;
15
+ b: number;
16
+ } | undefined): void;
17
+ ```
18
+
19
+ ## Parameters
20
+
21
+ <table><thead><tr><th>
22
+
23
+ Parameter
24
+
25
+
26
+ </th><th>
27
+
28
+ Type
29
+
30
+
31
+ </th><th>
32
+
33
+ Description
34
+
35
+
36
+ </th></tr></thead>
37
+ <tbody><tr><td>
38
+
39
+ entityId
40
+
41
+
42
+ </td><td>
43
+
44
+ number
45
+
46
+
47
+ </td><td>
48
+
49
+ ID of the entity to tint
50
+
51
+
52
+ </td></tr>
53
+ <tr><td>
54
+
55
+ color
56
+
57
+
58
+ </td><td>
59
+
60
+ { r: number; g: number; b: number; } \| undefined
61
+
62
+
63
+ </td><td>
64
+
65
+ RGB color multiplier (0-1 range per channel), or `undefined` to remove tint
66
+
67
+
68
+ </td></tr>
69
+ </tbody></table>
70
+
71
+ **Returns:**
72
+
73
+ void
74
+
@@ -0,0 +1,54 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [setMouseSensitivityMultiplier](./client.hytopiaui.setmousesensitivitymultiplier.md)
4
+
5
+ ## HytopiaUI.setMouseSensitivityMultiplier() method
6
+
7
+ Adjusts the user's base mouse sensitivity for camera rotation. Values above 1.0 increase sensitivity, below 1.0 decrease it. Useful for providing sensitivity settings in your UI options menu.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setMouseSensitivityMultiplier(multiplier: number): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ multiplier
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ Sensitivity multiplier (`1.0` = default, `2.0` = twice as sensitive, `0.5` = half as sensitive)
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
51
+ **Returns:**
52
+
53
+ void
54
+
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [three](./client.hytopiaui.three.md)
4
+
5
+ ## HytopiaUI.three property
6
+
7
+ Access to the THREE.js library for advanced 3D rendering. Use for custom visual effects in your UI.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get three(): typeof THREE;
13
+ ```
@@ -0,0 +1,17 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [unregisterLoadedSceneUITemplates](./client.hytopiaui.unregisterloadedsceneuitemplates.md)
4
+
5
+ ## HytopiaUI.unregisterLoadedSceneUITemplates() method
6
+
7
+ Removes all custom Scene UI templates. Built-in HYTOPIA templates (prefixed with `hytopia:`<!-- -->) are preserved. Use this when cleaning up your game code on disconnect or world change.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ unregisterLoadedSceneUITemplates(): void;
13
+ ```
14
+ **Returns:**
15
+
16
+ void
17
+
@@ -0,0 +1,54 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md) &gt; [HytopiaUI](./client.hytopiaui.md) &gt; [unregisterSceneUITemplate](./client.hytopiaui.unregistersceneuitemplate.md)
4
+
5
+ ## HytopiaUI.unregisterSceneUITemplate() method
6
+
7
+ Removes a registered Scene UI template. The template will no longer be available for new Scene UI instances. Existing instances using this template are not affected.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ unregisterSceneUITemplate(templateId: string): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ templateId
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ Template identifier to remove
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
51
+ **Returns:**
52
+
53
+ void
54
+
@@ -0,0 +1,58 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md)
4
+
5
+ ## client package
6
+
7
+ ## Classes
8
+
9
+ <table><thead><tr><th>
10
+
11
+ Class
12
+
13
+
14
+ </th><th>
15
+
16
+ Description
17
+
18
+
19
+ </th></tr></thead>
20
+ <tbody><tr><td>
21
+
22
+ [HytopiaUI](./client.hytopiaui.md)
23
+
24
+
25
+ </td><td>
26
+
27
+ Global API for interacting with the HYTOPIA game client. Access via the `hytopia` global variable in your client-side HTML UI code.
28
+
29
+
30
+ </td></tr>
31
+ </tbody></table>
32
+
33
+ ## Type Aliases
34
+
35
+ <table><thead><tr><th>
36
+
37
+ Type Alias
38
+
39
+
40
+ </th><th>
41
+
42
+ Description
43
+
44
+
45
+ </th></tr></thead>
46
+ <tbody><tr><td>
47
+
48
+ [TemplateRenderer](./client.templaterenderer.md)
49
+
50
+
51
+ </td><td>
52
+
53
+ A function that creates and returns an HTML element for a Scene UI template.
54
+
55
+
56
+ </td></tr>
57
+ </tbody></table>
58
+
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [client](./client.md) &gt; [TemplateRenderer](./client.templaterenderer.md)
4
+
5
+ ## TemplateRenderer type
6
+
7
+ A function that creates and returns an HTML element for a Scene UI template.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type TemplateRenderer = (id: number, onState: (callback: OnStateCallback) => void) => HTMLElement;
13
+ ```
@@ -0,0 +1,30 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md)
4
+
5
+ ## API Reference
6
+
7
+ ## Packages
8
+
9
+ <table><thead><tr><th>
10
+
11
+ Package
12
+
13
+
14
+ </th><th>
15
+
16
+ Description
17
+
18
+
19
+ </th></tr></thead>
20
+ <tbody><tr><td>
21
+
22
+ [client](./client.md)
23
+
24
+
25
+ </td><td>
26
+
27
+
28
+ </td></tr>
29
+ </tbody></table>
30
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",