hytopia 0.1.59 → 0.1.61

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 (65) hide show
  1. package/boilerplate/assets/map.json +2 -1
  2. package/docs/server.audio._constructor_.md +2 -0
  3. package/docs/server.audio.setattachedtoentity.md +1 -1
  4. package/docs/server.audiomanager.unregisteraudio.md +1 -1
  5. package/docs/server.audiomanager.unregisterentityattachedaudios.md +1 -1
  6. package/docs/server.blocktypeoptions.customcollideroptions.md +2 -0
  7. package/docs/server.blocktypeoptions.id.md +2 -0
  8. package/docs/server.blocktypeoptions.isliquid.md +2 -0
  9. package/docs/server.blocktypeoptions.md +8 -2
  10. package/docs/server.blocktypeoptions.name.md +2 -0
  11. package/docs/server.blocktypeoptions.textureuri.md +2 -0
  12. package/docs/server.collisiongroup.md +168 -0
  13. package/docs/server.entity.md +35 -0
  14. package/docs/server.entity.opacity.md +13 -0
  15. package/docs/server.entity.setopacity.md +53 -0
  16. package/docs/server.entityeventpayload.md +9 -0
  17. package/docs/server.entityeventpayload.setopacity.entity.md +11 -0
  18. package/docs/server.entityeventpayload.setopacity.md +70 -0
  19. package/docs/server.entityeventpayload.setopacity.opacity.md +11 -0
  20. package/docs/server.entityeventtype.md +14 -0
  21. package/docs/server.entityoptions.md +19 -0
  22. package/docs/server.entityoptions.opacity.md +13 -0
  23. package/docs/server.md +33 -0
  24. package/docs/server.playerentitycontroller.md +19 -0
  25. package/docs/server.playerentitycontroller.stickstoplatforms.md +13 -0
  26. package/docs/server.playerentitycontrolleroptions.md +19 -0
  27. package/docs/server.playerentitycontrolleroptions.stickstoplatforms.md +13 -0
  28. package/docs/server.sceneui._constructor_.md +49 -0
  29. package/docs/server.sceneui.attachedtoentity.md +11 -0
  30. package/docs/server.sceneui.id.md +11 -0
  31. package/docs/server.sceneui.isloaded.md +11 -0
  32. package/docs/server.sceneui.load.md +53 -0
  33. package/docs/server.sceneui.md +344 -0
  34. package/docs/server.sceneui.offset.md +11 -0
  35. package/docs/server.sceneui.position.md +11 -0
  36. package/docs/server.sceneui.setattachedtoentity.md +53 -0
  37. package/docs/server.sceneui.setoffset.md +53 -0
  38. package/docs/server.sceneui.setposition.md +53 -0
  39. package/docs/server.sceneui.setstate.md +53 -0
  40. package/docs/server.sceneui.state.md +11 -0
  41. package/docs/server.sceneui.templateid.md +11 -0
  42. package/docs/server.sceneui.unload.md +17 -0
  43. package/docs/server.sceneui.world.md +11 -0
  44. package/docs/server.sceneuimanager.getallentityattachedsceneuis.md +55 -0
  45. package/docs/server.sceneuimanager.getallsceneuis.md +19 -0
  46. package/docs/server.sceneuimanager.md +127 -0
  47. package/docs/server.sceneuimanager.unloadentityattachedsceneuis.md +53 -0
  48. package/docs/server.sceneuimanager.world.md +13 -0
  49. package/docs/server.sceneuioptions.attachedtoentity.md +13 -0
  50. package/docs/server.sceneuioptions.md +133 -0
  51. package/docs/server.sceneuioptions.offset.md +13 -0
  52. package/docs/server.sceneuioptions.position.md +13 -0
  53. package/docs/server.sceneuioptions.state.md +13 -0
  54. package/docs/server.sceneuioptions.templateid.md +13 -0
  55. package/docs/server.world.md +21 -0
  56. package/docs/server.world.sceneuimanager.md +13 -0
  57. package/examples/wall-dodge-game/assets/map.json +3995 -0
  58. package/examples/wall-dodge-game/assets/textures/water.png +0 -0
  59. package/examples/wall-dodge-game/assets/ui/index.html +249 -0
  60. package/examples/wall-dodge-game/index.ts +336 -0
  61. package/examples/wall-dodge-game/package.json +15 -0
  62. package/package.json +1 -1
  63. package/server.api.json +1534 -45
  64. package/server.d.ts +188 -16
  65. package/server.js +83 -83
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [setState](./server.sceneui.setstate.md)
4
+
5
+ ## SceneUI.setState() method
6
+
7
+ Sets the state of the SceneUI by performing a shallow merge with existing state.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setState(state: object): 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
+ state
36
+
37
+
38
+ </td><td>
39
+
40
+ object
41
+
42
+
43
+ </td><td>
44
+
45
+ The state to set.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [state](./server.sceneui.state.md)
4
+
5
+ ## SceneUI.state property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get state(): Readonly<object>;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [templateId](./server.sceneui.templateid.md)
4
+
5
+ ## SceneUI.templateId property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get templateId(): string;
11
+ ```
@@ -0,0 +1,17 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [unload](./server.sceneui.unload.md)
4
+
5
+ ## SceneUI.unload() method
6
+
7
+ Unloads the SceneUI from the world.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ unload(): void;
13
+ ```
14
+ **Returns:**
15
+
16
+ void
17
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [world](./server.sceneui.world.md)
4
+
5
+ ## SceneUI.world property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get world(): World | undefined;
11
+ ```
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIManager](./server.sceneuimanager.md) &gt; [getAllEntityAttachedSceneUIs](./server.sceneuimanager.getallentityattachedsceneuis.md)
4
+
5
+ ## SceneUIManager.getAllEntityAttachedSceneUIs() method
6
+
7
+ Retrieves all loaded SceneUI instances attached to a specific entity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getAllEntityAttachedSceneUIs(entity: Entity): SceneUI[];
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
+ entity
36
+
37
+
38
+ </td><td>
39
+
40
+ [Entity](./server.entity.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The entity to get attached SceneUI instances for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [SceneUI](./server.sceneui.md)<!-- -->\[\]
53
+
54
+ An array of SceneUI instances.
55
+
@@ -0,0 +1,19 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIManager](./server.sceneuimanager.md) &gt; [getAllSceneUIs](./server.sceneuimanager.getallsceneuis.md)
4
+
5
+ ## SceneUIManager.getAllSceneUIs() method
6
+
7
+ Retrieves all loaded SceneUI instances for the world.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getAllSceneUIs(): SceneUI[];
13
+ ```
14
+ **Returns:**
15
+
16
+ [SceneUI](./server.sceneui.md)<!-- -->\[\]
17
+
18
+ An array of SceneUI instances.
19
+
@@ -0,0 +1,127 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIManager](./server.sceneuimanager.md)
4
+
5
+ ## SceneUIManager class
6
+
7
+ Manages SceneUI instances in a world.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export default class SceneUIManager
13
+ ```
14
+
15
+ ## Remarks
16
+
17
+ The SceneUIManager is created internally as a singleton for each [World](./server.world.md) instance in a game server. It allows retrieval of all loaded SceneUI instances, entity attached SceneUI instances, and more.
18
+
19
+ The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `SceneUIManager` class.
20
+
21
+ ## Properties
22
+
23
+ <table><thead><tr><th>
24
+
25
+ Property
26
+
27
+
28
+ </th><th>
29
+
30
+ Modifiers
31
+
32
+
33
+ </th><th>
34
+
35
+ Type
36
+
37
+
38
+ </th><th>
39
+
40
+ Description
41
+
42
+
43
+ </th></tr></thead>
44
+ <tbody><tr><td>
45
+
46
+ [world](./server.sceneuimanager.world.md)
47
+
48
+
49
+ </td><td>
50
+
51
+ `readonly`
52
+
53
+
54
+ </td><td>
55
+
56
+ [World](./server.world.md)
57
+
58
+
59
+ </td><td>
60
+
61
+ The world the SceneUIManager is for.
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+
67
+ ## Methods
68
+
69
+ <table><thead><tr><th>
70
+
71
+ Method
72
+
73
+
74
+ </th><th>
75
+
76
+ Modifiers
77
+
78
+
79
+ </th><th>
80
+
81
+ Description
82
+
83
+
84
+ </th></tr></thead>
85
+ <tbody><tr><td>
86
+
87
+ [getAllEntityAttachedSceneUIs(entity)](./server.sceneuimanager.getallentityattachedsceneuis.md)
88
+
89
+
90
+ </td><td>
91
+
92
+
93
+ </td><td>
94
+
95
+ Retrieves all loaded SceneUI instances attached to a specific entity.
96
+
97
+
98
+ </td></tr>
99
+ <tr><td>
100
+
101
+ [getAllSceneUIs()](./server.sceneuimanager.getallsceneuis.md)
102
+
103
+
104
+ </td><td>
105
+
106
+
107
+ </td><td>
108
+
109
+ Retrieves all loaded SceneUI instances for the world.
110
+
111
+
112
+ </td></tr>
113
+ <tr><td>
114
+
115
+ [unloadEntityAttachedSceneUIs(entity)](./server.sceneuimanager.unloadentityattachedsceneuis.md)
116
+
117
+
118
+ </td><td>
119
+
120
+
121
+ </td><td>
122
+
123
+ Unloads and unregisters all SceneUI instances attached to a specific entity.
124
+
125
+
126
+ </td></tr>
127
+ </tbody></table>
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIManager](./server.sceneuimanager.md) &gt; [unloadEntityAttachedSceneUIs](./server.sceneuimanager.unloadentityattachedsceneuis.md)
4
+
5
+ ## SceneUIManager.unloadEntityAttachedSceneUIs() method
6
+
7
+ Unloads and unregisters all SceneUI instances attached to a specific entity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ unloadEntityAttachedSceneUIs(entity: Entity): 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
+ entity
36
+
37
+
38
+ </td><td>
39
+
40
+ [Entity](./server.entity.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The entity to unload and unregister SceneUI instances for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIManager](./server.sceneuimanager.md) &gt; [world](./server.sceneuimanager.world.md)
4
+
5
+ ## SceneUIManager.world property
6
+
7
+ The world the SceneUIManager is for.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get world(): World;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md) &gt; [attachedToEntity](./server.sceneuioptions.attachedtoentity.md)
4
+
5
+ ## SceneUIOptions.attachedToEntity property
6
+
7
+ If set, SceneUI will follow the entity's position
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ attachedToEntity?: Entity;
13
+ ```
@@ -0,0 +1,133 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md)
4
+
5
+ ## SceneUIOptions interface
6
+
7
+ Options for creating a SceneUI instance.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export interface SceneUIOptions
13
+ ```
14
+
15
+ ## Properties
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Property
20
+
21
+
22
+ </th><th>
23
+
24
+ Modifiers
25
+
26
+
27
+ </th><th>
28
+
29
+ Type
30
+
31
+
32
+ </th><th>
33
+
34
+ Description
35
+
36
+
37
+ </th></tr></thead>
38
+ <tbody><tr><td>
39
+
40
+ [attachedToEntity?](./server.sceneuioptions.attachedtoentity.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ [Entity](./server.entity.md)
49
+
50
+
51
+ </td><td>
52
+
53
+ _(Optional)_ If set, SceneUI will follow the entity's position
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
59
+ [offset?](./server.sceneuioptions.offset.md)
60
+
61
+
62
+ </td><td>
63
+
64
+
65
+ </td><td>
66
+
67
+ [Vector3Like](./server.vector3like.md)
68
+
69
+
70
+ </td><td>
71
+
72
+ _(Optional)_ The offset of the SceneUI from the attached entity or position
73
+
74
+
75
+ </td></tr>
76
+ <tr><td>
77
+
78
+ [position?](./server.sceneuioptions.position.md)
79
+
80
+
81
+ </td><td>
82
+
83
+
84
+ </td><td>
85
+
86
+ [Vector3Like](./server.vector3like.md)
87
+
88
+
89
+ </td><td>
90
+
91
+ _(Optional)_ If set, SceneUI will be attached at this position
92
+
93
+
94
+ </td></tr>
95
+ <tr><td>
96
+
97
+ [state?](./server.sceneuioptions.state.md)
98
+
99
+
100
+ </td><td>
101
+
102
+
103
+ </td><td>
104
+
105
+ object
106
+
107
+
108
+ </td><td>
109
+
110
+ _(Optional)_ The state of the SceneUI
111
+
112
+
113
+ </td></tr>
114
+ <tr><td>
115
+
116
+ [templateId](./server.sceneuioptions.templateid.md)
117
+
118
+
119
+ </td><td>
120
+
121
+
122
+ </td><td>
123
+
124
+ string
125
+
126
+
127
+ </td><td>
128
+
129
+ The template ID to use for this SceneUI
130
+
131
+
132
+ </td></tr>
133
+ </tbody></table>
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md) &gt; [offset](./server.sceneuioptions.offset.md)
4
+
5
+ ## SceneUIOptions.offset property
6
+
7
+ The offset of the SceneUI from the attached entity or position
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ offset?: Vector3Like;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md) &gt; [position](./server.sceneuioptions.position.md)
4
+
5
+ ## SceneUIOptions.position property
6
+
7
+ If set, SceneUI will be attached at this position
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ position?: Vector3Like;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md) &gt; [state](./server.sceneuioptions.state.md)
4
+
5
+ ## SceneUIOptions.state property
6
+
7
+ The state of the SceneUI
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ state?: object;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md) &gt; [templateId](./server.sceneuioptions.templateid.md)
4
+
5
+ ## SceneUIOptions.templateId property
6
+
7
+ The template ID to use for this SceneUI
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ templateId: string;
13
+ ```
@@ -311,6 +311,27 @@ _(Optional)_ A function that is called when a player joins the world.
311
311
  _(Optional)_ A function that is called when a player leaves the world.
312
312
 
313
313
 
314
+ </td></tr>
315
+ <tr><td>
316
+
317
+ [sceneUIManager](./server.world.sceneuimanager.md)
318
+
319
+
320
+ </td><td>
321
+
322
+ `readonly`
323
+
324
+
325
+ </td><td>
326
+
327
+ [SceneUIManager](./server.sceneuimanager.md)
328
+
329
+
330
+ </td><td>
331
+
332
+ The scene UI manager for the world.
333
+
334
+
314
335
  </td></tr>
315
336
  <tr><td>
316
337
 
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [World](./server.world.md) &gt; [sceneUIManager](./server.world.sceneuimanager.md)
4
+
5
+ ## World.sceneUIManager property
6
+
7
+ The scene UI manager for the world.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get sceneUIManager(): SceneUIManager;
13
+ ```