hytopia 0.1.96 → 0.1.98

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 (71) hide show
  1. package/docs/server.md +66 -0
  2. package/docs/server.pathfindabortcallback.md +13 -0
  3. package/docs/server.pathfindcompletecallback.md +13 -0
  4. package/docs/server.pathfindingentitycontroller.debug.md +13 -0
  5. package/docs/server.pathfindingentitycontroller.maxfall.md +13 -0
  6. package/docs/server.pathfindingentitycontroller.maxjump.md +13 -0
  7. package/docs/server.pathfindingentitycontroller.maxopensetiterations.md +13 -0
  8. package/docs/server.pathfindingentitycontroller.md +287 -0
  9. package/docs/server.pathfindingentitycontroller.pathfind.md +87 -0
  10. package/docs/server.pathfindingentitycontroller.speed.md +13 -0
  11. package/docs/server.pathfindingentitycontroller.target.md +13 -0
  12. package/docs/server.pathfindingentitycontroller.verticalpenalty.md +13 -0
  13. package/docs/server.pathfindingentitycontroller.waypointnextindex.md +13 -0
  14. package/docs/server.pathfindingentitycontroller.waypoints.md +13 -0
  15. package/docs/server.pathfindingentitycontroller.waypointtimeoutms.md +13 -0
  16. package/docs/server.pathfindingoptions.md +26 -0
  17. package/docs/server.playerentitycontroller.autocancelmouseleftclick.md +13 -0
  18. package/docs/server.playerentitycontroller.md +19 -0
  19. package/docs/server.playerentitycontrolleroptions.autocancelmouseleftclick.md +13 -0
  20. package/docs/server.playerentitycontrolleroptions.md +19 -0
  21. package/docs/server.simpleentitycontroller.jump.md +53 -0
  22. package/docs/server.simpleentitycontroller.md +14 -0
  23. package/docs/server.waypointmovecompletecallback.md +15 -0
  24. package/docs/server.waypointmoveskippedcallback.md +15 -0
  25. package/examples/ai-agents/.env.example +2 -0
  26. package/examples/ai-agents/README.md +17 -0
  27. package/examples/ai-agents/bun.lockb +0 -0
  28. package/examples/ai-agents/package.json +2 -2
  29. package/examples/big-world/bun.lockb +0 -0
  30. package/examples/big-world/package.json +2 -2
  31. package/examples/block-entity/bun.lockb +0 -0
  32. package/examples/block-entity/package.json +2 -2
  33. package/examples/child-entity/bun.lockb +0 -0
  34. package/examples/child-entity/package-lock.json +30 -0
  35. package/examples/child-entity/package.json +2 -2
  36. package/examples/custom-ui/bun.lockb +0 -0
  37. package/examples/custom-ui/package.json +2 -2
  38. package/examples/entity-controller/bun.lockb +0 -0
  39. package/examples/entity-spawn/bun.lockb +0 -0
  40. package/examples/entity-spawn/package.json +1 -1
  41. package/examples/hole-in-wall-game/bun.lockb +0 -0
  42. package/examples/hole-in-wall-game/package.json +2 -2
  43. package/examples/lighting/bun.lockb +0 -0
  44. package/examples/lighting/package.json +3 -2
  45. package/examples/pathfinding/README.md +3 -0
  46. package/examples/pathfinding/assets/map.json +25828 -0
  47. package/examples/pathfinding/bun.lockb +0 -0
  48. package/examples/pathfinding/index.ts +113 -0
  49. package/examples/pathfinding/package.json +16 -0
  50. package/examples/payload-game/bun.lockb +0 -0
  51. package/examples/payload-game/package.json +3 -2
  52. package/examples/wall-dodge-game/bun.lockb +0 -0
  53. package/examples/wall-dodge-game/package-lock.json +30 -0
  54. package/examples/wall-dodge-game/package.json +2 -2
  55. package/examples/zombies-fps/assets/audio/sfx/pistol-shoot-1.mp3 +0 -0
  56. package/examples/zombies-fps/assets/audio/sfx/pistol-shoot-2.mp3 +0 -0
  57. package/examples/zombies-fps/assets/audio/sfx/pistol-shoot.mp3 +0 -0
  58. package/examples/zombies-fps/assets/maps/terrain.json +0 -12
  59. package/examples/zombies-fps/assets/ui/index.html +35 -0
  60. package/examples/zombies-fps/bun.lockb +0 -0
  61. package/examples/zombies-fps/classes/GamePlayerEntity.ts +49 -16
  62. package/examples/zombies-fps/classes/GunEntity.ts +66 -0
  63. package/examples/zombies-fps/classes/guns/BulletEntity.ts +0 -0
  64. package/examples/zombies-fps/classes/guns/PistolEntity.ts +49 -0
  65. package/examples/zombies-fps/index.ts +5 -1
  66. package/examples/zombies-fps/package.json +2 -2
  67. package/package.json +1 -1
  68. package/server.api.json +713 -0
  69. package/server.d.ts +136 -0
  70. package/server.js +87 -87
  71. package/examples/zombies-fps/classes/WeaponEntity.ts +0 -32
