hytopia 0.6.8 → 0.6.10
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 +158 -158
- package/docs/server.collider.md +22 -1
- package/docs/server.collider.rawcollider.md +1 -1
- package/docs/server.collider.rawshape.md +13 -0
- package/docs/server.defaultplayerentitycontroller.faceforwardonstop.md +13 -0
- package/docs/server.defaultplayerentitycontroller.md +19 -0
- package/docs/server.defaultplayerentitycontrolleroptions.faceforwardonstop.md +13 -0
- package/docs/server.defaultplayerentitycontrolleroptions.md +19 -0
- package/docs/server.dynamicrigidbodyoptions.md +1 -3
- package/docs/server.dynamicrigidbodyoptions.type.md +1 -1
- package/docs/server.entity.md +35 -0
- package/docs/server.entity.modelshownnodes.md +13 -0
- package/docs/server.entity.setmodelshownnodes.md +53 -0
- package/docs/server.entityevent.md +14 -0
- package/docs/server.entityeventpayloads._entity.set_model_hidden_nodes_.md +1 -1
- package/docs/server.entityeventpayloads._entity.set_model_shown_nodes_.md +16 -0
- package/docs/server.entityeventpayloads.md +20 -1
- package/docs/server.eventrouter.emit_1.md +63 -0
- package/docs/server.eventrouter.emitwithglobal_1.md +63 -0
- package/docs/server.eventrouter.emitwithworld_1.md +77 -0
- package/docs/server.eventrouter.final_1.md +63 -0
- package/docs/server.eventrouter.globalinstance.md +13 -0
- package/docs/server.eventrouter.haslisteners.md +2 -2
- package/docs/server.eventrouter.haslisteners_1.md +49 -0
- package/docs/server.eventrouter.listenercount.md +2 -2
- package/docs/server.eventrouter.listenercount_1.md +49 -0
- package/docs/server.eventrouter.listeners.md +2 -2
- package/docs/server.eventrouter.listeners_1.md +49 -0
- package/docs/server.eventrouter.md +180 -0
- package/docs/server.eventrouter.off_1.md +63 -0
- package/docs/server.eventrouter.offall.md +2 -2
- package/docs/server.eventrouter.offall_1.md +51 -0
- package/docs/server.eventrouter.on_1.md +63 -0
- package/docs/server.eventrouter.once_1.md +63 -0
- package/docs/server.filteroptions.md +21 -0
- package/docs/server.intersectionresult.md +18 -0
- package/docs/server.md +44 -0
- package/docs/server.modelentityoptions.md +19 -0
- package/docs/server.modelentityoptions.modelshownnodes.md +13 -0
- package/docs/server.moveoptions.md +1 -0
- package/docs/server.pathfindingoptions.md +1 -0
- package/docs/server.playercamera.facingquaternion.md +13 -0
- package/docs/server.playercamera.md +56 -0
- package/docs/server.playercamera.modelshownnodes.md +13 -0
- package/docs/server.playercamera.setmodelshownnodes.md +53 -0
- package/docs/server.playercameraevent.md +14 -0
- package/docs/server.playercameraeventpayloads._player_camera.set_model_shown_nodes_.md +16 -0
- package/docs/server.playercameraeventpayloads.md +19 -0
- package/docs/server.playermanager.md +19 -0
- package/docs/server.playermanager.worldselectionhandler.md +13 -0
- package/docs/server.rawcollider.md +13 -0
- package/docs/server.rawshape.md +13 -0
- package/docs/server.raycastoptions.md +4 -7
- package/docs/server.simulation.intersectionswithrawshape.md +107 -0
- package/docs/server.simulation.md +14 -0
- package/node-server.mjs +159 -159
- package/package.json +1 -1
- package/server.api.json +1751 -217
- package/server.d.ts +132 -35
package/docs/server.collider.md
CHANGED
@@ -296,7 +296,7 @@ The parent rigid body of the collider.
|
|
296
296
|
|
297
297
|
</td><td>
|
298
298
|
|
299
|
-
|
299
|
+
[RawCollider](./server.rawcollider.md) \| undefined
|
300
300
|
|
301
301
|
|
302
302
|
</td><td>
|
@@ -304,6 +304,27 @@ RAPIER.Collider \| undefined
|
|
304
304
|
The raw collider object from the Rapier physics engine.
|
305
305
|
|
306
306
|
|
307
|
+
</td></tr>
|
308
|
+
<tr><td>
|
309
|
+
|
310
|
+
[rawShape](./server.collider.rawshape.md)
|
311
|
+
|
312
|
+
|
313
|
+
</td><td>
|
314
|
+
|
315
|
+
`readonly`
|
316
|
+
|
317
|
+
|
318
|
+
</td><td>
|
319
|
+
|
320
|
+
[RawShape](./server.rawshape.md) \| undefined
|
321
|
+
|
322
|
+
|
323
|
+
</td><td>
|
324
|
+
|
325
|
+
The raw shape object from the Rapier physics engine.
|
326
|
+
|
327
|
+
|
307
328
|
</td></tr>
|
308
329
|
<tr><td>
|
309
330
|
|
@@ -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) > [Collider](./server.collider.md) > [rawShape](./server.collider.rawshape.md)
|
4
|
+
|
5
|
+
## Collider.rawShape property
|
6
|
+
|
7
|
+
The raw shape object from the Rapier physics engine.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get rawShape(): RawShape | undefined;
|
13
|
+
```
|
@@ -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) > [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) > [faceForwardOnStop](./server.defaultplayerentitycontroller.faceforwardonstop.md)
|
4
|
+
|
5
|
+
## DefaultPlayerEntityController.faceForwardOnStop property
|
6
|
+
|
7
|
+
Whether to face forward when the entity stops moving.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
faceForwardOnStop: boolean;
|
13
|
+
```
|
@@ -202,6 +202,25 @@ A function allowing custom logic to determine if the entity can swim.
|
|
202
202
|
A function allowing custom logic to determine if the entity can walk.
|
203
203
|
|
204
204
|
|
205
|
+
</td></tr>
|
206
|
+
<tr><td>
|
207
|
+
|
208
|
+
[faceForwardOnStop](./server.defaultplayerentitycontroller.faceforwardonstop.md)
|
209
|
+
|
210
|
+
|
211
|
+
</td><td>
|
212
|
+
|
213
|
+
|
214
|
+
</td><td>
|
215
|
+
|
216
|
+
boolean
|
217
|
+
|
218
|
+
|
219
|
+
</td><td>
|
220
|
+
|
221
|
+
Whether to face forward when the entity stops moving.
|
222
|
+
|
223
|
+
|
205
224
|
</td></tr>
|
206
225
|
<tr><td>
|
207
226
|
|
@@ -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) > [DefaultPlayerEntityControllerOptions](./server.defaultplayerentitycontrolleroptions.md) > [faceForwardOnStop](./server.defaultplayerentitycontrolleroptions.faceforwardonstop.md)
|
4
|
+
|
5
|
+
## DefaultPlayerEntityControllerOptions.faceForwardOnStop property
|
6
|
+
|
7
|
+
Whether to face forward when the entity stops moving.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
faceForwardOnStop?: boolean;
|
13
|
+
```
|
@@ -148,6 +148,25 @@ _(Optional)_ A function allowing custom logic to determine if the entity can swi
|
|
148
148
|
_(Optional)_ A function allowing custom logic to determine if the entity can walk.
|
149
149
|
|
150
150
|
|
151
|
+
</td></tr>
|
152
|
+
<tr><td>
|
153
|
+
|
154
|
+
[faceForwardOnStop?](./server.defaultplayerentitycontrolleroptions.faceforwardonstop.md)
|
155
|
+
|
156
|
+
|
157
|
+
</td><td>
|
158
|
+
|
159
|
+
|
160
|
+
</td><td>
|
161
|
+
|
162
|
+
boolean
|
163
|
+
|
164
|
+
|
165
|
+
</td><td>
|
166
|
+
|
167
|
+
_(Optional)_ Whether to face forward when the entity stops moving.
|
168
|
+
|
169
|
+
|
151
170
|
</td></tr>
|
152
171
|
<tr><td>
|
153
172
|
|
@@ -304,7 +304,7 @@ _(Optional)_ The soft continuous collision detection prediction of the rigid bod
|
|
304
304
|
</td></tr>
|
305
305
|
<tr><td>
|
306
306
|
|
307
|
-
[type
|
307
|
+
[type](./server.dynamicrigidbodyoptions.type.md)
|
308
308
|
|
309
309
|
|
310
310
|
</td><td>
|
@@ -317,8 +317,6 @@ _(Optional)_ The soft continuous collision detection prediction of the rigid bod
|
|
317
317
|
|
318
318
|
</td><td>
|
319
319
|
|
320
|
-
_(Optional)_
|
321
|
-
|
322
320
|
|
323
321
|
</td></tr>
|
324
322
|
</tbody></table>
|
package/docs/server.entity.md
CHANGED
@@ -378,6 +378,27 @@ number
|
|
378
378
|
The scale of the entity's model.
|
379
379
|
|
380
380
|
|
381
|
+
</td></tr>
|
382
|
+
<tr><td>
|
383
|
+
|
384
|
+
[modelShownNodes](./server.entity.modelshownnodes.md)
|
385
|
+
|
386
|
+
|
387
|
+
</td><td>
|
388
|
+
|
389
|
+
`readonly`
|
390
|
+
|
391
|
+
|
392
|
+
</td><td>
|
393
|
+
|
394
|
+
ReadonlySet<string>
|
395
|
+
|
396
|
+
|
397
|
+
</td><td>
|
398
|
+
|
399
|
+
The nodes to show on the entity's model, overriding hidden nodes.
|
400
|
+
|
401
|
+
|
381
402
|
</td></tr>
|
382
403
|
<tr><td>
|
383
404
|
|
@@ -643,6 +664,20 @@ Sets the playback rate of all animations on the entity's model.
|
|
643
664
|
Sets the nodes to hide on the entity's model. Matched nodes will be hidden for all players. Uses case insensitive substring matching.
|
644
665
|
|
645
666
|
|
667
|
+
</td></tr>
|
668
|
+
<tr><td>
|
669
|
+
|
670
|
+
[setModelShownNodes(modelShownNodes)](./server.entity.setmodelshownnodes.md)
|
671
|
+
|
672
|
+
|
673
|
+
</td><td>
|
674
|
+
|
675
|
+
|
676
|
+
</td><td>
|
677
|
+
|
678
|
+
Sets the nodes to show on the entity's model, overriding hidden nodes. Matched nodes will be shown for all players. Uses case insensitive substring matching.
|
679
|
+
|
680
|
+
|
646
681
|
</td></tr>
|
647
682
|
<tr><td>
|
648
683
|
|
@@ -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) > [Entity](./server.entity.md) > [modelShownNodes](./server.entity.modelshownnodes.md)
|
4
|
+
|
5
|
+
## Entity.modelShownNodes property
|
6
|
+
|
7
|
+
The nodes to show on the entity's model, overriding hidden nodes.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get modelShownNodes(): ReadonlySet<string>;
|
13
|
+
```
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Entity](./server.entity.md) > [setModelShownNodes](./server.entity.setmodelshownnodes.md)
|
4
|
+
|
5
|
+
## Entity.setModelShownNodes() method
|
6
|
+
|
7
|
+
Sets the nodes to show on the entity's model, overriding hidden nodes. Matched nodes will be shown for all players. Uses case insensitive substring matching.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setModelShownNodes(modelShownNodes: 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
|
+
modelShownNodes
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
string\[\]
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The nodes to show on the entity's model.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|
@@ -127,6 +127,20 @@ SET\_MODEL\_HIDDEN\_NODES
|
|
127
127
|
</td><td>
|
128
128
|
|
129
129
|
|
130
|
+
</td></tr>
|
131
|
+
<tr><td>
|
132
|
+
|
133
|
+
SET\_MODEL\_SHOWN\_NODES
|
134
|
+
|
135
|
+
|
136
|
+
</td><td>
|
137
|
+
|
138
|
+
`"ENTITY.SET_MODEL_SHOWN_NODES"`
|
139
|
+
|
140
|
+
|
141
|
+
</td><td>
|
142
|
+
|
143
|
+
|
130
144
|
</td></tr>
|
131
145
|
<tr><td>
|
132
146
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [EntityEventPayloads](./server.entityeventpayloads.md) > ["ENTITY.SET\_MODEL\_SHOWN\_NODES"](./server.entityeventpayloads._entity.set_model_shown_nodes_.md)
|
4
|
+
|
5
|
+
## EntityEventPayloads."ENTITY.SET\_MODEL\_SHOWN\_NODES" property
|
6
|
+
|
7
|
+
Emitted when nodes of the entity's model are set to be shown.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
[EntityEvent.SET_MODEL_SHOWN_NODES]: {
|
13
|
+
entity: Entity;
|
14
|
+
modelShownNodes: Set<string>;
|
15
|
+
};
|
16
|
+
```
|
@@ -164,7 +164,26 @@ Emitted when the playback rate of the entity's model animations is set.
|
|
164
164
|
|
165
165
|
</td><td>
|
166
166
|
|
167
|
-
Emitted when
|
167
|
+
Emitted when nodes of the entity's model are set to be hidden.
|
168
|
+
|
169
|
+
|
170
|
+
</td></tr>
|
171
|
+
<tr><td>
|
172
|
+
|
173
|
+
["ENTITY.SET\_MODEL\_SHOWN\_NODES"](./server.entityeventpayloads._entity.set_model_shown_nodes_.md)
|
174
|
+
|
175
|
+
|
176
|
+
</td><td>
|
177
|
+
|
178
|
+
|
179
|
+
</td><td>
|
180
|
+
|
181
|
+
{ entity: [Entity](./server.entity.md)<!-- -->; modelShownNodes: Set<string>; }
|
182
|
+
|
183
|
+
|
184
|
+
</td><td>
|
185
|
+
|
186
|
+
Emitted when nodes of the entity's model are set to be shown.
|
168
187
|
|
169
188
|
|
170
189
|
</td></tr>
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [EventRouter](./server.eventrouter.md) > [emit](./server.eventrouter.emit_1.md)
|
4
|
+
|
5
|
+
## EventRouter.emit() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
emit(eventType: string, payload: any): boolean;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Parameter
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Type
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Description
|
28
|
+
|
29
|
+
|
30
|
+
</th></tr></thead>
|
31
|
+
<tbody><tr><td>
|
32
|
+
|
33
|
+
eventType
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
string
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
payload
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
any
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
|
58
|
+
</td></tr>
|
59
|
+
</tbody></table>
|
60
|
+
**Returns:**
|
61
|
+
|
62
|
+
boolean
|
63
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [EventRouter](./server.eventrouter.md) > [emitWithGlobal](./server.eventrouter.emitwithglobal_1.md)
|
4
|
+
|
5
|
+
## EventRouter.emitWithGlobal() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
emitWithGlobal(eventType: string, payload: any): void;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Parameter
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Type
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Description
|
28
|
+
|
29
|
+
|
30
|
+
</th></tr></thead>
|
31
|
+
<tbody><tr><td>
|
32
|
+
|
33
|
+
eventType
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
string
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
payload
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
any
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
|
58
|
+
</td></tr>
|
59
|
+
</tbody></table>
|
60
|
+
**Returns:**
|
61
|
+
|
62
|
+
void
|
63
|
+
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [EventRouter](./server.eventrouter.md) > [emitWithWorld](./server.eventrouter.emitwithworld_1.md)
|
4
|
+
|
5
|
+
## EventRouter.emitWithWorld() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
emitWithWorld(world: World, eventType: string, payload: any): void;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Parameter
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Type
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Description
|
28
|
+
|
29
|
+
|
30
|
+
</th></tr></thead>
|
31
|
+
<tbody><tr><td>
|
32
|
+
|
33
|
+
world
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
[World](./server.world.md)
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
eventType
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
string
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
|
58
|
+
</td></tr>
|
59
|
+
<tr><td>
|
60
|
+
|
61
|
+
payload
|
62
|
+
|
63
|
+
|
64
|
+
</td><td>
|
65
|
+
|
66
|
+
any
|
67
|
+
|
68
|
+
|
69
|
+
</td><td>
|
70
|
+
|
71
|
+
|
72
|
+
</td></tr>
|
73
|
+
</tbody></table>
|
74
|
+
**Returns:**
|
75
|
+
|
76
|
+
void
|
77
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [EventRouter](./server.eventrouter.md) > [final](./server.eventrouter.final_1.md)
|
4
|
+
|
5
|
+
## EventRouter.final() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
final(eventType: string, listener: (payload: any) => void): void;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
<table><thead><tr><th>
|
16
|
+
|
17
|
+
Parameter
|
18
|
+
|
19
|
+
|
20
|
+
</th><th>
|
21
|
+
|
22
|
+
Type
|
23
|
+
|
24
|
+
|
25
|
+
</th><th>
|
26
|
+
|
27
|
+
Description
|
28
|
+
|
29
|
+
|
30
|
+
</th></tr></thead>
|
31
|
+
<tbody><tr><td>
|
32
|
+
|
33
|
+
eventType
|
34
|
+
|
35
|
+
|
36
|
+
</td><td>
|
37
|
+
|
38
|
+
string
|
39
|
+
|
40
|
+
|
41
|
+
</td><td>
|
42
|
+
|
43
|
+
|
44
|
+
</td></tr>
|
45
|
+
<tr><td>
|
46
|
+
|
47
|
+
listener
|
48
|
+
|
49
|
+
|
50
|
+
</td><td>
|
51
|
+
|
52
|
+
(payload: any) => void
|
53
|
+
|
54
|
+
|
55
|
+
</td><td>
|
56
|
+
|
57
|
+
|
58
|
+
</td></tr>
|
59
|
+
</tbody></table>
|
60
|
+
**Returns:**
|
61
|
+
|
62
|
+
void
|
63
|
+
|
@@ -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) > [EventRouter](./server.eventrouter.md) > [globalInstance](./server.eventrouter.globalinstance.md)
|
4
|
+
|
5
|
+
## EventRouter.globalInstance property
|
6
|
+
|
7
|
+
The global event router instance.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
static readonly globalInstance: EventRouter;
|
13
|
+
```
|
@@ -9,7 +9,7 @@ Check if there are listeners for a specific event type.
|
|
9
9
|
**Signature:**
|
10
10
|
|
11
11
|
```typescript
|
12
|
-
hasListeners(eventType:
|
12
|
+
hasListeners<TEventType extends keyof EventPayloads>(eventType: TEventType): boolean;
|
13
13
|
```
|
14
14
|
|
15
15
|
## Parameters
|
@@ -37,7 +37,7 @@ eventType
|
|
37
37
|
|
38
38
|
</td><td>
|
39
39
|
|
40
|
-
|
40
|
+
TEventType
|
41
41
|
|
42
42
|
|
43
43
|
</td><td>
|