hytopia 0.3.19 → 0.3.21

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 (20) hide show
  1. package/docs/server.baseentitycontrollerevent.md +6 -6
  2. package/docs/{server.baseentitycontrollereventpayloads.attach.md → server.baseentitycontrollereventpayloads._base_entity_controller.attach_.md} +2 -2
  3. package/docs/{server.baseentitycontrollereventpayloads.despawn.md → server.baseentitycontrollereventpayloads._base_entity_controller.despawn_.md} +2 -2
  4. package/docs/{server.baseentitycontrollereventpayloads.detach.md → server.baseentitycontrollereventpayloads._base_entity_controller.detach_.md} +2 -2
  5. package/docs/{server.baseentitycontrollereventpayloads.spawn.md → server.baseentitycontrollereventpayloads._base_entity_controller.spawn_.md} +2 -2
  6. package/docs/{server.baseentitycontrollereventpayloads.tick.md → server.baseentitycontrollereventpayloads._base_entity_controller.tick_.md} +2 -2
  7. package/docs/{server.baseentitycontrollereventpayloads.tickwithplayerinput.md → server.baseentitycontrollereventpayloads._base_entity_controller.tick_with_player_input_.md} +2 -2
  8. package/docs/server.baseentitycontrollereventpayloads.md +10 -10
  9. package/docs/server.eventrouter.md +0 -84
  10. package/package.json +1 -1
  11. package/server.api.json +167 -1038
  12. package/server.d.ts +6 -13
  13. package/server.js +1 -1
  14. package/docs/server.eventrouter.emit_1.md +0 -63
  15. package/docs/server.eventrouter.emitwithglobal_1.md +0 -63
  16. package/docs/server.eventrouter.emitwithworld_1.md +0 -77
  17. package/docs/server.eventrouter.final_1.md +0 -63
  18. package/docs/server.eventrouter.off_1.md +0 -63
  19. package/docs/server.eventrouter.on_1.md +0 -63
  20. package/docs/server.eventrouter.once_1.md +0 -63
package/server.api.json CHANGED
@@ -3515,7 +3515,7 @@
3515
3515
  },
3516
3516
  {
3517
3517
  "kind": "Content",
3518
- "text": "\"attach\""
3518
+ "text": "\"BASE_ENTITY_CONTROLLER.ATTACH\""
3519
3519
  }
3520
3520
  ],
3521
3521
  "initializerTokenRange": {
@@ -3536,7 +3536,7 @@
3536
3536
  },
3537
3537
  {
3538
3538
  "kind": "Content",
3539
- "text": "\"despawn\""
3539
+ "text": "\"BASE_ENTITY_CONTROLLER.DESPAWN\""
3540
3540
  }
3541
3541
  ],
3542
3542
  "initializerTokenRange": {
@@ -3557,7 +3557,7 @@
3557
3557
  },
3558
3558
  {
3559
3559
  "kind": "Content",
3560
- "text": "\"detach\""
3560
+ "text": "\"BASE_ENTITY_CONTROLLER.DETACH\""
3561
3561
  }
3562
3562
  ],
3563
3563
  "initializerTokenRange": {
@@ -3578,7 +3578,7 @@
3578
3578
  },
3579
3579
  {
3580
3580
  "kind": "Content",
3581
- "text": "\"spawn\""
3581
+ "text": "\"BASE_ENTITY_CONTROLLER.SPAWN\""
3582
3582
  }
3583
3583
  ],
3584
3584
  "initializerTokenRange": {
@@ -3599,7 +3599,7 @@
3599
3599
  },
3600
3600
  {
3601
3601
  "kind": "Content",
3602
- "text": "\"tick\""
3602
+ "text": "\"BASE_ENTITY_CONTROLLER.TICK\""
3603
3603
  }
3604
3604
  ],
3605
3605
  "initializerTokenRange": {
@@ -3620,7 +3620,7 @@
3620
3620
  },
3621
3621
  {
3622
3622
  "kind": "Content",
3623
- "text": "\"tickWithPlayerInput\""
3623
+ "text": "\"BASE_ENTITY_CONTROLLER.TICK_WITH_PLAYER_INPUT\""
3624
3624
  }
3625
3625
  ],