package/server.api.json CHANGED
@@ -17451,6 +17451,544 @@
17451
17451
  "endIndex": 6
17452
17452
  }
17453
17453
  },
17454
+ {
17455
+ "kind": "TypeAlias",
17456
+ "canonicalReference": "server!PathfindAbortCallback:type",
17457
+ "docComment": "/**\n * A callback function called when the pathfinding algorithm aborts.\n *\n * @public\n */\n",
17458
+ "excerptTokens": [
17459
+ {
17460
+ "kind": "Content",
17461
+ "text": "export type PathfindAbortCallback = "
17462
+ },
17463
+ {
17464
+ "kind": "Content",
17465
+ "text": "() => void"
17466
+ },
17467
+ {
17468
+ "kind": "Content",
17469
+ "text": ";"
17470
+ }
17471
+ ],
17472
+ "fileUrlPath": "src/world/entities/controllers/PathfindingEntityController.ts",
17473
+ "releaseTag": "Public",
17474
+ "name": "PathfindAbortCallback",
17475
+ "typeTokenRange": {
17476
+ "startIndex": 1,
17477
+ "endIndex": 2
17478
+ }
17479
+ },
17480
+ {
17481
+ "kind": "TypeAlias",
17482
+ "canonicalReference": "server!PathfindCompleteCallback:type",
17483
+ "docComment": "/**\n * A callback function called when the entity associated with the PathfindingEntityController finishes pathfinding and is now at the target coordinate.\n *\n * @public\n */\n",
17484
+ "excerptTokens": [
17485
+ {
17486
+ "kind": "Content",
17487
+ "text": "export type PathfindCompleteCallback = "
17488
+ },
17489
+ {
17490
+ "kind": "Content",
17491
+ "text": "() => void"
17492
+ },
17493
+ {
17494
+ "kind": "Content",
17495
+ "text": ";"
17496
+ }
17497
+ ],
17498
+ "fileUrlPath": "src/world/entities/controllers/PathfindingEntityController.ts",
17499
+ "releaseTag": "Public",
17500
+ "name": "PathfindCompleteCallback",
17501
+ "typeTokenRange": {
17502
+ "startIndex": 1,
17503
+ "endIndex": 2
17504
+ }
17505
+ },
17506
+ {
17507
+ "kind": "Class",
17508
+ "canonicalReference": "server!PathfindingEntityController:class",
17509
+ "docComment": "/**\n * A pathfinding entity controller built on top of {@link SimpleEntityController}.\n *\n * @remarks\n *\n * This class implements pathfinding using the A* algorithm. Pathfinding when frequently called can cause performance issues, use it sparingly. The .pathfind() method should only need to be called once in nearly all cases when attempting to move an entity to a target coordinate.\n *\n * @public\n */\n",
17510
+ "excerptTokens": [
17511
+ {
17512
+ "kind": "Content",
17513
+ "text": "export default class PathfindingEntityController extends "
17514
+ },
17515
+ {
17516
+ "kind": "Reference",
17517
+ "text": "SimpleEntityController",
17518
+ "canonicalReference": "server!SimpleEntityController:class"
17519
+ },
17520
+ {
17521
+ "kind": "Content",
17522
+ "text": " "
17523
+ }
17524
+ ],
17525
+ "fileUrlPath": "src/world/entities/controllers/PathfindingEntityController.ts",
17526
+ "releaseTag": "Public",
17527
+ "isAbstract": false,
17528
+ "name": "PathfindingEntityController",
17529
+ "preserveMemberOrder": false,
17530
+ "members": [
17531
+ {
17532
+ "kind": "Property",
17533
+ "canonicalReference": "server!PathfindingEntityController#debug:member",
17534
+ "docComment": "/**\n * Whether to enable debug mode or not. When debug mode is enabled, the pathfinding algorithm will log debug information to the console. Defaults to false.\n */\n",
17535
+ "excerptTokens": [
17536
+ {
17537
+ "kind": "Content",
17538
+ "text": "get debug(): "
17539
+ },
17540
+ {
17541
+ "kind": "Content",
17542
+ "text": "boolean"
17543
+ },
17544
+ {
17545
+ "kind": "Content",
17546
+ "text": ";"
17547
+ }
17548
+ ],
17549
+ "isReadonly": true,
17550
+ "isOptional": false,
17551
+ "releaseTag": "Public",
17552
+ "name": "debug",
17553
+ "propertyTypeTokenRange": {
17554
+ "startIndex": 1,
17555
+ "endIndex": 2
17556
+ },
17557
+ "isStatic": false,
17558
+ "isProtected": false,
17559
+ "isAbstract": false
17560
+ },
17561
+ {
17562
+ "kind": "Property",
17563
+ "canonicalReference": "server!PathfindingEntityController#maxFall:member",
17564
+ "docComment": "/**\n * The maximum fall distance the entity can fall.\n */\n",
17565
+ "excerptTokens": [
17566
+ {
17567
+ "kind": "Content",
17568
+ "text": "get maxFall(): "
17569
+ },
17570
+ {
17571
+ "kind": "Content",
17572
+ "text": "number"
17573
+ },
17574
+ {
17575
+ "kind": "Content",
17576
+ "text": ";"
17577
+ }
17578
+ ],
17579
+ "isReadonly": true,
17580
+ "isOptional": false,
17581
+ "releaseTag": "Public",
17582
+ "name": "maxFall",
17583
+ "propertyTypeTokenRange": {
17584
+ "startIndex": 1,
17585
+ "endIndex": 2
17586
+ },
17587
+ "isStatic": false,
17588
+ "isProtected": false,
17589
+ "isAbstract": false
17590
+ },
17591
+ {
17592
+ "kind": "Property",
17593
+ "canonicalReference": "server!PathfindingEntityController#maxJump:member",
17594
+ "docComment": "/**\n * The maximum jump distance the entity can jump.\n */\n",
17595
+ "excerptTokens": [
17596
+ {
17597
+ "kind": "Content",
17598
+ "text": "get maxJump(): "
17599
+ },
17600
+ {
17601
+ "kind": "Content",
17602
+ "text": "number"
17603
+ },
17604
+ {
17605
+ "kind": "Content",
17606
+ "text": ";"
17607
+ }
17608
+ ],
17609
+ "isReadonly": true,
17610
+ "isOptional": false,
17611
+ "releaseTag": "Public",
17612
+ "name": "maxJump",
17613
+ "propertyTypeTokenRange": {
17614
+ "startIndex": 1,
17615
+ "endIndex": 2
17616
+ },
17617
+ "isStatic": false,
17618
+ "isProtected": false,
17619
+ "isAbstract": false
17620
+ },
17621
+ {
17622
+ "kind": "Property",
17623
+ "canonicalReference": "server!PathfindingEntityController#maxOpenSetIterations:member",
17624
+ "docComment": "/**\n * The maximum number of open set iterations that can be processed before aborting pathfinding. Defaults to 200.\n */\n",
17625
+ "excerptTokens": [
17626
+ {
17627
+ "kind": "Content",
17628
+ "text": "get maxOpenSetIterations(): "
17629
+ },
17630
+ {
17631
+ "kind": "Content",
17632
+ "text": "number"
17633
+ },
17634
+ {
17635
+ "kind": "Content",
17636
+ "text": ";"
17637
+ }
17638
+ ],
17639
+ "isReadonly": true,
17640
+ "isOptional": false,
17641
+ "releaseTag": "Public",
17642
+ "name": "maxOpenSetIterations",
17643
+ "propertyTypeTokenRange": {
17644
+ "startIndex": 1,
17645
+ "endIndex": 2
17646
+ },
17647
+ "isStatic": false,
17648
+ "isProtected": false,
17649
+ "isAbstract": false
17650
+ },
17651
+ {
17652
+ "kind": "Method",
17653
+ "canonicalReference": "server!PathfindingEntityController#pathfind:member(1)",
17654
+ "docComment": "/**\n * Calculate a path and move to the target if a path is found. Returns true if a path is found, false if no path is found.\n *\n * @param target - The target coordinate to pathfind to.\n *\n * @param speed - The speed of the entity.\n *\n * @param options - The pathfinding options.\n *\n * @returns Whether the path was found.\n */\n",
17655
+ "excerptTokens": [
17656
+ {
17657
+ "kind": "Content",
17658
+ "text": "pathfind(target: "
17659
+ },
17660
+ {
17661
+ "kind": "Reference",
17662
+ "text": "Vector3Like",
17663
+ "canonicalReference": "server!Vector3Like:interface"
17664
+ },
17665
+ {
17666
+ "kind": "Content",
17667
+ "text": ", speed: "
17668
+ },
17669
+ {
17670
+ "kind": "Content",
17671
+ "text": "number"
17672
+ },
17673
+ {
17674
+ "kind": "Content",
17675
+ "text": ", options?: "
17676
+ },
17677
+ {
17678
+ "kind": "Reference",
17679
+ "text": "PathfindingOptions",
17680
+ "canonicalReference": "server!PathfindingOptions:type"
17681
+ },
17682
+ {
17683
+ "kind": "Content",
17684
+ "text": "): "
17685
+ },
17686
+ {
17687
+ "kind": "Content",
17688
+ "text": "boolean"
17689
+ },
17690
+ {
17691
+ "kind": "Content",
17692
+ "text": ";"
17693
+ }
17694
+ ],
17695
+ "isStatic": false,
17696
+ "returnTypeTokenRange": {
17697
+ "startIndex": 7,
17698
+ "endIndex": 8
17699
+ },
17700
+ "releaseTag": "Public",
17701
+ "isProtected": false,
17702
+ "overloadIndex": 1,
17703
+ "parameters": [
17704
+ {
17705
+ "parameterName": "target",
17706
+ "parameterTypeTokenRange": {
17707
+ "startIndex": 1,
17708
+ "endIndex": 2
17709
+ },
17710
+ "isOptional": false
17711
+ },
17712
+ {
17713
+ "parameterName": "speed",
17714
+ "parameterTypeTokenRange": {
17715
+ "startIndex": 3,
17716
+ "endIndex": 4
17717
+ },
17718
+ "isOptional": false
17719
+ },
17720
+ {
17721
+ "parameterName": "options",
17722
+ "parameterTypeTokenRange": {
17723
+ "startIndex": 5,
17724
+ "endIndex": 6
17725
+ },
17726
+ "isOptional": true
17727
+ }
17728
+ ],
17729
+ "isOptional": false,
17730
+ "isAbstract": false,
17731
+ "name": "pathfind"
17732
+ },
17733
+ {
17734
+ "kind": "Property",
17735
+ "canonicalReference": "server!PathfindingEntityController#speed:member",
17736
+ "docComment": "/**\n * The speed of the entity.\n */\n",
17737
+ "excerptTokens": [
17738
+ {
17739
+ "kind": "Content",
17740
+ "text": "get speed(): "
17741
+ },
17742
+ {
17743
+ "kind": "Content",
17744
+ "text": "number"
17745
+ },
17746
+ {
17747
+ "kind": "Content",
17748
+ "text": ";"
17749
+ }
17750
+ ],
17751
+ "isReadonly": true,
17752
+ "isOptional": false,
17753
+ "releaseTag": "Public",
17754
+ "name": "speed",
17755
+ "propertyTypeTokenRange": {
17756
+ "startIndex": 1,
17757
+ "endIndex": 2
17758
+ },
17759
+ "isStatic": false,
17760
+ "isProtected": false,
17761
+ "isAbstract": false
17762
+ },
17763
+ {
17764
+ "kind": "Property",
17765
+ "canonicalReference": "server!PathfindingEntityController#target:member",
17766
+ "docComment": "/**\n * The target coordinate to pathfind to.\n */\n",
17767
+ "excerptTokens": [
17768
+ {
17769
+ "kind": "Content",
17770
+ "text": "get target(): "
17771
+ },
17772
+ {
17773
+ "kind": "Reference",
17774
+ "text": "Vector3Like",
17775
+ "canonicalReference": "server!Vector3Like:interface"
17776
+ },
17777
+ {
17778
+ "kind": "Content",
17779
+ "text": " | undefined"
17780
+ },
17781
+ {
17782
+ "kind": "Content",
17783
+ "text": ";"
17784
+ }
17785
+ ],
17786
+ "isReadonly": true,
17787
+ "isOptional": false,
17788
+ "releaseTag": "Public",
17789
+ "name": "target",
17790
+ "propertyTypeTokenRange": {
17791
+ "startIndex": 1,
17792
+ "endIndex": 3
17793
+ },
17794
+ "isStatic": false,
17795
+ "isProtected": false,
17796
+ "isAbstract": false
17797
+ },
17798
+ {
17799
+ "kind": "Property",
17800
+ "canonicalReference": "server!PathfindingEntityController#verticalPenalty:member",
17801
+ "docComment": "/**\n * The vertical penalty for the pathfinding algorithm. A higher value will prefer paths with less vertical movement.\n */\n",
17802
+ "excerptTokens": [
17803
+ {
17804
+ "kind": "Content",
17805
+ "text": "get verticalPenalty(): "
17806
+ },
17807
+ {
17808
+ "kind": "Content",
17809
+ "text": "number"
17810
+ },
17811
+ {
17812
+ "kind": "Content",
17813
+ "text": ";"
17814
+ }
17815
+ ],
17816
+ "isReadonly": true,
17817
+ "isOptional": false,
17818
+ "releaseTag": "Public",
17819
+ "name": "verticalPenalty",
17820
+ "propertyTypeTokenRange": {
17821
+ "startIndex": 1,
17822
+ "endIndex": 2
17823
+ },
17824
+ "isStatic": false,
17825
+ "isProtected": false,
17826
+ "isAbstract": false
17827
+ },
17828
+ {
17829
+ "kind": "Property",
17830
+ "canonicalReference": "server!PathfindingEntityController#waypointNextIndex:member",
17831
+ "docComment": "/**\n * The index representing the next waypoint moving towards of the current set of waypoints being followed.\n */\n",
17832
+ "excerptTokens": [
17833
+ {
17834
+ "kind": "Content",
17835
+ "text": "get waypointNextIndex(): "
17836
+ },
17837
+ {
17838
+ "kind": "Content",
17839
+ "text": "number"
17840
+ },
17841
+ {
17842
+ "kind": "Content",
17843
+ "text": ";"
17844
+ }
17845
+ ],
17846
+ "isReadonly": true,
17847
+ "isOptional": false,
17848
+ "releaseTag": "Public",
17849
+ "name": "waypointNextIndex",
17850
+ "propertyTypeTokenRange": {
17851
+ "startIndex": 1,
17852
+ "endIndex": 2
17853
+ },
17854
+ "isStatic": false,
17855
+ "isProtected": false,
17856
+ "isAbstract": false
17857
+ },
17858
+ {
17859
+ "kind": "Property",
17860
+ "canonicalReference": "server!PathfindingEntityController#waypoints:member",
17861
+ "docComment": "/**\n * The current waypoints being followed.\n */\n",
17862
+ "excerptTokens": [
17863
+ {
17864
+ "kind": "Content",
17865
+ "text": "get waypoints(): "
17866
+ },
17867
+ {
17868
+ "kind": "Reference",
17869
+ "text": "Vector3Like",
17870
+ "canonicalReference": "server!Vector3Like:interface"
17871
+ },
17872
+ {
17873
+ "kind": "Content",
17874
+ "text": "[]"
17875
+ },
17876
+ {
17877
+ "kind": "Content",
17878
+ "text": ";"
17879
+ }
17880
+ ],
17881
+ "isReadonly": true,
17882
+ "isOptional": false,
17883
+ "releaseTag": "Public",
17884
+ "name": "waypoints",
17885
+ "propertyTypeTokenRange": {
17886
+ "startIndex": 1,
17887
+ "endIndex": 3
17888
+ },
17889
+ "isStatic": false,
17890
+ "isProtected": false,
17891
+ "isAbstract": false
17892
+ },
17893
+ {
17894
+ "kind": "Property",
17895
+ "canonicalReference": "server!PathfindingEntityController#waypointTimeoutMs:member",
17896
+ "docComment": "/**\n * The timeout in milliseconds for a waypoint to be considered reached. Defaults to 2000ms divided by the speed of the entity.\n */\n",
17897
+ "excerptTokens": [
17898
+ {
17899
+ "kind": "Content",
17900
+ "text": "get waypointTimeoutMs(): "
17901
+ },
17902
+ {
17903
+ "kind": "Content",
17904
+ "text": "number"
17905
+ },
17906
+ {
17907
+ "kind": "Content",
17908
+ "text": ";"
17909
+ }
17910
+ ],
17911
+ "isReadonly": true,
17912
+ "isOptional": false,
17913
+ "releaseTag": "Public",
17914
+ "name": "waypointTimeoutMs",
17915
+ "propertyTypeTokenRange": {
17916
+ "startIndex": 1,
17917
+ "endIndex": 2
17918
+ },
17919
+ "isStatic": false,
17920
+ "isProtected": false,
17921
+ "isAbstract": false
17922
+ }
17923
+ ],
17924
+ "extendsTokenRange": {
17925
+ "startIndex": 1,
17926
+ "endIndex": 2
17927
+ },
17928
+ "implementsTokenRanges": []
17929
+ },
17930
+ {
17931
+ "kind": "TypeAlias",
17932
+ "canonicalReference": "server!PathfindingOptions:type",
17933
+ "docComment": "/**\n * Options for the {@link PathfindingEntityController.pathfind} method.\n *\n * @public\n */\n",
17934
+ "excerptTokens": [
17935
+ {
17936
+ "kind": "Content",
17937
+ "text": "export type PathfindingOptions = "
17938
+ },
17939
+ {
17940
+ "kind": "Content",
17941
+ "text": "{\n debug?: boolean;\n maxFall?: number;\n maxJump?: number;\n maxOpenSetIterations?: number;\n pathfindAbortCallback?: "
17942
+ },
17943
+ {
17944
+ "kind": "Reference",
17945
+ "text": "PathfindAbortCallback",
17946
+ "canonicalReference": "server!PathfindAbortCallback:type"
17947
+ },
17948
+ {
17949
+ "kind": "Content",
17950
+ "text": ";\n pathfindCompleteCallback?: "
17951
+ },
17952
+ {
17953
+ "kind": "Reference",
17954
+ "text": "PathfindCompleteCallback",
17955
+ "canonicalReference": "server!PathfindCompleteCallback:type"
17956
+ },
17957
+ {
17958
+ "kind": "Content",
17959
+ "text": ";\n verticalPenalty?: number;\n waypointMoveCompleteCallback?: "
17960
+ },
17961
+ {
17962
+ "kind": "Reference",
17963
+ "text": "WaypointMoveCompleteCallback",
17964
+ "canonicalReference": "server!WaypointMoveCompleteCallback:type"
17965
+ },
17966
+ {
17967
+ "kind": "Content",
17968
+ "text": ";\n waypointMoveSkippedCallback?: "
17969
+ },
17970
+ {
17971
+ "kind": "Reference",
17972
+ "text": "WaypointMoveSkippedCallback",
17973
+ "canonicalReference": "server!WaypointMoveSkippedCallback:type"
17974
+ },
17975
+ {
17976
+ "kind": "Content",
17977
+ "text": ";\n waypointTimeoutMs?: number;\n}"
17978
+ },
17979
+ {
17980
+ "kind": "Content",
17981
+ "text": ";"
17982
+ }
17983
+ ],
17984
+ "fileUrlPath": "src/world/entities/controllers/PathfindingEntityController.ts",
17985
+ "releaseTag": "Public",
17986
+ "name": "PathfindingOptions",
17987
+ "typeTokenRange": {
17988
+ "startIndex": 1,
17989
+ "endIndex": 10
17990
+ }
17991
+ },
17454
17992
  {
17455
17993
  "kind": "Class",
17456
17994
  "canonicalReference": "server!Player:class",
@@ -20444,6 +20982,36 @@
20444
20982
  "isAbstract": false,
20445
20983
  "name": "attach"
20446
20984
  },
