hytopia 0.8.6-devtrace-41ce1a9 → 0.8.6-devtrace-allocs

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 (59) hide show
  1. package/bun-server.mjs +168 -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 +17 -1
  6. package/docs/server.audiomanager.getallloopedaudios.md +38 -1
  7. package/docs/server.audiomanager.getalloneshotaudios.md +38 -1
  8. package/docs/server.audiomanager.md +4 -4
  9. package/docs/server.blocktype._constructor_.md +15 -1
  10. package/docs/server.blocktype.blocktyperegistry.md +13 -0
  11. package/docs/server.blocktype.md +22 -1
  12. package/docs/server.blocktyperegistry.getallblocktypes.md +38 -1
  13. package/docs/server.blocktyperegistry.md +1 -1
  14. package/docs/server.chunk._constructor_.md +15 -1
  15. package/docs/server.chunk.chunklattice.md +13 -0
  16. package/docs/server.chunk.md +22 -1
  17. package/docs/server.chunklattice.getallchunks.md +38 -1
  18. package/docs/server.chunklattice.md +22 -1
  19. package/docs/server.chunklattice.world.md +13 -0
  20. package/docs/server.chunklatticeevent.md +14 -0
  21. package/docs/server.chunklatticeeventpayloads._chunk_lattice.add_chunk_.md +16 -0
  22. package/docs/server.chunklatticeeventpayloads.md +19 -0
  23. package/docs/server.entitymanager.getallentities.md +38 -1
  24. package/docs/server.entitymanager.md +1 -1
  25. package/docs/server.lightmanager.getalllights.md +38 -1
  26. package/docs/server.lightmanager.md +1 -1
  27. package/docs/server.md +67 -1
  28. package/docs/server.particleemitter.burst.md +54 -0
  29. package/docs/server.particleemitter.md +14 -0
  30. package/docs/server.particleemitterevent.md +14 -0
  31. package/docs/server.particleemittereventpayloads._particle_emitter.burst_.md +16 -0
  32. package/docs/server.particleemittereventpayloads.md +19 -0
  33. package/docs/server.particleemittermanager.getallparticleemitters.md +38 -1
  34. package/docs/server.particleemittermanager.md +1 -1
  35. package/docs/server.rgbcolor.md +1 -1
  36. package/docs/server.sceneuimanager.getallsceneuis.md +38 -1
  37. package/docs/server.sceneuimanager.md +1 -1
  38. package/docs/server.telemetry.getprocessstats.md +56 -0
  39. package/docs/server.telemetry.initializesentry.md +74 -0
  40. package/docs/server.telemetry.md +126 -0
  41. package/docs/server.telemetry.sentry.md +23 -0
  42. package/docs/server.telemetry.startspan.md +91 -0
  43. package/docs/server.telemetryspanoperation.md +258 -0
  44. package/docs/server.telemetryspanoptions.md +18 -0
  45. package/docs/server.tickallocator.filter.md +72 -0
  46. package/docs/server.tickallocator.getarray.md +72 -0
  47. package/docs/server.tickallocator.getarray3number.md +56 -0
  48. package/docs/server.tickallocator.getarray4number.md +56 -0
  49. package/docs/server.tickallocator.getobject.md +72 -0
  50. package/docs/server.tickallocator.getset.md +72 -0
  51. package/docs/server.tickallocator.map.md +72 -0
  52. package/docs/server.tickallocator.md +163 -0
  53. package/docs/server.tickallocator.reset.md +17 -0
  54. package/docs/server.world.md +21 -0
  55. package/docs/server.world.tickallocator.md +13 -0
  56. package/node-server.mjs +173 -171
  57. package/package.json +1 -1
  58. package/server.api.json +2175 -312
  59. package/server.d.ts +328 -32