3626
3626
  "initializerTokenRange": {
@@ -3649,7 +3649,7 @@
3649
3649
  "members": [
3650
3650
  {
3651
3651
  "kind": "PropertySignature",
3652
- "canonicalReference": "server!BaseEntityControllerEventPayloads#attach:member",
3652
+ "canonicalReference": "server!BaseEntityControllerEventPayloads#\"BASE_ENTITY_CONTROLLER.ATTACH\":member",
3653
3653
  "docComment": "/**\n * Emitted when an entity is attached to the controller.\n */\n",
3654
3654
  "excerptTokens": [
3655
3655
  {
@@ -3686,7 +3686,7 @@
3686
3686
  "isReadonly": false,
3687
3687
  "isOptional": false,
3688
3688
  "releaseTag": "Public",
3689
- "name": "attach",
3689
+ "name": "\"BASE_ENTITY_CONTROLLER.ATTACH\"",
3690
3690
  "propertyTypeTokenRange": {
3691
3691
  "startIndex": 3,
3692
3692
  "endIndex": 6
@@ -3694,7 +3694,7 @@
3694
3694
  },
3695
3695
  {
3696
3696
  "kind": "PropertySignature",
3697
- "canonicalReference": "server!BaseEntityControllerEventPayloads#despawn:member",
3697
+ "canonicalReference": "server!BaseEntityControllerEventPayloads#\"BASE_ENTITY_CONTROLLER.DESPAWN\":member",
3698
3698
  "docComment": "/**\n * Emitted when an entity is despawned.\n */\n",
3699
3699
  "excerptTokens": [
3700
3700
  {
@@ -3731,7 +3731,7 @@
3731
3731
  "isReadonly": false,
3732
3732
  "isOptional": false,
3733
3733
  "releaseTag": "Public",
3734
- "name": "despawn",
3734
+ "name": "\"BASE_ENTITY_CONTROLLER.DESPAWN\"",
3735
3735
  "propertyTypeTokenRange": {
3736
3736
  "startIndex": 3,
3737
3737
  "endIndex": 6
@@ -3739,7 +3739,7 @@
3739
3739
  },
3740
3740
  {
3741
3741
  "kind": "PropertySignature",
3742
- "canonicalReference": "server!BaseEntityControllerEventPayloads#detach:member",
3742
+ "canonicalReference": "server!BaseEntityControllerEventPayloads#\"BASE_ENTITY_CONTROLLER.DETACH\":member",
3743
3743
  "docComment": "/**\n * Emitted when an entity is detached from the controller.\n */\n",
3744
3744
  "excerptTokens": [
3745
3745
  {
@@ -3776,7 +3776,7 @@
3776
3776
  "isReadonly": false,
3777
3777
  "isOptional": false,
3778
3778
  "releaseTag": "Public",
3779
- "name": "detach",
3779
+ "name": "\"BASE_ENTITY_CONTROLLER.DETACH\"",
3780
3780
  "propertyTypeTokenRange": {
3781
3781
  "startIndex": 3,
3782
3782
  "endIndex": 6
@@ -3784,7 +3784,7 @@
3784
3784
  },
3785
3785
  {
3786
3786
  "kind": "PropertySignature",
3787
- "canonicalReference": "server!BaseEntityControllerEventPayloads#spawn:member",
3787
+ "canonicalReference": "server!BaseEntityControllerEventPayloads#\"BASE_ENTITY_CONTROLLER.SPAWN\":member",
3788
3788
  "docComment": "/**\n * Emitted when an entity is spawned.\n */\n",
3789
3789
  "excerptTokens": [
3790
3790
  {
@@ -3821,7 +3821,7 @@
3821
3821
  "isReadonly": false,
3822
3822
  "isOptional": false,
3823
3823
  "releaseTag": "Public",
3824
- "name": "spawn",
3824
+ "name": "\"BASE_ENTITY_CONTROLLER.SPAWN\"",
3825
3825
  "propertyTypeTokenRange": {
3826
3826
  "startIndex": 3,
3827
3827
  "endIndex": 6
@@ -3829,8 +3829,8 @@
3829
3829
  },
3830
3830
  {
3831
3831
  "kind": "PropertySignature",
3832
- "canonicalReference": "server!BaseEntityControllerEventPayloads#tick:member",
3833
- "docComment": "/**\n * Emitted when an entity is ticked.\n */\n",
3832
+ "canonicalReference": "server!BaseEntityControllerEventPayloads#\"BASE_ENTITY_CONTROLLER.TICK_WITH_PLAYER_INPUT\":member",
3833
+ "docComment": "/**\n * Emitted when an entity is ticked with player input.\n */\n",
3834
3834
  "excerptTokens": [
3835
3835
  {
3836
3836
  "kind": "Content",
@@ -3838,8 +3838,8 @@
3838
3838
  },
3839
3839
  {
3840
3840
  "kind": "Reference",
3841
- "text": "BaseEntityControllerEvent.TICK",
3842
- "canonicalReference": "server!BaseEntityControllerEvent.TICK:member"
3841
+ "text": "BaseEntityControllerEvent.TICK_WITH_PLAYER_INPUT",
3842
+ "canonicalReference": "server!BaseEntityControllerEvent.TICK_WITH_PLAYER_INPUT:member"
3843
3843
  },
3844
3844
  {
3845
3845
  "kind": "Content",
@@ -3851,8 +3851,26 @@
3851
3851
  },
3852
3852
  {
3853
3853
  "kind": "Reference",
3854
- "text": "Entity",
3855
- "canonicalReference": "server!Entity:class"
3854
+ "text": "PlayerEntity",
3855
+ "canonicalReference": "server!PlayerEntity:class"
3856
+ },
3857
+ {
3858
+ "kind": "Content",
3859
+ "text": ";\n input: "
3860
+ },
3861
+ {
3862
+ "kind": "Reference",
3863
+ "text": "PlayerInput",
3864
+ "canonicalReference": "server!PlayerInput:type"
3865
+ },
3866
+ {
3867
+ "kind": "Content",
3868
+ "text": ";\n cameraOrientation: "
3869
+ },
3870
+ {
3871
+ "kind": "Reference",
3872
+ "text": "PlayerCameraOrientation",
3873
+ "canonicalReference": "server!PlayerCameraOrientation:type"
3856
3874
  },
3857
3875
  {
3858
3876
  "kind": "Content",
@@ -3866,16 +3884,16 @@
3866
3884
  "isReadonly": false,
3867
3885
  "isOptional": false,
3868
3886
  "releaseTag": "Public",
3869
- "name": "tick",
3887
+ "name": "\"BASE_ENTITY_CONTROLLER.TICK_WITH_PLAYER_INPUT\"",
3870
3888
  "propertyTypeTokenRange": {
3871
3889
  "startIndex": 3,
3872
- "endIndex": 6
3890
+ "endIndex": 10
3873
3891
  }
3874
3892
  },
3875
3893
  {
3876
3894
  "kind": "PropertySignature",
3877
- "canonicalReference": "server!BaseEntityControllerEventPayloads#tickWithPlayerInput:member",
3878
- "docComment": "/**\n * Emitted when an entity is ticked with player input.\n */\n",
3895
+ "canonicalReference": "server!BaseEntityControllerEventPayloads#\"BASE_ENTITY_CONTROLLER.TICK\":member",
3896
+ "docComment": "/**\n * Emitted when an entity is ticked.\n */\n",
3879
3897
  "excerptTokens": [
3880
3898
  {
3881
3899
  "kind": "Content",
@@ -3883,8 +3901,8 @@
3883
3901
  },
3884
3902
  {
3885
3903
  "kind": "Reference",
3886
- "text": "BaseEntityControllerEvent.TICK_WITH_PLAYER_INPUT",
3887
- "canonicalReference": "server!BaseEntityControllerEvent.TICK_WITH_PLAYER_INPUT:member"
3904
+ "text": "BaseEntityControllerEvent.TICK",
3905
+ "canonicalReference": "server!BaseEntityControllerEvent.TICK:member"
3888
3906
  },
3889
3907
  {
3890
3908
  "kind": "Content",
@@ -3896,26 +3914,8 @@
3896
3914
  },
3897
3915
  {
3898
3916
  "kind": "Reference",
3899
- "text": "PlayerEntity",
3900
- "canonicalReference": "server!PlayerEntity:class"
3901
- },
3902
- {
3903
- "kind": "Content",
3904
- "text": ";\n input: "
3905
- },
3906
- {
3907
- "kind": "Reference",
3908
- "text": "PlayerInput",
3909
- "canonicalReference": "server!PlayerInput:type"
3910
- },
3911
- {
3912
- "kind": "Content",
3913
- "text": ";\n cameraOrientation: "
3914
- },
3915
- {
3916
- "kind": "Reference",
3917
- "text": "PlayerCameraOrientation",
3918
- "canonicalReference": "server!PlayerCameraOrientation:type"
3917
+ "text": "Entity",
3918
+ "canonicalReference": "server!Entity:class"
3919
3919
  },
3920
3920
  {
3921
3921
  "kind": "Content",
@@ -3929,10 +3929,10 @@
3929
3929
  "isReadonly": false,
3930
3930
  "isOptional": false,
3931
3931
  "releaseTag": "Public",
3932
- "name": "tickWithPlayerInput",
3932
+ "name": "\"BASE_ENTITY_CONTROLLER.TICK\"",
3933
3933
  "propertyTypeTokenRange": {
3934
3934
  "startIndex": 3,
3935
- "endIndex": 10
3935
+ "endIndex": 6
3936
3936
  }
3937
3937
  }
3938
3938
  ],
@@ -14586,24 +14586,21 @@
14586
14586
  },
14587
14587
  {
14588
14588
  "kind": "Method",
14589
- "canonicalReference": "server!EventRouter#emit:member(2)",
14590
- "docComment": "",
14589
+ "canonicalReference": "server!EventRouter#emitWithGlobal:member(1)",
14590
+ "docComment": "/**\n * Emits an event to the local and global server instance event routers.\n *\n * @param eventType - The type of event to emit.\n *\n * @param payload - The payload to emit.\n */\n",
14591
14591
  "excerptTokens": [
14592
14592
  {
14593
14593
  "kind": "Content",
14594
- "text": "emit<TEventType extends "
14595
- },
14596
- {
14597
- "kind": "Content",
14598
- "text": "string"
14594
+ "text": "emitWithGlobal<TEventType extends "
14599
14595
  },
14600
14596
  {
14601
14597
  "kind": "Content",
14602
- "text": ", TPayload = "
14598
+ "text": "keyof "
14603
14599
  },
14604
14600
  {
14605
- "kind": "Content",
14606
- "text": "any"
14601
+ "kind": "Reference",
14602
+ "text": "EventPayloads",
14603
+ "canonicalReference": "server!EventPayloads:interface"
14607
14604
  },
14608
14605
  {
14609
14606
  "kind": "Content",
@@ -14611,16 +14608,11 @@
14611
14608
  },
14612
14609
  {
14613
14610
  "kind": "Content",
14614
- "text": "TEventType & "
14615
- },
14616
- {
14617
- "kind": "Reference",
14618
- "text": "Exclude",
14619
- "canonicalReference": "!Exclude:type"
14611
+ "text": "TEventType"
14620
14612
  },
14621
14613
  {
14622
14614
  "kind": "Content",
14623
- "text": "<TEventType, keyof "
14615
+ "text": ", payload: "
14624
14616
  },
14625
14617
  {
14626
14618
  "kind": "Reference",
@@ -14629,15 +14621,7 @@
14629
14621
  },
14630
14622
  {
14631
14623
  "kind": "Content",
14632
- "text": ">"
14633
- },
14634
- {
14635
- "kind": "Content",
14636
- "text": ", payload: "
14637
- },
14638
- {
14639
- "kind": "Content",
14640
- "text": "TPayload"
14624
+ "text": "[TEventType]"
14641
14625
  },
14642
14626
  {
14643
14627
  "kind": "Content",
@@ -14645,7 +14629,7 @@
14645
14629
  },
14646
14630
  {
14647
14631
  "kind": "Content",
14648
- "text": "boolean"
14632
+ "text": "void"
14649
14633
  },
14650
14634
  {
14651
14635
  "kind": "Content",
@@ -14657,63 +14641,52 @@
14657
14641
  "typeParameterName": "TEventType",
14658
14642
  "constraintTokenRange": {
14659
14643
  "startIndex": 1,
14660
- "endIndex": 2
14644
+ "endIndex": 3
14661
14645
  },
14662
14646
  "defaultTypeTokenRange": {
14663
14647
  "startIndex": 0,
14664
14648
  "endIndex": 0
14665
14649
  }
14666
- },
14667
- {
14668
- "typeParameterName": "TPayload",
14669
- "constraintTokenRange": {
14670
- "startIndex": 0,
14671
- "endIndex": 0
14672
- },
14673
- "defaultTypeTokenRange": {
14674
- "startIndex": 3,
14675
- "endIndex": 4
14676
- }
14677
14650
  }
14678
14651
  ],
14679
14652
  "isStatic": false,
14680
14653
  "returnTypeTokenRange": {
14681
- "startIndex": 13,
14682
- "endIndex": 14
14654
+ "startIndex": 9,
14655
+ "endIndex": 10
14683
14656
  },
14684
14657
  "releaseTag": "Public",
14685
14658
  "isProtected": false,
14686
- "overloadIndex": 2,
14659
+ "overloadIndex": 1,
14687
14660
  "parameters": [
14688
14661
  {
14689
14662
  "parameterName": "eventType",
14690
14663
  "parameterTypeTokenRange": {
14691
- "startIndex": 5,
14692
- "endIndex": 10
14664
+ "startIndex": 4,
14665
+ "endIndex": 5
14693
14666
  },
14694
14667
  "isOptional": false
14695
14668
  },
14696
14669
  {
14697
14670
  "parameterName": "payload",
14698
14671
  "parameterTypeTokenRange": {
14699
- "startIndex": 11,
14700
- "endIndex": 12
14672
+ "startIndex": 6,
14673
+ "endIndex": 8
14701
14674
  },
14702
14675
  "isOptional": false
14703
14676
  }
14704
14677
  ],
14705
14678
  "isOptional": false,
14706
14679
  "isAbstract": false,
14707
- "name": "emit"
14680
+ "name": "emitWithGlobal"
14708
14681
  },
14709
14682
  {
14710
14683
  "kind": "Method",
14711
- "canonicalReference": "server!EventRouter#emitWithGlobal:member(1)",
14712
- "docComment": "/**\n * Emits an event to the local and global server instance event routers.\n *\n * @param eventType - The type of event to emit.\n *\n * @param payload - The payload to emit.\n */\n",
14684
+ "canonicalReference": "server!EventRouter#emitWithWorld:member(1)",
14685
+ "docComment": "/**\n * Emits an event to local and provided world event routers.\n *\n * @param world - The world to broadcast the event to.\n *\n * @param eventType - The type of event to broadcast.\n *\n * @param payload - The payload to broadcast.\n */\n",
14713
14686
  "excerptTokens": [
14714
14687
  {
14715
14688
  "kind": "Content",
14716
- "text": "emitWithGlobal<TEventType extends "
14689
+ "text": "emitWithWorld<TEventType extends "
14717
14690
  },
14718
14691
  {
14719
14692
  "kind": "Content",
@@ -14726,7 +14699,16 @@
14726
14699
  },
14727
14700
  {
14728
14701
  "kind": "Content",
14729
- "text": ">(eventType: "
14702
+ "text": ">(world: "
14703
+ },
14704
+ {
14705
+ "kind": "Reference",
14706
+ "text": "World",
14707
+ "canonicalReference": "server!World:class"
14708
+ },
14709
+ {
14710
+ "kind": "Content",
14711
+ "text": ", eventType: "
14730
14712
  },
14731
14713
  {
14732
14714
  "kind": "Content",
@@ -14773,15 +14755,15 @@
14773
14755
  ],
14774
14756
  "isStatic": false,
14775
14757
  "returnTypeTokenRange": {
14776
- "startIndex": 9,
14777
- "endIndex": 10
14758
+ "startIndex": 11,
14759
+ "endIndex": 12
14778
14760
  },
14779
14761
  "releaseTag": "Public",
14780
14762
  "isProtected": false,
14781
14763
  "overloadIndex": 1,
14782
14764
  "parameters": [
14783
14765
  {
14784
- "parameterName": "eventType",
14766
+ "parameterName": "world",
14785
14767
  "parameterTypeTokenRange": {
14786
14768
  "startIndex": 4,
14787
14769
  "endIndex": 5
@@ -14789,148 +14771,87 @@
14789
14771
  "isOptional": false
14790
14772
  },
14791
14773
  {
14792
- "parameterName": "payload",
14774
+ "parameterName": "eventType",
14793
14775
  "parameterTypeTokenRange": {
14794
14776
  "startIndex": 6,
14795
- "endIndex": 8
14777
+ "endIndex": 7
14778
+ },
14779
+ "isOptional": false
14780
+ },
14781
+ {
14782
+ "parameterName": "payload",
14783
+ "parameterTypeTokenRange": {
14784
+ "startIndex": 8,
14785
+ "endIndex": 10
14796
14786
  },
14797
14787
  "isOptional": false
14798
14788
  }
14799
14789
  ],
14800
14790
  "isOptional": false,
14801
14791
  "isAbstract": false,
14802
- "name": "emitWithGlobal"
14792
+ "name": "emitWithWorld"
14803
14793
  },
14804
14794
  {
14805
14795
  "kind": "Method",
14806
- "canonicalReference": "server!EventRouter#emitWithGlobal:member(2)",
14807
- "docComment": "",
14796
+ "canonicalReference": "server!EventRouter#hasListeners:member(1)",
14797
+ "docComment": "/**\n * Check if there are listeners for a specific event type.\n *\n * @param eventType - The type of event to check for listeners.\n *\n * @returns `true` if listeners are found, `false` otherwise.\n */\n",
14808
14798
  "excerptTokens": [
14809
14799
  {
14810
14800
  "kind": "Content",
14811
- "text": "emitWithGlobal<TEventType extends "
14812
- },
14813
- {
14814
- "kind": "Content",
14815
- "text": "string"
14816
- },
14817
- {
14818
- "kind": "Content",
14819
- "text": ", TPayload = "
14820
- },
14821
- {
14822
- "kind": "Content",
14823
- "text": "any"
14824
- },
14825
- {
14826
- "kind": "Content",
14827
- "text": ">(eventType: "
14828
- },
14829
- {
14830
- "kind": "Content",
14831
- "text": "TEventType & "
14832
- },
14833
- {
14834
- "kind": "Reference",
14835
- "text": "Exclude",
14836
- "canonicalReference": "!Exclude:type"
14801
+ "text": "hasListeners(eventType: "
14837
14802
  },
14838
14803
  {
14839
14804
  "kind": "Content",
14840
- "text": "<TEventType, keyof "
14805
+ "text": "keyof "
14841
14806
  },
14842
14807
  {
14843
14808
  "kind": "Reference",
14844
14809
  "text": "EventPayloads",
14845
14810
  "canonicalReference": "server!EventPayloads:interface"
14846
14811
  },
14847
- {
14848
- "kind": "Content",
14849
- "text": ">"
14850
- },
14851
- {
14852
- "kind": "Content",
14853
- "text": ", payload: "
14854
- },
14855
- {
14856
- "kind": "Content",
14857
- "text": "TPayload"
14858
- },
14859
14812
  {
14860
14813
  "kind": "Content",
14861
14814
  "text": "): "
14862
14815
  },
14863
14816
  {
14864
14817
  "kind": "Content",
14865
- "text": "void"
14818
+ "text": "boolean"
14866
14819
  },
14867
14820
  {
14868
14821
  "kind": "Content",
14869
14822
  "text": ";"
14870
14823
  }
14871
14824
  ],
14872
- "typeParameters": [
14873
- {
14874
- "typeParameterName": "TEventType",
14875
- "constraintTokenRange": {
14876
- "startIndex": 1,
14877
- "endIndex": 2
14878
- },
14879
- "defaultTypeTokenRange": {
14880
- "startIndex": 0,
14881
- "endIndex": 0
14882
- }
14883
- },
14884
- {
14885
- "typeParameterName": "TPayload",
14886
- "constraintTokenRange": {
14887
- "startIndex": 0,
14888
- "endIndex": 0
14889
- },
14890
- "defaultTypeTokenRange": {
14891
- "startIndex": 3,
14892
- "endIndex": 4
14893
- }
14894
- }
14895
- ],
14896
14825
  "isStatic": false,
14897
14826
  "returnTypeTokenRange": {
14898
- "startIndex": 13,
14899
- "endIndex": 14
14827
+ "startIndex": 4,
14828
+ "endIndex": 5
14900
14829
  },
14901
14830
  "releaseTag": "Public",
14902
14831
  "isProtected": false,
14903
- "overloadIndex": 2,
14832
+ "overloadIndex": 1,
14904
14833
  "parameters": [
14905
14834
  {
14906
14835
  "parameterName": "eventType",
14907
14836
  "parameterTypeTokenRange": {
14908
- "startIndex": 5,
14909
- "endIndex": 10
14910
- },
14911
- "isOptional": false
14912
- },
14913
- {
14914
- "parameterName": "payload",
14915
- "parameterTypeTokenRange": {
14916
- "startIndex": 11,
14917
- "endIndex": 12
14837
+ "startIndex": 1,
14838
+ "endIndex": 3
14918
14839
  },
14919
14840
  "isOptional": false
14920
14841
  }
14921
14842
  ],
14922
14843
  "isOptional": false,
14923
14844
  "isAbstract": false,
14924
- "name": "emitWithGlobal"
14845
+ "name": "hasListeners"
14925
14846
  },
14926
14847
  {
14927
14848
  "kind": "Method",
14928
- "canonicalReference": "server!EventRouter#emitWithWorld:member(1)",
14929
- "docComment": "/**\n * Emits an event to local and provided world event routers.\n *\n * @param world - The world to broadcast the event to.\n *\n * @param eventType - The type of event to broadcast.\n *\n * @param payload - The payload to broadcast.\n */\n",
14849
+ "canonicalReference": "server!EventRouter#listenerCount:member(1)",
14850
+ "docComment": "/**\n * Get the number of listeners for a specific event type.\n *\n * @param eventType - The type of event to get the listener count for.\n *\n * @returns The number of listeners for the event type.\n */\n",
14930
14851
  "excerptTokens": [
14931
14852
  {
14932
14853
  "kind": "Content",
14933
- "text": "emitWithWorld<TEventType extends "
14854
+ "text": "listenerCount(eventType: "
14934
14855
  },
14935
14856
  {
14936
14857
  "kind": "Content",
@@ -14943,752 +14864,47 @@
14943
14864
  },
14944
14865
  {
14945
14866
  "kind": "Content",
14946
- "text": ">(world: "
14947
- },
14948
- {
14949
- "kind": "Reference",
14950
- "text": "World",
14951
- "canonicalReference": "server!World:class"
14952
- },
14953
- {
14954
- "kind": "Content",
14955
- "text": ", eventType: "
14867
+ "text": "): "
14956
14868
  },
14957
14869
  {
14958
14870
  "kind": "Content",
14959
- "text": "TEventType"
14960
- },
14961
- {
14962
- "kind": "Content",
14963
- "text": ", payload: "
14964
- },
14965
- {
14966
- "kind": "Reference",
14967
- "text": "EventPayloads",
14968
- "canonicalReference": "server!EventPayloads:interface"
14969
- },
14970
- {
14971
- "kind": "Content",
14972
- "text": "[TEventType]"
14973
- },
14974
- {
14975
- "kind": "Content",
14976
- "text": "): "
14977
- },
14978
- {
14979
- "kind": "Content",
14980
- "text": "void"
14981
- },
14982
- {
14983
- "kind": "Content",
14984
- "text": ";"
14985
- }
14986
- ],
14987
- "typeParameters": [
14988
- {
14989
- "typeParameterName": "TEventType",
14990
- "constraintTokenRange": {
14991
- "startIndex": 1,
14992
- "endIndex": 3
14993
- },
14994
- "defaultTypeTokenRange": {
14995
- "startIndex": 0,
14996
- "endIndex": 0
14997
- }
14998
- }
14999
- ],
15000
- "isStatic": false,
15001
- "returnTypeTokenRange": {
15002
- "startIndex": 11,
15003
- "endIndex": 12
15004
- },
15005
- "releaseTag": "Public",
15006
- "isProtected": false,
15007
- "overloadIndex": 1,
15008
- "parameters": [
15009
- {
15010
- "parameterName": "world",
15011
- "parameterTypeTokenRange": {
15012
- "startIndex": 4,
15013
- "endIndex": 5
15014
- },
15015
- "isOptional": false
15016
- },
15017
- {
15018
- "parameterName": "eventType",
15019
- "parameterTypeTokenRange": {
15020
- "startIndex": 6,
15021
- "endIndex": 7
15022
- },
15023
- "isOptional": false
15024
- },
15025
- {
15026
- "parameterName": "payload",
15027
- "parameterTypeTokenRange": {
15028
- "startIndex": 8,
15029
- "endIndex": 10
15030
- },
15031
- "isOptional": false
15032
- }
15033
- ],
15034
- "isOptional": false,
15035
- "isAbstract": false,
15036
- "name": "emitWithWorld"
15037
- },
15038
- {
15039
- "kind": "Method",
15040
- "canonicalReference": "server!EventRouter#emitWithWorld:member(2)",
15041
- "docComment": "",
15042
- "excerptTokens": [
15043
- {
15044
- "kind": "Content",
15045
- "text": "emitWithWorld<TEventType extends "
15046
- },
15047
- {
15048
- "kind": "Content",
15049
- "text": "string"
15050
- },
15051
- {
15052
- "kind": "Content",
15053
- "text": ", TPayload = "
15054
- },
15055
- {
15056
- "kind": "Content",
15057
- "text": "any"
15058
- },
15059
- {
15060
- "kind": "Content",
15061
- "text": ">(world: "
15062
- },
15063
- {
15064
- "kind": "Reference",
15065
- "text": "World",
15066
- "canonicalReference": "server!World:class"
15067
- },
15068
- {
15069
- "kind": "Content",
15070
- "text": ", eventType: "
15071
- },
15072
- {
15073
- "kind": "Content",
15074
- "text": "TEventType & "
15075
- },
15076
- {
15077
- "kind": "Reference",
15078
- "text": "Exclude",
15079
- "canonicalReference": "!Exclude:type"
15080
- },
15081
- {
15082
- "kind": "Content",
15083
- "text": "<TEventType, keyof "
15084
- },
15085
- {
15086
- "kind": "Reference",
15087
- "text": "EventPayloads",
15088
- "canonicalReference": "server!EventPayloads:interface"
15089
- },
15090
- {
15091
- "kind": "Content",
15092
- "text": ">"
15093
- },
15094
- {
15095
- "kind": "Content",
15096
- "text": ", payload: "
15097
- },
15098
- {
15099
- "kind": "Content",
15100
- "text": "TPayload"
15101
- },
15102
- {
15103
- "kind": "Content",
15104
- "text": "): "
15105
- },
15106
- {
15107
- "kind": "Content",
15108
- "text": "void"
15109
- },
15110
- {
15111
- "kind": "Content",
15112
- "text": ";"
15113
- }
15114
- ],
15115
- "typeParameters": [
15116
- {
15117
- "typeParameterName": "TEventType",
15118
- "constraintTokenRange": {
15119
- "startIndex": 1,
15120
- "endIndex": 2
15121
- },
15122
- "defaultTypeTokenRange": {
15123
- "startIndex": 0,
15124
- "endIndex": 0
15125
- }
15126
- },
15127
- {
15128
- "typeParameterName": "TPayload",
15129
- "constraintTokenRange": {
15130
- "startIndex": 0,
15131
- "endIndex": 0
15132
- },
15133
- "defaultTypeTokenRange": {
15134
- "startIndex": 3,
15135
- "endIndex": 4
15136
- }
15137
- }
15138
- ],
15139
- "isStatic": false,
15140
- "returnTypeTokenRange": {
15141
- "startIndex": 15,
15142
- "endIndex": 16
15143
- },
15144
- "releaseTag": "Public",
15145
- "isProtected": false,
15146
- "overloadIndex": 2,
15147
- "parameters": [
15148
- {
15149
- "parameterName": "world",
15150
- "parameterTypeTokenRange": {
15151
- "startIndex": 5,
15152
- "endIndex": 6
15153
- },
15154
- "isOptional": false
15155
- },
15156
- {
15157
- "parameterName": "eventType",
15158
- "parameterTypeTokenRange": {
15159
- "startIndex": 7,
15160
- "endIndex": 12
15161
- },
15162
- "isOptional": false
15163
- },
15164
- {
15165
- "parameterName": "payload",
15166
- "parameterTypeTokenRange": {
15167
- "startIndex": 13,
15168
- "endIndex": 14
15169
- },
15170
- "isOptional": false
15171
- }
15172
- ],
15173
- "isOptional": false,
15174
- "isAbstract": false,
15175
- "name": "emitWithWorld"
15176
- },
15177
- {
15178
- "kind": "Method",
15179
- "canonicalReference": "server!EventRouter#final:member(2)",
15180
- "docComment": "",
15181
- "excerptTokens": [
15182
- {
15183
- "kind": "Content",
15184
- "text": "final<TEventType extends "
15185
- },
15186
- {
15187
- "kind": "Content",
15188
- "text": "string"
15189
- },
15190
- {
15191
- "kind": "Content",
15192
- "text": ", TPayload = "
15193
- },
15194
- {
15195
- "kind": "Content",
15196
- "text": "any"
15197
- },
15198
- {
15199
- "kind": "Content",
15200
- "text": ">(eventType: "
15201
- },
15202
- {
15203
- "kind": "Content",
15204
- "text": "TEventType & "
15205
- },
15206
- {
15207
- "kind": "Reference",
15208
- "text": "Exclude",
15209
- "canonicalReference": "!Exclude:type"
15210
- },
15211
- {
15212
- "kind": "Content",
15213
- "text": "<TEventType, keyof "
15214
- },
15215
- {
15216
- "kind": "Reference",
15217
- "text": "EventPayloads",
15218
- "canonicalReference": "server!EventPayloads:interface"
15219
- },
15220
- {
15221
- "kind": "Content",
15222
- "text": ">"
15223
- },
15224
- {
15225
- "kind": "Content",
15226
- "text": ", listener: "
15227
- },
15228
- {
15229
- "kind": "Content",
15230
- "text": "(payload: TPayload) => void"
15231
- },
15232
- {
15233
- "kind": "Content",
15234
- "text": "): "
15235
- },
15236
- {
15237
- "kind": "Content",
15238
- "text": "void"
15239
- },
15240
- {
15241
- "kind": "Content",
15242
- "text": ";"
15243
- }
15244
- ],
15245
- "typeParameters": [
15246
- {
15247
- "typeParameterName": "TEventType",
15248
- "constraintTokenRange": {
15249
- "startIndex": 1,
15250
- "endIndex": 2
15251
- },
15252
- "defaultTypeTokenRange": {
15253
- "startIndex": 0,
15254
- "endIndex": 0
15255
- }
15256
- },
15257
- {
15258
- "typeParameterName": "TPayload",
15259
- "constraintTokenRange": {
15260
- "startIndex": 0,
15261
- "endIndex": 0
15262
- },
15263
- "defaultTypeTokenRange": {
15264
- "startIndex": 3,
15265
- "endIndex": 4
15266
- }
15267
- }
15268
- ],
15269
- "isStatic": false,
15270
- "returnTypeTokenRange": {
15271
- "startIndex": 13,
15272
- "endIndex": 14
15273
- },
15274
- "releaseTag": "Public",
15275
- "isProtected": false,
15276
- "overloadIndex": 2,
15277
- "parameters": [
15278
- {
15279
- "parameterName": "eventType",
15280
- "parameterTypeTokenRange": {
15281
- "startIndex": 5,
15282
- "endIndex": 10
15283
- },
15284
- "isOptional": false
15285
- },
15286
- {
15287
- "parameterName": "listener",
15288
- "parameterTypeTokenRange": {
15289
- "startIndex": 11,
15290
- "endIndex": 12
15291
- },
15292
- "isOptional": false
15293
- }
15294
- ],
15295
- "isOptional": false,
15296
- "isAbstract": false,
15297
- "name": "final"
15298
- },
15299
- {
15300
- "kind": "Method",
15301
- "canonicalReference": "server!EventRouter#hasListeners:member(1)",
15302
- "docComment": "/**\n * Check if there are listeners for a specific event type.\n *\n * @param eventType - The type of event to check for listeners.\n *\n * @returns `true` if listeners are found, `false` otherwise.\n */\n",
15303
- "excerptTokens": [
15304
- {
15305
- "kind": "Content",
15306
- "text": "hasListeners(eventType: "
15307
- },
15308
- {
15309
- "kind": "Content",
15310
- "text": "keyof "
15311
- },
15312
- {
15313
- "kind": "Reference",
15314
- "text": "EventPayloads",
15315
- "canonicalReference": "server!EventPayloads:interface"
15316
- },
15317
- {
15318
- "kind": "Content",
15319
- "text": "): "
15320
- },
15321
- {
15322
- "kind": "Content",
15323
- "text": "boolean"
15324
- },
15325
- {
15326
- "kind": "Content",
15327
- "text": ";"
15328
- }
15329
- ],
15330
- "isStatic": false,
15331
- "returnTypeTokenRange": {
15332
- "startIndex": 4,
15333
- "endIndex": 5
15334
- },
15335
- "releaseTag": "Public",
15336
- "isProtected": false,
15337
- "overloadIndex": 1,
15338
- "parameters": [
15339
- {
15340
- "parameterName": "eventType",
15341
- "parameterTypeTokenRange": {
15342
- "startIndex": 1,
15343
- "endIndex": 3
15344
- },
15345
- "isOptional": false
15346
- }
15347
- ],
15348
- "isOptional": false,
15349
- "isAbstract": false,
15350
- "name": "hasListeners"
15351
- },
15352
- {
15353
- "kind": "Method",
15354
- "canonicalReference": "server!EventRouter#listenerCount:member(1)",
15355
- "docComment": "/**\n * Get the number of listeners for a specific event type.\n *\n * @param eventType - The type of event to get the listener count for.\n *\n * @returns The number of listeners for the event type.\n */\n",
15356
- "excerptTokens": [
15357
- {
15358
- "kind": "Content",
15359
- "text": "listenerCount(eventType: "
15360
- },
15361
- {
15362
- "kind": "Content",
15363
- "text": "keyof "
15364
- },
15365
- {
15366
- "kind": "Reference",
15367
- "text": "EventPayloads",
15368
- "canonicalReference": "server!EventPayloads:interface"
15369
- },
15370
- {
15371
- "kind": "Content",
15372
- "text": "): "
15373
- },
15374
- {
15375
- "kind": "Content",
15376
- "text": "number"
15377
- },
15378
- {
15379
- "kind": "Content",
15380
- "text": ";"
15381
- }
15382
- ],
15383
- "isStatic": false,
15384
- "returnTypeTokenRange": {
15385
- "startIndex": 4,
15386
- "endIndex": 5
15387
- },
15388
- "releaseTag": "Public",
15389
- "isProtected": false,
15390
- "overloadIndex": 1,
15391
- "parameters": [
15392
- {
15393
- "parameterName": "eventType",
15394
- "parameterTypeTokenRange": {
15395
- "startIndex": 1,
15396
- "endIndex": 3
15397
- },
15398
- "isOptional": false
15399
- }
15400
- ],
15401
- "isOptional": false,
15402
- "isAbstract": false,
15403
- "name": "listenerCount"
15404
- },
15405
- {
15406
- "kind": "Method",
15407
- "canonicalReference": "server!EventRouter#listeners:member(1)",
15408
- "docComment": "/**\n * Get all listeners for a specific event type.\n *\n * @param eventType - The type of event to get listeners for.\n *\n * @returns All listeners for the event type.\n */\n",
15409
- "excerptTokens": [
15410
- {
15411
- "kind": "Content",
15412
- "text": "listeners(eventType: "
15413
- },
15414
- {
15415
- "kind": "Content",
15416
- "text": "keyof "
15417
- },
15418
- {
15419
- "kind": "Reference",
15420
- "text": "EventPayloads",
15421
- "canonicalReference": "server!EventPayloads:interface"
15422
- },
15423
- {
15424
- "kind": "Content",
15425
- "text": "): "
15426
- },
15427
- {
15428
- "kind": "Reference",
15429
- "text": "EventEmitter.EventListener",
15430
- "canonicalReference": "eventemitter3!EventEmitter.EventListener:type"
15431
- },
15432
- {
15433
- "kind": "Content",
15434
- "text": "<any, string>[]"
15435
- },
15436
- {
15437
- "kind": "Content",
15438
- "text": ";"
15439
- }
15440
- ],
15441
- "isStatic": false,
15442
- "returnTypeTokenRange": {
15443
- "startIndex": 4,
15444
- "endIndex": 6
15445
- },
15446
- "releaseTag": "Public",
15447
- "isProtected": false,
15448
- "overloadIndex": 1,
15449
- "parameters": [
15450
- {
15451
- "parameterName": "eventType",
15452
- "parameterTypeTokenRange": {
15453
- "startIndex": 1,
15454
- "endIndex": 3
15455
- },
15456
- "isOptional": false
15457
- }
15458
- ],
15459
- "isOptional": false,
15460
- "isAbstract": false,
15461
- "name": "listeners"
15462
- },
15463
- {
15464
- "kind": "Method",
15465
- "canonicalReference": "server!EventRouter#off:member(1)",
15466
- "docComment": "/**\n * Remove a listener for a specific event type.\n *\n * @param eventType - The type of event to remove the listener from.\n *\n * @param listener - The listener function to remove.\n */\n",
15467
- "excerptTokens": [
15468
- {
15469
- "kind": "Content",
15470
- "text": "off<TEventType extends "
15471
- },
15472
- {
15473
- "kind": "Content",
15474
- "text": "keyof "
15475
- },
15476
- {
15477
- "kind": "Reference",
15478
- "text": "EventPayloads",
15479
- "canonicalReference": "server!EventPayloads:interface"
15480
- },
15481
- {
15482
- "kind": "Content",
15483
- "text": ">(eventType: "
15484
- },
15485
- {
15486
- "kind": "Content",
15487
- "text": "TEventType"
15488
- },
15489
- {
15490
- "kind": "Content",
15491
- "text": ", listener: "
15492
- },
15493
- {
15494
- "kind": "Content",
15495
- "text": "(payload: "
15496
- },
15497
- {
15498
- "kind": "Reference",
15499
- "text": "EventPayloads",
15500
- "canonicalReference": "server!EventPayloads:interface"
15501
- },
15502
- {
15503
- "kind": "Content",
15504
- "text": "[TEventType]) => void"
15505
- },
15506
- {
15507
- "kind": "Content",
15508
- "text": "): "
15509
- },
15510
- {
15511
- "kind": "Content",
15512
- "text": "void"
15513
- },
15514
- {
15515
- "kind": "Content",
15516
- "text": ";"
15517
- }
15518
- ],
15519
- "typeParameters": [
15520
- {
15521
- "typeParameterName": "TEventType",
15522
- "constraintTokenRange": {
15523
- "startIndex": 1,
15524
- "endIndex": 3
15525
- },
15526
- "defaultTypeTokenRange": {
15527
- "startIndex": 0,
15528
- "endIndex": 0
15529
- }
15530
- }
15531
- ],
15532
- "isStatic": false,
15533
- "returnTypeTokenRange": {
15534
- "startIndex": 10,
15535
- "endIndex": 11
15536
- },
15537
- "releaseTag": "Public",
15538
- "isProtected": false,
15539
- "overloadIndex": 1,
15540
- "parameters": [
15541
- {
15542
- "parameterName": "eventType",
15543
- "parameterTypeTokenRange": {
15544
- "startIndex": 4,
15545
- "endIndex": 5
15546
- },
15547
- "isOptional": false
15548
- },
15549
- {
15550
- "parameterName": "listener",
15551
- "parameterTypeTokenRange": {
15552
- "startIndex": 6,
15553
- "endIndex": 9
15554
- },
15555
- "isOptional": false
15556
- }
15557
- ],
15558
- "isOptional": false,
15559
- "isAbstract": false,
15560
- "name": "off"
15561
- },
15562
- {
15563
- "kind": "Method",
15564
- "canonicalReference": "server!EventRouter#off:member(2)",
15565
- "docComment": "",
15566
- "excerptTokens": [
15567
- {
15568
- "kind": "Content",
15569
- "text": "off<TEventType extends "
15570
- },
15571
- {
15572
- "kind": "Content",
15573
- "text": "string"
15574
- },
15575
- {
15576
- "kind": "Content",
15577
- "text": ", TPayload = "
15578
- },
15579
- {
15580
- "kind": "Content",
15581
- "text": "any"
15582
- },
15583
- {
15584
- "kind": "Content",
15585
- "text": ">(eventType: "
15586
- },
15587
- {
15588
- "kind": "Content",
15589
- "text": "TEventType & "
15590
- },
15591
- {
15592
- "kind": "Reference",
15593
- "text": "Exclude",
15594
- "canonicalReference": "!Exclude:type"
15595
- },
15596
- {
15597
- "kind": "Content",
15598
- "text": "<TEventType, keyof "
15599
- },
15600
- {
15601
- "kind": "Reference",
15602
- "text": "EventPayloads",
15603
- "canonicalReference": "server!EventPayloads:interface"
15604
- },
15605
- {
15606
- "kind": "Content",
15607
- "text": ">"
15608
- },
15609
- {
15610
- "kind": "Content",
15611
- "text": ", listener: "
15612
- },
15613
- {
15614
- "kind": "Content",
15615
- "text": "(payload: TPayload) => void"
15616
- },
15617
- {
15618
- "kind": "Content",
15619
- "text": "): "
15620
- },
15621
- {
15622
- "kind": "Content",
15623
- "text": "void"
14871
+ "text": "number"
15624
14872
  },
15625
14873
  {
15626
14874
  "kind": "Content",
15627
14875
  "text": ";"
15628
14876
  }
15629
14877
  ],
15630
- "typeParameters": [
15631
- {
15632
- "typeParameterName": "TEventType",
15633
- "constraintTokenRange": {
15634
- "startIndex": 1,
15635
- "endIndex": 2
15636
- },
15637
- "defaultTypeTokenRange": {
15638
- "startIndex": 0,
15639
- "endIndex": 0
15640
- }
15641
- },
15642
- {
15643
- "typeParameterName": "TPayload",
15644
- "constraintTokenRange": {
15645
- "startIndex": 0,
15646
- "endIndex": 0
15647
- },
15648
- "defaultTypeTokenRange": {
15649
- "startIndex": 3,
15650
- "endIndex": 4
15651
- }
15652
- }
15653
- ],
15654
14878
  "isStatic": false,
15655
14879
  "returnTypeTokenRange": {
15656
- "startIndex": 13,
15657
- "endIndex": 14
14880
+ "startIndex": 4,
14881
+ "endIndex": 5
15658
14882
  },
15659
14883
  "releaseTag": "Public",
15660
14884
  "isProtected": false,
15661
- "overloadIndex": 2,
14885
+ "overloadIndex": 1,
15662
14886
  "parameters": [
15663
14887
  {
15664
14888
  "parameterName": "eventType",
15665
14889
  "parameterTypeTokenRange": {
15666
- "startIndex": 5,
15667
- "endIndex": 10
15668
- },
15669
- "isOptional": false
15670
- },
15671
- {
15672
- "parameterName": "listener",
15673
- "parameterTypeTokenRange": {
15674
- "startIndex": 11,
15675
- "endIndex": 12
14890
+ "startIndex": 1,
14891
+ "endIndex": 3
15676
14892
  },
15677
14893
  "isOptional": false
15678
14894
  }
15679
14895
  ],
15680
14896
  "isOptional": false,
15681
14897
  "isAbstract": false,
15682
- "name": "off"
14898
+ "name": "listenerCount"
15683
14899
  },
15684
14900
  {
15685
14901
  "kind": "Method",
15686
- "canonicalReference": "server!EventRouter#offAll:member(1)",
15687
- "docComment": "/**\n * Remove all listeners or all listeners for a provided event type.\n *\n * @param eventType - The type of event to remove all listeners from.\n */\n",
14902
+ "canonicalReference": "server!EventRouter#listeners:member(1)",
14903
+ "docComment": "/**\n * Get all listeners for a specific event type.\n *\n * @param eventType - The type of event to get listeners for.\n *\n * @returns All listeners for the event type.\n */\n",
15688
14904
  "excerptTokens": [
15689
14905
  {
15690
14906
  "kind": "Content",
15691
- "text": "offAll(eventType?: "
14907
+ "text": "listeners(eventType: "
15692
14908
  },
15693
14909
  {
15694
14910
  "kind": "Content",
@@ -15703,9 +14919,14 @@
15703
14919
  "kind": "Content",
15704
14920
  "text": "): "
15705
14921
  },
14922
+ {
14923
+ "kind": "Reference",
14924
+ "text": "EventEmitter.EventListener",
14925
+ "canonicalReference": "eventemitter3!EventEmitter.EventListener:type"
14926
+ },
15706
14927
  {
15707
14928
  "kind": "Content",
15708
- "text": "void"
14929
+ "text": "<any, string>[]"
15709
14930
  },
15710
14931
  {
15711
14932
  "kind": "Content",
@@ -15715,7 +14936,7 @@
15715
14936
  "isStatic": false,
15716
14937
  "returnTypeTokenRange": {
15717
14938
  "startIndex": 4,
15718
- "endIndex": 5
14939
+ "endIndex": 6
15719
14940
  },
15720
14941
  "releaseTag": "Public",
15721
14942
  "isProtected": false,
@@ -15727,21 +14948,21 @@
15727
14948
  "startIndex": 1,
15728
14949
  "endIndex": 3
15729
14950
  },
15730
- "isOptional": true
14951
+ "isOptional": false
15731
14952
  }
15732
14953
  ],
15733
14954
  "isOptional": false,
15734
14955
  "isAbstract": false,
15735
- "name": "offAll"
14956
+ "name": "listeners"
15736
14957
  },
15737
14958
  {
15738
14959
  "kind": "Method",
15739
- "canonicalReference": "server!EventRouter#on:member(1)",
15740
- "docComment": "/**\n * Register a listener for a specific event type.\n *\n * @remarks\n *\n * Listeners are invoked in the order they are registered.\n *\n * @param eventType - The type of event to listen for.\n *\n * @param listener - The listener function to invoke when the event is emitted.\n */\n",
14960
+ "canonicalReference": "server!EventRouter#off:member(1)",
14961
+ "docComment": "/**\n * Remove a listener for a specific event type.\n *\n * @param eventType - The type of event to remove the listener from.\n *\n * @param listener - The listener function to remove.\n */\n",
15741
14962
  "excerptTokens": [
15742
14963
  {
15743
14964
  "kind": "Content",
15744
- "text": "on<TEventType extends "
14965
+ "text": "off<TEventType extends "
15745
14966
  },
15746
14967
  {
15747
14968
  "kind": "Content",
@@ -15831,63 +15052,26 @@
15831
15052
  ],
15832
15053
  "isOptional": false,
15833
15054
  "isAbstract": false,
15834
- "name": "on"
15055
+ "name": "off"
15835
15056
  },
15836
15057
  {
15837
15058
  "kind": "Method",
15838
- "canonicalReference": "server!EventRouter#on:member(2)",
15839
- "docComment": "",
15059
+ "canonicalReference": "server!EventRouter#offAll:member(1)",
15060
+ "docComment": "/**\n * Remove all listeners or all listeners for a provided event type.\n *\n * @param eventType - The type of event to remove all listeners from.\n */\n",
15840
15061
  "excerptTokens": [
15841
15062
  {
15842
15063
  "kind": "Content",
15843
- "text": "on<TEventType extends "
15844
- },
15845
- {
15846
- "kind": "Content",
15847
- "text": "string"
15848
- },
15849
- {
15850
- "kind": "Content",
15851
- "text": ", TPayload = "
15852
- },
15853
- {
15854
- "kind": "Content",
15855
- "text": "any"
15856
- },
15857
- {
15858
- "kind": "Content",
15859
- "text": ">(eventType: "
15860
- },
15861
- {
15862
- "kind": "Content",
15863
- "text": "TEventType & "
15864
- },
15865
- {
15866
- "kind": "Reference",
15867
- "text": "Exclude",
15868
- "canonicalReference": "!Exclude:type"
15064
+ "text": "offAll(eventType?: "
15869
15065
  },
15870
15066
  {
15871
15067
  "kind": "Content",
15872
- "text": "<TEventType, keyof "
15068
+ "text": "keyof "
15873
15069
  },
15874
15070
  {
15875
15071
  "kind": "Reference",
15876
15072
  "text": "EventPayloads",
15877
15073
  "canonicalReference": "server!EventPayloads:interface"
15878
15074
  },
15879
- {
15880
- "kind": "Content",
15881
- "text": ">"
15882
- },
15883
- {
15884
- "kind": "Content",
15885
- "text": ", listener: "
15886
- },
15887
- {
15888
- "kind": "Content",
15889
- "text": "(payload: TPayload) => void"
15890
- },
15891
15075
  {
15892
15076
  "kind": "Content",
15893
15077
  "text": "): "
@@ -15901,68 +15085,36 @@
15901
15085
  "text": ";"
15902
15086
  }
15903
15087
  ],
15904
- "typeParameters": [
15905
- {
15906
- "typeParameterName": "TEventType",
15907
- "constraintTokenRange": {
15908
- "startIndex": 1,
15909
- "endIndex": 2
15910
- },
15911
- "defaultTypeTokenRange": {
15912
- "startIndex": 0,
15913
- "endIndex": 0
15914
- }
15915
- },
15916
- {
15917
- "typeParameterName": "TPayload",
15918
- "constraintTokenRange": {
15919
- "startIndex": 0,
15920
- "endIndex": 0
15921
- },
15922
- "defaultTypeTokenRange": {
15923
- "startIndex": 3,
15924
- "endIndex": 4
15925
- }
15926
- }
15927
- ],
15928
15088
  "isStatic": false,
15929
15089
  "returnTypeTokenRange": {
15930
- "startIndex": 13,
15931
- "endIndex": 14
15090
+ "startIndex": 4,
15091
+ "endIndex": 5
15932
15092
  },
15933
15093
  "releaseTag": "Public",
15934
15094
  "isProtected": false,
15935
- "overloadIndex": 2,
15095
+ "overloadIndex": 1,
15936
15096
  "parameters": [
15937
15097
  {
15938
15098
  "parameterName": "eventType",
15939
15099
  "parameterTypeTokenRange": {
15940
- "startIndex": 5,
15941
- "endIndex": 10
15942
- },
15943
- "isOptional": false
15944
- },
15945
- {
15946
- "parameterName": "listener",
15947
- "parameterTypeTokenRange": {
15948
- "startIndex": 11,
15949
- "endIndex": 12
15100
+ "startIndex": 1,
15101
+ "endIndex": 3
15950
15102
  },
15951
- "isOptional": false
15103
+ "isOptional": true
15952
15104
  }
15953
15105
  ],
15954
15106
  "isOptional": false,
15955
15107
  "isAbstract": false,
15956
- "name": "on"
15108
+ "name": "offAll"
15957
15109
  },
15958
15110
  {
15959
15111
  "kind": "Method",
15960
- "canonicalReference": "server!EventRouter#once:member(1)",
15961
- "docComment": "/**\n * Register a listener for a specific event type that will be invoked once.\n *\n * @param eventType - The type of event to listen for.\n *\n * @param listener - The listener function to invoke when the event is emitted.\n */\n",
15112
+ "canonicalReference": "server!EventRouter#on:member(1)",
15113
+ "docComment": "/**\n * Register a listener for a specific event type.\n *\n * @remarks\n *\n * Listeners are invoked in the order they are registered.\n *\n * @param eventType - The type of event to listen for.\n *\n * @param listener - The listener function to invoke when the event is emitted.\n */\n",
15962
15114
  "excerptTokens": [
15963
15115
  {
15964
15116
  "kind": "Content",
15965
- "text": "once<TEventType extends "
15117
+ "text": "on<TEventType extends "
15966
15118
  },
15967
15119
  {
15968
15120
  "kind": "Content",
@@ -16052,12 +15204,12 @@
16052
15204
  ],
16053
15205
  "isOptional": false,
16054
15206
  "isAbstract": false,
16055
- "name": "once"
15207
+ "name": "on"
16056
15208
  },
16057
15209
  {
16058
15210
  "kind": "Method",
16059
- "canonicalReference": "server!EventRouter#once:member(2)",
16060
- "docComment": "",
15211
+ "canonicalReference": "server!EventRouter#once:member(1)",
15212
+ "docComment": "/**\n * Register a listener for a specific event type that will be invoked once.\n *\n * @param eventType - The type of event to listen for.\n *\n * @param listener - The listener function to invoke when the event is emitted.\n */\n",
16061
15213
  "excerptTokens": [
16062
15214
  {
16063
15215
  "kind": "Content",
@@ -16065,15 +15217,12 @@
16065
15217
  },
16066
15218
  {
16067
15219
  "kind": "Content",
16068
- "text": "string"
16069
- },
16070
- {
16071
- "kind": "Content",
16072
- "text": ", TPayload = "
15220
+ "text": "keyof "
16073
15221
  },
16074
15222
  {
16075
- "kind": "Content",
16076
- "text": "any"
15223
+ "kind": "Reference",
15224
+ "text": "EventPayloads",
15225
+ "canonicalReference": "server!EventPayloads:interface"
16077
15226
  },
16078
15227
  {
16079
15228
  "kind": "Content",
@@ -16081,16 +15230,15 @@
16081
15230
  },
16082
15231
  {
16083
15232
  "kind": "Content",
16084
- "text": "TEventType & "
15233
+ "text": "TEventType"
16085
15234
  },
16086
15235
  {
16087
- "kind": "Reference",
16088
- "text": "Exclude",
16089
- "canonicalReference": "!Exclude:type"
15236
+ "kind": "Content",
15237
+ "text": ", listener: "
16090
15238
  },
16091
15239
  {
16092
15240
  "kind": "Content",
16093
- "text": "<TEventType, keyof "
15241
+ "text": "(payload: "
16094
15242
  },
16095
15243
  {
16096
15244
  "kind": "Reference",
@@ -16099,15 +15247,7 @@
16099
15247
  },
16100
15248
  {
16101
15249
  "kind": "Content",
16102
- "text": ">"
16103
- },
16104
- {
16105
- "kind": "Content",
16106
- "text": ", listener: "
16107
- },
16108
- {
16109
- "kind": "Content",
16110
- "text": "(payload: TPayload) => void"
15250
+ "text": "[TEventType]) => void"
16111
15251
  },
16112
15252
  {
16113
15253
  "kind": "Content",
@@ -16127,47 +15267,36 @@
16127
15267
  "typeParameterName": "TEventType",
16128
15268
  "constraintTokenRange": {
16129
15269
  "startIndex": 1,
16130
- "endIndex": 2
15270
+ "endIndex": 3
16131
15271
  },
16132
15272
  "defaultTypeTokenRange": {
16133
15273
  "startIndex": 0,
16134
15274
  "endIndex": 0
16135
15275
  }
16136
- },
16137
- {
16138
- "typeParameterName": "TPayload",
16139
- "constraintTokenRange": {
16140
- "startIndex": 0,
16141
- "endIndex": 0
16142
- },
16143
- "defaultTypeTokenRange": {
16144
- "startIndex": 3,
16145
- "endIndex": 4
16146
- }
16147
15276
  }
16148
15277
  ],
16149
15278
  "isStatic": false,
16150
15279
  "returnTypeTokenRange": {
16151
- "startIndex": 13,
16152
- "endIndex": 14
15280
+ "startIndex": 10,
15281
+ "endIndex": 11
16153
15282
  },
16154
15283
  "releaseTag": "Public",
16155
15284
  "isProtected": false,
16156
- "overloadIndex": 2,
15285
+ "overloadIndex": 1,
16157
15286
  "parameters": [
16158
15287
  {
16159
15288
  "parameterName": "eventType",
16160
15289
  "parameterTypeTokenRange": {
16161
- "startIndex": 5,
16162
- "endIndex": 10
15290
+ "startIndex": 4,
15291
+ "endIndex": 5
16163
15292
  },
16164
15293
  "isOptional": false
16165
15294
  },
16166
15295
  {
16167
15296
  "parameterName": "listener",
16168
15297
  "parameterTypeTokenRange": {
16169
- "startIndex": 11,
16170
- "endIndex": 12
15298
+ "startIndex": 6,
15299
+ "endIndex": 9
16171
15300
  },
16172
15301
  "isOptional": false
16173
15302
  }