hytopia 0.8.6-dev4 → 0.8.6-dev6

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 (56) hide show
  1. package/bun-server.mjs +164 -166
  2. package/docs/server.array3number.md +13 -0
  3. package/docs/server.array4number.md +13 -0
  4. package/docs/server.audiomanager.getallaudios.md +38 -1
  5. package/docs/server.audiomanager.getallentityattachedaudios.md +1 -1
  6. package/docs/server.audiomanager.md +1 -1
  7. package/docs/server.blocktype._constructor_.md +15 -1
  8. package/docs/server.blocktype.blocktyperegistry.md +13 -0
  9. package/docs/server.blocktype.md +22 -1
  10. package/docs/server.blocktyperegistry.getallblocktypes.md +38 -1
  11. package/docs/server.blocktyperegistry.md +1 -1
  12. package/docs/server.chunk._constructor_.md +15 -1
  13. package/docs/server.chunk.chunklattice.md +13 -0
  14. package/docs/server.chunk.md +22 -1
  15. package/docs/server.chunklattice.getallchunks.md +38 -1
  16. package/docs/server.chunklattice.md +22 -1
  17. package/docs/server.chunklattice.world.md +13 -0
  18. package/docs/server.chunklatticeevent.md +0 -14
  19. package/docs/server.chunklatticeeventpayloads.md +0 -19
  20. package/docs/server.entitymanager.getallentities.md +38 -1
  21. package/docs/server.entitymanager.md +1 -1
  22. package/docs/server.lightmanager.getalllights.md +38 -1
  23. package/docs/server.lightmanager.md +1 -1
  24. package/docs/server.md +25 -25
  25. package/docs/server.particleemitter.md +0 -14
  26. package/docs/server.particleemitterevent.md +0 -14
  27. package/docs/server.particleemittereventpayloads.md +0 -19
  28. package/docs/server.particleemittermanager.getallparticleemitters.md +38 -1
  29. package/docs/server.particleemittermanager.md +1 -1
  30. package/docs/server.rgbcolor.md +1 -1
  31. package/docs/server.sceneuimanager.getallsceneuis.md +38 -1
  32. package/docs/server.sceneuimanager.md +1 -1
  33. package/docs/server.tickallocator.getarray.md +72 -0
  34. package/docs/server.tickallocator.getarray3number.md +56 -0
  35. package/docs/server.tickallocator.getarray4number.md +56 -0
  36. package/docs/server.tickallocator.getobject.md +72 -0
  37. package/docs/server.tickallocator.getset.md +72 -0
  38. package/docs/server.tickallocator.map.md +72 -0
  39. package/docs/server.tickallocator.md +149 -0
  40. package/docs/server.tickallocator.reset.md +17 -0
  41. package/docs/server.world.md +21 -0
  42. package/docs/server.world.tickallocator.md +13 -0
  43. package/node-server.mjs +170 -172
  44. package/package.json +1 -1
  45. package/server.api.json +737 -670
  46. package/server.d.ts +145 -153
  47. package/docs/server.chunklatticeeventpayloads._chunk_lattice.add_chunk_.md +0 -16
  48. package/docs/server.particleemitter.burst.md +0 -54
  49. package/docs/server.particleemittereventpayloads._particle_emitter.burst_.md +0 -16
  50. package/docs/server.telemetry.getprocessstats.md +0 -56
  51. package/docs/server.telemetry.initializesentry.md +0 -74
  52. package/docs/server.telemetry.md +0 -126
  53. package/docs/server.telemetry.sentry.md +0 -23
  54. package/docs/server.telemetry.startspan.md +0 -91
  55. package/docs/server.telemetryspanoperation.md +0 -244
  56. package/docs/server.telemetryspanoptions.md +0 -18
@@ -32,20 +32,6 @@ Description
32
32
  </th></tr></thead>
33
33
  <tbody><tr><td>
34
34
 