@@ -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; [Array3Number](./server.array3number.md)
4
+
5
+ ## Array3Number type
6
+
7
+ A 3-element number array.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type Array3Number = [number, number, number];
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; [Array4Number](./server.array4number.md)
4
+
5
+ ## Array4Number type
6
+
7
+ A 4-element number array.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type Array4Number = [number, number, number, number];
13
+ ```
@@ -9,8 +9,45 @@ Retrieves all loaded audio instances for the world.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllAudios(): Audio[];
12
+ getAllAudios(tickAllocated?: boolean): Audio[];
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)_ If true, uses the tick allocator and frees the allocated array at the end of the current tick. false by default.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
14
51
  **Returns:**
15
52
 
16
53
  [Audio](./server.audio.md)<!-- -->\[\]
@@ -9,7 +9,7 @@ Retrieves all loaded audio instances attached to a specific entity.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllEntityAttachedAudios(entity: Entity): Audio[];
12
+ getAllEntityAttachedAudios(entity: Entity, tickAllocated?: boolean): Audio[];
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -45,6 +45,22 @@ entity
45
45
  The entity to get attached audio instances for.
46
46
 
47
47
 
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ tickAllocated
52
+
53
+
54
+ </td><td>
55
+
56
+ boolean
57
+
58
+
59
+ </td><td>
60
+
61
+ _(Optional)_ If true, uses the tick allocator and frees the allocated array at the end of the current tick. false by default.
62
+
63
+
48
64
  </td></tr>
49
65
  </tbody></table>
50
66
 
@@ -9,8 +9,45 @@ Retrieves all looped audio instances for the world.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllLoopedAudios(): Audio[];
12
+ getAllLoopedAudios(tickAllocated?: boolean): Audio[];
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)_ If true, uses the tick allocator and frees the allocated array at the end of the current tick. false by default.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
14
51
  **Returns:**
15
52
 
16
53
  [Audio](./server.audio.md)<!-- -->\[\]
@@ -9,8 +9,45 @@ Retrieves all oneshot (non-looped) audio instances for the world.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllOneshotAudios(): Audio[];
12
+ getAllOneshotAudios(tickAllocated?: boolean): Audio[];
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)_ If true, uses the tick allocator and frees the allocated array at the end of the current tick. false by default.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
14
51
  **Returns:**
15
52
 
16
53
  [Audio](./server.audio.md)<!-- -->\[\]
@@ -93,7 +93,7 @@ Description
93
93
  </th></tr></thead>
94
94
  <tbody><tr><td>
95
95
 
96
- [getAllAudios()](./server.audiomanager.getallaudios.md)
96
+ [getAllAudios(tickAllocated)](./server.audiomanager.getallaudios.md)
97
97
 
98
98
 
99
99
  </td><td>
@@ -107,7 +107,7 @@ Retrieves all loaded audio instances for the world.
107
107
  </td></tr>
108
108
  <tr><td>
109
109
 
110
- [getAllEntityAttachedAudios(entity)](./server.audiomanager.getallentityattachedaudios.md)
110
+ [getAllEntityAttachedAudios(entity, tickAllocated)](./server.audiomanager.getallentityattachedaudios.md)
111
111
 
112
112
 
113
113
  </td><td>
@@ -121,7 +121,7 @@ Retrieves all loaded audio instances attached to a specific entity.
121
121
  </td></tr>
122
122
  <tr><td>
123
123
 
124
- [getAllLoopedAudios()](./server.audiomanager.getallloopedaudios.md)
124
+ [getAllLoopedAudios(tickAllocated)](./server.audiomanager.getallloopedaudios.md)
125
125
 
126
126
 
127
127
  </td><td>
@@ -135,7 +135,7 @@ Retrieves all looped audio instances for the world.
135
135
  </td></tr>
136
136
  <tr><td>
137
137
 
138
- [getAllOneshotAudios()](./server.audiomanager.getalloneshotaudios.md)
138
+ [getAllOneshotAudios(tickAllocated)](./server.audiomanager.getalloneshotaudios.md)
139
139
 
140
140
 
141
141
  </td><td>
@@ -9,7 +9,7 @@ Creates a new block type instance.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- constructor(options?: BlockTypeOptions);
12
+ constructor(blockTypeRegistry: BlockTypeRegistry, options?: BlockTypeOptions);
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -32,6 +32,20 @@ Description
32
32
  </th></tr></thead>
33
33
  <tbody><tr><td>
34
34
 
35
+ blockTypeRegistry
36
+
37
+
38
+ </td><td>
39
+
40
+ [BlockTypeRegistry](./server.blocktyperegistry.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td></tr>
47
+ <tr><td>
48
+
35
49
  options
36
50
 
37
51
 
@@ -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; [BlockType](./server.blocktype.md) &gt; [blockTypeRegistry](./server.blocktype.blocktyperegistry.md)
4
+
5
+ ## BlockType.blockTypeRegistry property
6
+
7
+ The block type registry that the block type belongs to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get blockTypeRegistry(): BlockTypeRegistry;
13
+ ```
@@ -58,7 +58,7 @@ Description
58
58
  </th></tr></thead>
