hytopia 0.6.11 → 0.6.13
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/bun-server.mjs +161 -161
- package/docs/server.baseentityoptions.isenvironmental.md +13 -0
- package/docs/server.baseentityoptions.md +19 -0
- package/docs/server.entity.isenvironmental.md +13 -0
- package/docs/server.entity.md +21 -0
- package/docs/server.iterationmap._symbol.iterator_.md +19 -0
- package/docs/server.iterationmap.clear.md +17 -0
- package/docs/server.iterationmap.delete.md +55 -0
- package/docs/server.iterationmap.entries.md +19 -0
- package/docs/server.iterationmap.foreach.md +69 -0
- package/docs/server.iterationmap.get.md +55 -0
- package/docs/server.iterationmap.has.md +55 -0
- package/docs/server.iterationmap.keys.md +19 -0
- package/docs/server.iterationmap.md +264 -0
- package/docs/server.iterationmap.set.md +71 -0
- package/docs/server.iterationmap.size.md +13 -0
- package/docs/server.iterationmap.values.md +19 -0
- package/docs/server.iterationmap.valuesarray.md +13 -0
- package/docs/server.md +11 -0
- package/node-server.mjs +162 -162
- package/package.json +1 -1
- package/server.api.json +625 -0
- package/server.d.ts +108 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [IterationMap](./server.iterationmap.md) > [set](./server.iterationmap.set.md)
|
4
|
+
|
5
|
+
## IterationMap.set() method
|
6
|
+
|
7
|
+
Sets the value for the key in the IterationMap.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
set(key: K, value: V): this;
|
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
|
+
key
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
K
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The key to set.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
<tr><td>
|
50
|
+
|
51
|
+
value
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
V
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The value to set.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
</tbody></table>
|
66
|
+
**Returns:**
|
67
|
+
|
68
|
+
this
|
69
|
+
|
70
|
+
The IterationMap instance for chaining.
|
71
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [IterationMap](./server.iterationmap.md) > [size](./server.iterationmap.size.md)
|
4
|
+
|
5
|
+
## IterationMap.size property
|
6
|
+
|
7
|
+
Returns the number of key-value pairs in the IterationMap.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get size(): number;
|
13
|
+
```
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [IterationMap](./server.iterationmap.md) > [values](./server.iterationmap.values.md)
|
4
|
+
|
5
|
+
## IterationMap.values() method
|
6
|
+
|
7
|
+
Returns an iterator for the values in the IterationMap. Note: For performance-critical iteration, use .valuesArray instead.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
values(): IterableIterator<V>;
|
13
|
+
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
IterableIterator<V>
|
17
|
+
|
18
|
+
An iterator for the values.
|
19
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [IterationMap](./server.iterationmap.md) > [valuesArray](./server.iterationmap.valuesarray.md)
|
4
|
+
|
5
|
+
## IterationMap.valuesArray property
|
6
|
+
|
7
|
+
Returns a readonly array of all values for fast iteration. This is the key performance feature - use this instead of .values() for iteration.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get valuesArray(): readonly V[];
|
13
|
+
```
|
package/docs/server.md
CHANGED
@@ -203,6 +203,17 @@ Manages event emission and assigned listener callbacks.
|
|
203
203
|
Manages the game and associated worlds and systems.
|
204
204
|
|
205
205
|
|
206
|
+
</td></tr>
|
207
|
+
<tr><td>
|
208
|
+
|
209
|
+
[IterationMap](./server.iterationmap.md)
|
210
|
+
|
211
|
+
|
212
|
+
</td><td>
|
213
|
+
|
214
|
+
A high-performance Map-like data structure optimized for frequent iteration.
|
215
|
+
|
216
|
+
|
206
217
|
</td></tr>
|
207
218
|
<tr><td>
|
208
219
|
|