35
- BURST
36
-
37
-
38
- </td><td>
39
-
40
- `"PARTICLE_EMITTER.BURST"`
41
-
42
-
43
- </td><td>
44
-
45
-
46
- </td></tr>
47
- <tr><td>
48
-
49
35
  DESPAWN
50
36
 
51
37
 
@@ -37,25 +37,6 @@ Description
37
37
  </th></tr></thead>
38
38
  <tbody><tr><td>
39
39
 
40
- ["PARTICLE\_EMITTER.BURST"](./server.particleemittereventpayloads._particle_emitter.burst_.md)
41
-
42
-
43
- </td><td>
44
-
45
-
46
- </td><td>
47
-
48
- { particleEmitter: [ParticleEmitter](./server.particleemitter.md)<!-- -->; count: number; }
49
-
50
-
51
- </td><td>
52
-
53
- Emitted when a ParticleEmitter bursts the specified number of particles.
54
-
55
-
56
- </td></tr>
57
- <tr><td>
58
-
59
40
  ["PARTICLE\_EMITTER.DESPAWN"](./server.particleemittereventpayloads._particle_emitter.despawn_.md)
60
41
 
61
42
 
@@ -9,8 +9,45 @@ Retrieves all spawned ParticleEmitter instances for the world.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllParticleEmitters(): ParticleEmitter[];
12
+ getAllParticleEmitters(tickAllocated?: boolean): ParticleEmitter[];
13
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
+ tickAllocated
36
+
37
+
38
+ </td><td>
39
+
40
+ boolean
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_ Whether to use the tick allocator to allocate the returned array of ParticleEmitter instances. The allocated array will be collected and released at the end of the current tick if true. Only use this if you know what you're doing.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
14
51
  **Returns:**
15
52
 
16
53
  [ParticleEmitter](./server.particleemitter.md)<!-- -->\[\]
@@ -98,7 +98,7 @@ Retrieves all spawned ParticleEmitter instances attached to a specific entity.
98
98
  </td></tr>
99
99
  <tr><td>
100
100
 
101
- [getAllParticleEmitters()](./server.particleemittermanager.getallparticleemitters.md)
101
+ [getAllParticleEmitters(tickAllocated)](./server.particleemittermanager.getallparticleemitters.md)
102
102
 
103
103
 
104
104
  </td><td>
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## RgbColor interface
6
6
 
7
- A RGB color. r, g and b expect a value between 0 and 255.
7
+ A RGB color.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -9,8 +9,45 @@ Retrieves all loaded SceneUI instances for the world.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllSceneUIs(): SceneUI[];
12
+ getAllSceneUIs(tickAllocated?: boolean): SceneUI[];
13
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
+ tickAllocated
36
+
37
+
38
+ </td><td>
39
+
40
+ boolean
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_ Whether to use the tick allocator to allocate the returned array of SceneUI instances. The allocated array will be collected and released at the end of the current tick if true. Only use this if you know what you're doing.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
14
51
  **Returns:**
15
52
 
16
53
  [SceneUI](./server.sceneui.md)<!-- -->\[\]
@@ -98,7 +98,7 @@ Retrieves all loaded SceneUI instances attached to a specific entity.
98
98
  </td></tr>
99
99
  <tr><td>
100
100
 
101
- [getAllSceneUIs()](./server.sceneuimanager.getallsceneuis.md)
101
+ [getAllSceneUIs(tickAllocated)](./server.sceneuimanager.getallsceneuis.md)
102
102
 
103
103
 
104
104
  </td><td>