59
59
  <tbody><tr><td>
60
60
 
61
- [(constructor)(options)](./server.blocktype._constructor_.md)
61
+ [(constructor)(blockTypeRegistry, options)](./server.blocktype._constructor_.md)
62
62
 
63
63
 
64
64
  </td><td>
@@ -97,6 +97,27 @@ Description
97
97
  </th></tr></thead>
98
98
  <tbody><tr><td>
99
99
 
100
+ [blockTypeRegistry](./server.blocktype.blocktyperegistry.md)
101
+
102
+
103
+ </td><td>
104
+
105
+ `readonly`
106
+
107
+
108
+ </td><td>
109
+
110
+ [BlockTypeRegistry](./server.blocktyperegistry.md)
111
+
112
+
113
+ </td><td>
114
+
115
+ The block type registry that the block type belongs to.
116
+
117
+
118
+ </td></tr>
119
+ <tr><td>
120
+
100
121
  [colliderOptions](./server.blocktype.collideroptions.md)
101
122
 
102
123
 
@@ -9,8 +9,45 @@ Get all registered block types.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllBlockTypes(): BlockType[];
12
+ getAllBlockTypes(tickAllocated?: boolean): BlockType[];
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 BlockType 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
  [BlockType](./server.blocktype.md)<!-- -->\[\]
@@ -102,7 +102,7 @@ Description
102
102
  </th></tr></thead>
103
103
  <tbody><tr><td>
104
104
 
105
- [getAllBlockTypes()](./server.blocktyperegistry.getallblocktypes.md)
105
+ [getAllBlockTypes(tickAllocated)](./server.blocktyperegistry.getallblocktypes.md)
106
106
 
107
107
 
108
108
  </td><td>
@@ -9,7 +9,7 @@ Creates a new chunk instance.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- constructor(originCoordinate: Vector3Like);
12
+ constructor(chunkLattice: ChunkLattice, originCoordinate: Vector3Like);
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -32,6 +32,20 @@ Description
32
32
  </th></tr></thead>
33
33
  <tbody><tr><td>
34
34
 