20985
+ {
20986
+ "kind": "Property",
20987
+ "canonicalReference": "server!PlayerEntityController#autoCancelMouseLeftClick:member",
20988
+ "docComment": "/**\n * Whether to automatically cancel left click input after first processed tick, defaults to true.\n */\n",
20989
+ "excerptTokens": [
20990
+ {
20991
+ "kind": "Content",
20992
+ "text": "autoCancelMouseLeftClick: "
20993
+ },
20994
+ {
20995
+ "kind": "Content",
20996
+ "text": "boolean"
20997
+ },
20998
+ {
20999
+ "kind": "Content",
21000
+ "text": ";"
21001
+ }
21002
+ ],
21003
+ "isReadonly": false,
21004
+ "isOptional": false,
21005
+ "releaseTag": "Public",
21006
+ "name": "autoCancelMouseLeftClick",
21007
+ "propertyTypeTokenRange": {
21008
+ "startIndex": 1,
21009
+ "endIndex": 2
21010
+ },
21011
+ "isStatic": false,
21012
+ "isProtected": false,
21013
+ "isAbstract": false
21014
+ },
20447
21015
  {
20448
21016
  "kind": "Property",
20449
21017
  "canonicalReference": "server!PlayerEntityController#canJump:member",
@@ -21096,6 +21664,33 @@
21096
21664
  "name": "PlayerEntityControllerOptions",
21097
21665
  "preserveMemberOrder": false,
21098
21666
  "members": [
21667
+ {
21668
+ "kind": "PropertySignature",
21669
+ "canonicalReference": "server!PlayerEntityControllerOptions#autoCancelMouseLeftClick:member",
21670
+ "docComment": "/**\n * Whether to automatically cancel left click input after first processed tick, defaults to true.\n */\n",
21671
+ "excerptTokens": [
21672
+ {
21673
+ "kind": "Content",
21674
+ "text": "autoCancelMouseLeftClick?: "
21675
+ },
21676
+ {
21677
+ "kind": "Content",
21678
+ "text": "boolean"
21679
+ },
21680
+ {
21681
+ "kind": "Content",
21682
+ "text": ";"
21683
+ }
21684
+ ],
21685
+ "isReadonly": false,
21686
+ "isOptional": true,
21687
+ "releaseTag": "Public",
21688
+ "name": "autoCancelMouseLeftClick",
21689
+ "propertyTypeTokenRange": {
21690
+ "startIndex": 1,
21691
+ "endIndex": 2
21692
+ }
21693
+ },
21099
21694
  {
21100
21695
  "kind": "PropertySignature",
21101
21696
  "canonicalReference": "server!PlayerEntityControllerOptions#canJump:member",
@@ -29502,6 +30097,54 @@
29502
30097
  "isAbstract": false,
29503
30098
  "name": "face"
29504
30099
  },
30100
+ {
30101
+ "kind": "Method",
30102
+ "canonicalReference": "server!SimpleEntityController#jump:member(1)",
30103
+ "docComment": "/**\n * Applies an upwards impulse to the entity to simulate a jump, only supported for entities with dynamic rigid body types.\n *\n * @param height - The height to jump to.\n */\n",
30104
+ "excerptTokens": [
30105
+ {
30106
+ "kind": "Content",
30107
+ "text": "jump(height: "
30108
+ },
30109
+ {
30110
+ "kind": "Content",
30111
+ "text": "number"
30112
+ },
30113
+ {
30114
+ "kind": "Content",
30115
+ "text": "): "
30116
+ },
30117
+ {
30118
+ "kind": "Content",
30119
+ "text": "void"
30120
+ },
30121
+ {
30122
+ "kind": "Content",
30123
+ "text": ";"
30124
+ }
30125
+ ],
30126
+ "isStatic": false,
30127
+ "returnTypeTokenRange": {
30128
+ "startIndex": 3,
30129
+ "endIndex": 4
30130
+ },
30131
+ "releaseTag": "Public",
30132
+ "isProtected": false,
30133
+ "overloadIndex": 1,
30134
+ "parameters": [
30135
+ {
30136
+ "parameterName": "height",
30137
+ "parameterTypeTokenRange": {
30138
+ "startIndex": 1,
30139
+ "endIndex": 2
30140
+ },
30141
+ "isOptional": false
30142
+ }
30143
+ ],
30144
+ "isOptional": false,
30145
+ "isAbstract": false,
30146
+ "name": "jump"
30147
+ },
29505
30148
  {
29506
30149
  "kind": "Method",
29507
30150
  "canonicalReference": "server!SimpleEntityController#move:member(1)",
@@ -31813,6 +32456,76 @@
31813
32456
  ],
31814
32457
  "extendsTokenRanges": []
31815
32458
  },
32459
+ {
32460
+ "kind": "TypeAlias",
32461
+ "canonicalReference": "server!WaypointMoveCompleteCallback:type",
32462
+ "docComment": "/**\n * A callback function called when the entity associated with the PathfindingEntityController finishes moving to a calculate waypoint of its current path.\n *\n * @param waypoint - The waypoint that the entity has finished moving to.\n *\n * @param waypointIndex - The index of the waypoint that the entity has finished moving to.\n *\n * @public\n */\n",
32463
+ "excerptTokens": [
32464
+ {
32465
+ "kind": "Content",
32466
+ "text": "export type WaypointMoveCompleteCallback = "
32467
+ },
32468
+ {
32469
+ "kind": "Content",
32470
+ "text": "(waypoint: "
32471
+ },
32472
+ {
32473
+ "kind": "Reference",
32474
+ "text": "Vector3Like",
32475
+ "canonicalReference": "server!Vector3Like:interface"
32476
+ },
32477
+ {
32478
+ "kind": "Content",
32479
+ "text": ", waypointIndex: number) => void"
32480
+ },
32481
+ {
32482
+ "kind": "Content",
32483
+ "text": ";"
32484
+ }
32485
+ ],
32486
+ "fileUrlPath": "src/world/entities/controllers/PathfindingEntityController.ts",
32487
+ "releaseTag": "Public",
32488
+ "name": "WaypointMoveCompleteCallback",
32489
+ "typeTokenRange": {
32490
+ "startIndex": 1,
32491
+ "endIndex": 4
32492
+ }
32493
+ },
32494
+ {
32495
+ "kind": "TypeAlias",
32496
+ "canonicalReference": "server!WaypointMoveSkippedCallback:type",
32497
+ "docComment": "/**\n * A callback function called when the entity associated with the PathfindingEntityController skips a waypoint because it took too long to reach.\n *\n * @param waypoint - The waypoint that the entity skipped.\n *\n * @param waypointIndex - The index of the waypoint that the entity skipped.\n *\n * @public\n */\n",
32498
+ "excerptTokens": [
32499
+ {
32500
+ "kind": "Content",
32501
+ "text": "export type WaypointMoveSkippedCallback = "
32502
+ },
32503
+ {
32504
+ "kind": "Content",
32505
+ "text": "(waypoint: "
32506
+ },
32507
+ {
32508
+ "kind": "Reference",
32509
+ "text": "Vector3Like",
32510
+ "canonicalReference": "server!Vector3Like:interface"
32511
+ },
32512
+ {
32513
+ "kind": "Content",
32514
+ "text": ", waypointIndex: number) => void"
32515
+ },
32516
+ {
32517
+ "kind": "Content",
32518
+ "text": ";"
32519
+ }
32520
+ ],
32521
+ "fileUrlPath": "src/world/entities/controllers/PathfindingEntityController.ts",
32522
+ "releaseTag": "Public",
32523
+ "name": "WaypointMoveSkippedCallback",
32524
+ "typeTokenRange": {
32525
+ "startIndex": 1,
32526
+ "endIndex": 4
32527
+ }
32528
+ },
31816
32529
  {
31817
32530
  "kind": "Class",
31818
32531
  "canonicalReference": "server!World:class",