@@ -0,0 +1,72 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [getArray](./server.tickallocator.getarray.md)
4
+
5
+ ## TickAllocator.getArray() method
6
+
7
+ Gets a generic array from the pool. Array is reset to empty state and ready for use.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getArray<T extends unknown[] = unknown[]>(copyFromA?: Iterable<unknown>, copyFromB?: Iterable<unknown>): T;
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
+ copyFromA
36
+
37
+
38
+ </td><td>
39
+
40
+ Iterable&lt;unknown&gt;
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ copyFromB
52
+
53
+
54
+ </td><td>
55
+
56
+ Iterable&lt;unknown&gt;
57
+
58
+
59
+ </td><td>
60
+
61
+ _(Optional)_
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+
67
+ **Returns:**
68
+
69
+ T
70
+
71
+ A reusable array.
72
+
@@ -0,0 +1,56 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [getArray3Number](./server.tickallocator.getarray3number.md)
4
+
5
+ ## TickAllocator.getArray3Number() method
6
+
7
+ Gets a 3-element number array from the pool. Array is reset to \[0, 0, 0\] and ready for use.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getArray3Number(copyFrom?: Array3Number | Set<number>): Array3Number;
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
+ copyFrom
36
+
37
+
38
+ </td><td>
39
+
40
+ [Array3Number](./server.array3number.md) \| Set&lt;number&gt;
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
51
+ **Returns:**
52
+
53
+ [Array3Number](./server.array3number.md)
54
+
55
+ A reusable 3-element array.
56
+
@@ -0,0 +1,56 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [getArray4Number](./server.tickallocator.getarray4number.md)
4
+
5
+ ## TickAllocator.getArray4Number() method
6
+
7
+ Gets a 4-element number array from the pool. Array is reset to \[0, 0, 0, 0\] and ready for use.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getArray4Number(copyFrom?: Array4Number | Set<number>): Array4Number;
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
+ copyFrom
36
+
37
+
38
+ </td><td>
39
+
40
+ [Array4Number](./server.array4number.md) \| Set&lt;number&gt;
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
51
+ **Returns:**
52
+
53
+ [Array4Number](./server.array4number.md)
54
+
55
+ A reusable 4-element array.
56
+
@@ -0,0 +1,72 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [getObject](./server.tickallocator.getobject.md)
4
+
5
+ ## TickAllocator.getObject() method
6
+
7
+ Gets a plain object from the pool. Object is reset to empty state and ready for use.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getObject<T extends Record<string, unknown> = Record<string, unknown>>(copyFromA?: T, copyFromB?: T): T;
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
+ copyFromA
36
+
37
+
38
+ </td><td>
39
+
40
+ T
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ copyFromB
52
+
53
+
54
+ </td><td>
55
+
56
+ T
57
+
58
+
59
+ </td><td>
60
+
61
+ _(Optional)_
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+
67
+ **Returns:**
68
+
69
+ T
70
+
71
+ A reusable plain object.
72
+
@@ -0,0 +1,72 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [getSet](./server.tickallocator.getset.md)
4
+
5
+ ## TickAllocator.getSet() method
6
+
7
+ Gets a set from the pool. Set is reset to empty state and ready for use.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getSet<T>(copyFromA?: Set<T> | T[], copyFromB?: Set<T> | T[]): Set<T>;
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
+ copyFromA
36
+
37
+
38
+ </td><td>
39
+
40
+ Set&lt;T&gt; \| T\[\]
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ copyFromB
52
+
53
+
54
+ </td><td>
55
+
56
+ Set&lt;T&gt; \| T\[\]
57
+
58
+
59
+ </td><td>
60
+
61
+ _(Optional)_
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+
67
+ **Returns:**
68
+
69
+ Set&lt;T&gt;
70
+
71
+ A reusable set.
72
+
@@ -0,0 +1,72 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [map](./server.tickallocator.map.md)
4
+
5
+ ## TickAllocator.map() method
6
+
7
+ Maps an array to a new array using a callback function.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ map<T, U>(array: T[], callback: (value: T, index: number, array: T[]) => U): U[];
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
+ array
36
+
37
+
38
+ </td><td>
39
+
40
+ T\[\]
41
+
42
+
43
+ </td><td>
44
+
45
+ The array to map.
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ callback
52
+
53
+
54
+ </td><td>
55
+
56
+ (value: T, index: number, array: T\[\]) =&gt; U
57
+
58
+
59
+ </td><td>
60
+
61
+ The callback function to map the array.
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+
67
+ **Returns:**
68
+
69
+ U\[\]
70
+
71
+ A new array with the mapped values.
72
+