35
+ chunkLattice
36
+
37
+
38
+ </td><td>
39
+
40
+ [ChunkLattice](./server.chunklattice.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td></tr>
47
+ <tr><td>
48
+
35
49
  originCoordinate
36
50
 
37
51
 
@@ -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; [Chunk](./server.chunk.md) &gt; [chunkLattice](./server.chunk.chunklattice.md)
4
+
5
+ ## Chunk.chunkLattice property
6
+
7
+ The chunk lattice that the chunk belongs to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get chunkLattice(): ChunkLattice;
13
+ ```
@@ -37,7 +37,7 @@ Description
37
37
  </th></tr></thead>
38
38
  <tbody><tr><td>
39
39
 
40
- [(constructor)(originCoordinate)](./server.chunk._constructor_.md)
40
+ [(constructor)(chunkLattice, originCoordinate)](./server.chunk._constructor_.md)
41
41
 
42
42
 
43
43
  </td><td>
@@ -94,6 +94,27 @@ Readonly&lt;Uint8Array&gt;
94
94
  The blocks in the chunk as a flat Uint8Array\[4096\], each index as 0 or a block type id.
95
95
 
96
96
 
97
+ </td></tr>
98
+ <tr><td>
99
+
100
+ [chunkLattice](./server.chunk.chunklattice.md)
101
+
102
+
103
+ </td><td>
104
+
105
+ `readonly`
106
+
107
+
108
+ </td><td>
109
+
110
+ [ChunkLattice](./server.chunklattice.md)
111
+
112
+
113
+ </td><td>
114
+
115
+ The chunk lattice that the chunk belongs to.
116
+
117
+
97
118
  </td></tr>
98
119
  <tr><td>
99
120
 
@@ -9,8 +9,45 @@ Get all chunks in the lattice.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllChunks(): Chunk[];
12
+ getAllChunks(tickAllocated?: boolean): Chunk[];
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 Chunk 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
  [Chunk](./server.chunk.md)<!-- -->\[\]
@@ -94,6 +94,27 @@ number
94
94
  The number of chunks in the lattice.
95
95
 
96
96
 
97
+ </td></tr>
98
+ <tr><td>
99
+
100
+ [world](./server.chunklattice.world.md)
101
+
102
+
103
+ </td><td>
104
+
105
+ `readonly`
106
+
107
+
108
+ </td><td>
109
+
110
+ [World](./server.world.md)
111
+
112
+
113
+ </td><td>
114
+
115
+ The world that the chunk lattice belongs to.
116
+
117
+
97
118
  </td></tr>
98
119
  </tbody></table>
99
120
 
@@ -131,7 +152,7 @@ Removes and clears all chunks and their blocks from the lattice.
131
152
  </td></tr>
132
153
  <tr><td>
133
154
 
134
- [getAllChunks()](./server.chunklattice.getallchunks.md)
155
+ [getAllChunks(tickAllocated)](./server.chunklattice.getallchunks.md)
135
156
 
136
157
 
137
158
  </td><td>
@@ -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; [ChunkLattice](./server.chunklattice.md) &gt; [world](./server.chunklattice.world.md)
4
+
5
+ ## ChunkLattice.world property
6
+
7
+ The world that the chunk lattice belongs to.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get world(): World;
13
+ ```
@@ -32,6 +32,20 @@ Description
32
32
  </th></tr></thead>
33
33
  <tbody><tr><td>
34
34
 
35
+ ADD\_CHUNK
36
+
37
+
38
+ </td><td>
39
+
40
+ `"CHUNK_LATTICE.ADD_CHUNK"`
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td></tr>
47
+ <tr><td>
48
+
35
49
  REMOVE\_CHUNK
36
50
 
37
51
 
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md) &gt; ["CHUNK\_LATTICE.ADD\_CHUNK"](./server.chunklatticeeventpayloads._chunk_lattice.add_chunk_.md)
4
+
5
+ ## ChunkLatticeEventPayloads."CHUNK\_LATTICE.ADD\_CHUNK" property
6
+
7
+ Emitted when a chunk is added to the lattice.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [ChunkLatticeEvent.ADD_CHUNK]: {
13
+ chunkLattice: ChunkLattice;
14
+ chunk: Chunk;
15
+ };
16
+ ```
@@ -37,6 +37,25 @@ Description
37
37
  </th></tr></thead>
38
38
  <tbody><tr><td>
39
39
 
40
+ ["CHUNK\_LATTICE.ADD\_CHUNK"](./server.chunklatticeeventpayloads._chunk_lattice.add_chunk_.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ { chunkLattice: [ChunkLattice](./server.chunklattice.md)<!-- -->; chunk: [Chunk](./server.chunk.md)<!-- -->; }
49
+
50
+
51
+ </td><td>
52
+
53
+ Emitted when a chunk is added to the lattice.
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
40
59
  ["CHUNK\_LATTICE.REMOVE\_CHUNK"](./server.chunklatticeeventpayloads._chunk_lattice.remove_chunk_.md)
41
60
 
42
61
 
@@ -9,8 +9,45 @@ Gets all spawned entities in the world.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getAllEntities(): Entity[];
12
+ getAllEntities(tickAllocated?: boolean): Entity[];
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 Entity 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
  [Entity](./server.entity.md)<!-- -->\[\]
@@ -114,7 +114,7 @@ Description
114
114
  </th></tr></thead>
115
115
  <tbody><tr><td>
116
116
 
117
- [getAllEntities()](./server.entitymanager.getallentities.md)
117
+ [getAllEntities(tickAllocated)](./server.entitymanager.getallentities.md)
118
118
 
119
119
 
120
120
  </td><td>