hytopia 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/README.md +2 -1
  2. package/docs/server.hytopia.md +22 -0
  3. package/docs/server.hytopia.worldloopeventpayload.md +73 -0
  4. package/docs/server.hytopia.worldloopeventpayload.start.md +53 -0
  5. package/docs/server.hytopia.worldloopeventpayload.start.worldloop.md +11 -0
  6. package/docs/server.hytopia.worldloopeventpayload.stop.md +53 -0
  7. package/docs/server.hytopia.worldloopeventpayload.stop.worldloop.md +11 -0
  8. package/docs/server.hytopia.worldloopeventpayload.tickend.md +70 -0
  9. package/docs/server.hytopia.worldloopeventpayload.tickend.tickdurationms.md +11 -0
  10. package/docs/server.hytopia.worldloopeventpayload.tickend.worldloop.md +11 -0
  11. package/docs/server.hytopia.worldloopeventpayload.tickerror.error.md +11 -0
  12. package/docs/server.hytopia.worldloopeventpayload.tickerror.md +70 -0
  13. package/docs/server.hytopia.worldloopeventpayload.tickerror.worldloop.md +11 -0
  14. package/docs/server.hytopia.worldloopeventpayload.tickstart.md +70 -0
  15. package/docs/server.hytopia.worldloopeventpayload.tickstart.tickdeltams.md +11 -0
  16. package/docs/server.hytopia.worldloopeventpayload.tickstart.worldloop.md +11 -0
  17. package/docs/server.hytopia.worldloopeventtype.md +103 -0
  18. package/docs/server.md +22 -0
  19. package/docs/server.worldloopeventpayload.md +73 -0
  20. package/docs/server.worldloopeventpayload.start.md +53 -0
  21. package/docs/server.worldloopeventpayload.start.worldloop.md +11 -0
  22. package/docs/server.worldloopeventpayload.stop.md +53 -0
  23. package/docs/server.worldloopeventpayload.stop.worldloop.md +11 -0
  24. package/docs/server.worldloopeventpayload.tickend.md +70 -0
  25. package/docs/server.worldloopeventpayload.tickend.tickdurationms.md +11 -0
  26. package/docs/server.worldloopeventpayload.tickend.worldloop.md +11 -0
  27. package/docs/server.worldloopeventpayload.tickerror.error.md +11 -0
  28. package/docs/server.worldloopeventpayload.tickerror.md +70 -0
  29. package/docs/server.worldloopeventpayload.tickerror.worldloop.md +11 -0
  30. package/docs/server.worldloopeventpayload.tickstart.md +70 -0
  31. package/docs/server.worldloopeventpayload.tickstart.tickdeltams.md +11 -0
  32. package/docs/server.worldloopeventpayload.tickstart.worldloop.md +11 -0
  33. package/docs/server.worldloopeventtype.md +103 -0
  34. package/package.json +1 -1
  35. package/server.api.json +1082 -190
  36. package/server.d.ts +34 -1
  37. package/server.js +60 -60
package/server.api.json CHANGED
@@ -29443,6 +29443,452 @@
29443
29443
  ],
29444
29444
  "implementsTokenRanges": []
29445
29445
  },
29446
+ {
29447
+ "kind": "Namespace",
29448
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload:namespace",
29449
+ "docComment": "/**\n * Payloads for events emitted by a WorldLoop instance.\n *\n * @public\n */\n",
29450
+ "excerptTokens": [
29451
+ {
29452
+ "kind": "Content",
29453
+ "text": "export declare namespace WorldLoopEventPayload "
29454
+ }
29455
+ ],
29456
+ "fileUrlPath": "src/world/WorldLoop.ts",
29457
+ "releaseTag": "Public",
29458
+ "name": "WorldLoopEventPayload",
29459
+ "preserveMemberOrder": false,
29460
+ "members": [
29461
+ {
29462
+ "kind": "Interface",
29463
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.Start:interface",
29464
+ "docComment": "",
29465
+ "excerptTokens": [
29466
+ {
29467
+ "kind": "Content",
29468
+ "text": "interface Start "
29469
+ }
29470
+ ],
29471
+ "releaseTag": "Public",
29472
+ "name": "Start",
29473
+ "preserveMemberOrder": false,
29474
+ "members": [
29475
+ {
29476
+ "kind": "PropertySignature",
29477
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.Start#worldLoop:member",
29478
+ "docComment": "",
29479
+ "excerptTokens": [
29480
+ {
29481
+ "kind": "Content",
29482
+ "text": "worldLoop: "
29483
+ },
29484
+ {
29485
+ "kind": "Reference",
29486
+ "text": "WorldLoop",
29487
+ "canonicalReference": "server!WorldLoop:class"
29488
+ },
29489
+ {
29490
+ "kind": "Content",
29491
+ "text": ";"
29492
+ }
29493
+ ],
29494
+ "isReadonly": false,
29495
+ "isOptional": false,
29496
+ "releaseTag": "Public",
29497
+ "name": "worldLoop",
29498
+ "propertyTypeTokenRange": {
29499
+ "startIndex": 1,
29500
+ "endIndex": 2
29501
+ }
29502
+ }
29503
+ ],
29504
+ "extendsTokenRanges": []
29505
+ },
29506
+ {
29507
+ "kind": "Interface",
29508
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.Stop:interface",
29509
+ "docComment": "",
29510
+ "excerptTokens": [
29511
+ {
29512
+ "kind": "Content",
29513
+ "text": "interface Stop "
29514
+ }
29515
+ ],
29516
+ "releaseTag": "Public",
29517
+ "name": "Stop",
29518
+ "preserveMemberOrder": false,
29519
+ "members": [
29520
+ {
29521
+ "kind": "PropertySignature",
29522
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.Stop#worldLoop:member",
29523
+ "docComment": "",
29524
+ "excerptTokens": [
29525
+ {
29526
+ "kind": "Content",
29527
+ "text": "worldLoop: "
29528
+ },
29529
+ {
29530
+ "kind": "Reference",
29531
+ "text": "WorldLoop",
29532
+ "canonicalReference": "server!WorldLoop:class"
29533
+ },
29534
+ {
29535
+ "kind": "Content",
29536
+ "text": ";"
29537
+ }
29538
+ ],
29539
+ "isReadonly": false,
29540
+ "isOptional": false,
29541
+ "releaseTag": "Public",
29542
+ "name": "worldLoop",
29543
+ "propertyTypeTokenRange": {
29544
+ "startIndex": 1,
29545
+ "endIndex": 2
29546
+ }
29547
+ }
29548
+ ],
29549
+ "extendsTokenRanges": []
29550
+ },
29551
+ {
29552
+ "kind": "Interface",
29553
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickEnd:interface",
29554
+ "docComment": "",
29555
+ "excerptTokens": [
29556
+ {
29557
+ "kind": "Content",
29558
+ "text": "interface TickEnd "
29559
+ }
29560
+ ],
29561
+ "releaseTag": "Public",
29562
+ "name": "TickEnd",
29563
+ "preserveMemberOrder": false,
29564
+ "members": [
29565
+ {
29566
+ "kind": "PropertySignature",
29567
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickEnd#tickDurationMs:member",
29568
+ "docComment": "",
29569
+ "excerptTokens": [
29570
+ {
29571
+ "kind": "Content",
29572
+ "text": "tickDurationMs: "
29573
+ },
29574
+ {
29575
+ "kind": "Content",
29576
+ "text": "number"
29577
+ },
29578
+ {
29579
+ "kind": "Content",
29580
+ "text": ";"
29581
+ }
29582
+ ],
29583
+ "isReadonly": false,
29584
+ "isOptional": false,
29585
+ "releaseTag": "Public",
29586
+ "name": "tickDurationMs",
29587
+ "propertyTypeTokenRange": {
29588
+ "startIndex": 1,
29589
+ "endIndex": 2
29590
+ }
29591
+ },
29592
+ {
29593
+ "kind": "PropertySignature",
29594
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickEnd#worldLoop:member",
29595
+ "docComment": "",
29596
+ "excerptTokens": [
29597
+ {
29598
+ "kind": "Content",
29599
+ "text": "worldLoop: "
29600
+ },
29601
+ {
29602
+ "kind": "Reference",
29603
+ "text": "WorldLoop",
29604
+ "canonicalReference": "server!WorldLoop:class"
29605
+ },
29606
+ {
29607
+ "kind": "Content",
29608
+ "text": ";"
29609
+ }
29610
+ ],
29611
+ "isReadonly": false,
29612
+ "isOptional": false,
29613
+ "releaseTag": "Public",
29614
+ "name": "worldLoop",
29615
+ "propertyTypeTokenRange": {
29616
+ "startIndex": 1,
29617
+ "endIndex": 2
29618
+ }
29619
+ }
29620
+ ],
29621
+ "extendsTokenRanges": []
29622
+ },
29623
+ {
29624
+ "kind": "Interface",
29625
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickError:interface",
29626
+ "docComment": "",
29627
+ "excerptTokens": [
29628
+ {
29629
+ "kind": "Content",
29630
+ "text": "interface TickError "
29631
+ }
29632
+ ],
29633
+ "releaseTag": "Public",
29634
+ "name": "TickError",
29635
+ "preserveMemberOrder": false,
29636
+ "members": [
29637
+ {
29638
+ "kind": "PropertySignature",
29639
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickError#error:member",
29640
+ "docComment": "",
29641
+ "excerptTokens": [
29642
+ {
29643
+ "kind": "Content",
29644
+ "text": "error: "
29645
+ },
29646
+ {
29647
+ "kind": "Reference",
29648
+ "text": "Error",
29649
+ "canonicalReference": "!Error:interface"
29650
+ },
29651
+ {
29652
+ "kind": "Content",
29653
+ "text": ";"
29654
+ }
29655
+ ],
29656
+ "isReadonly": false,
29657
+ "isOptional": false,
29658
+ "releaseTag": "Public",
29659
+ "name": "error",
29660
+ "propertyTypeTokenRange": {
29661
+ "startIndex": 1,
29662
+ "endIndex": 2
29663
+ }
29664
+ },
29665
+ {
29666
+ "kind": "PropertySignature",
29667
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickError#worldLoop:member",
29668
+ "docComment": "",
29669
+ "excerptTokens": [
29670
+ {
29671
+ "kind": "Content",
29672
+ "text": "worldLoop: "
29673
+ },
29674
+ {
29675
+ "kind": "Reference",
29676
+ "text": "WorldLoop",
29677
+ "canonicalReference": "server!WorldLoop:class"
29678
+ },
29679
+ {
29680
+ "kind": "Content",
29681
+ "text": ";"
29682
+ }
29683
+ ],
29684
+ "isReadonly": false,
29685
+ "isOptional": false,
29686
+ "releaseTag": "Public",
29687
+ "name": "worldLoop",
29688
+ "propertyTypeTokenRange": {
29689
+ "startIndex": 1,
29690
+ "endIndex": 2
29691
+ }
29692
+ }
29693
+ ],
29694
+ "extendsTokenRanges": []
29695
+ },
29696
+ {
29697
+ "kind": "Interface",
29698
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickStart:interface",
29699
+ "docComment": "",
29700
+ "excerptTokens": [
29701
+ {
29702
+ "kind": "Content",
29703
+ "text": "interface TickStart "
29704
+ }
29705
+ ],
29706
+ "releaseTag": "Public",
29707
+ "name": "TickStart",
29708
+ "preserveMemberOrder": false,
29709
+ "members": [
29710
+ {
29711
+ "kind": "PropertySignature",
29712
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickStart#tickDeltaMs:member",
29713
+ "docComment": "",
29714
+ "excerptTokens": [
29715
+ {
29716
+ "kind": "Content",
29717
+ "text": "tickDeltaMs: "
29718
+ },
29719
+ {
29720
+ "kind": "Content",
29721
+ "text": "number"
29722
+ },
29723
+ {
29724
+ "kind": "Content",
29725
+ "text": ";"
29726
+ }
29727
+ ],
29728
+ "isReadonly": false,
29729
+ "isOptional": false,
29730
+ "releaseTag": "Public",
29731
+ "name": "tickDeltaMs",
29732
+ "propertyTypeTokenRange": {
29733
+ "startIndex": 1,
29734
+ "endIndex": 2
29735
+ }
29736
+ },
29737
+ {
29738
+ "kind": "PropertySignature",
29739
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventPayload.TickStart#worldLoop:member",
29740
+ "docComment": "",
29741
+ "excerptTokens": [
29742
+ {
29743
+ "kind": "Content",
29744
+ "text": "worldLoop: "
29745
+ },
29746
+ {
29747
+ "kind": "Reference",
29748
+ "text": "WorldLoop",
29749
+ "canonicalReference": "server!WorldLoop:class"
29750
+ },
29751
+ {
29752
+ "kind": "Content",
29753
+ "text": ";"
29754
+ }
29755
+ ],
29756
+ "isReadonly": false,
29757
+ "isOptional": false,
29758
+ "releaseTag": "Public",
29759
+ "name": "worldLoop",
29760
+ "propertyTypeTokenRange": {
29761
+ "startIndex": 1,
29762
+ "endIndex": 2
29763
+ }
29764
+ }
29765
+ ],
29766
+ "extendsTokenRanges": []
29767
+ }
29768
+ ]
29769
+ },
29770
+ {
29771
+ "kind": "Enum",
29772
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventType:enum",
29773
+ "docComment": "/**\n * Event types a WorldLoop instance can emit.\n *\n * @public\n */\n",
29774
+ "excerptTokens": [
29775
+ {
29776
+ "kind": "Content",
29777
+ "text": "export declare enum WorldLoopEventType "
29778
+ }
29779
+ ],
29780
+ "fileUrlPath": "src/world/WorldLoop.ts",
29781
+ "releaseTag": "Public",
29782
+ "name": "WorldLoopEventType",
29783
+ "preserveMemberOrder": false,
29784
+ "members": [
29785
+ {
29786
+ "kind": "EnumMember",
29787
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventType.START:member",
29788
+ "docComment": "",
29789
+ "excerptTokens": [
29790
+ {
29791
+ "kind": "Content",
29792
+ "text": "START = "
29793
+ },
29794
+ {
29795
+ "kind": "Content",
29796
+ "text": "\"WORLD_LOOP.START\""
29797
+ }
29798
+ ],
29799
+ "initializerTokenRange": {
29800
+ "startIndex": 1,
29801
+ "endIndex": 2
29802
+ },
29803
+ "releaseTag": "Public",
29804
+ "name": "START"
29805
+ },
29806
+ {
29807
+ "kind": "EnumMember",
29808
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventType.STOP:member",
29809
+ "docComment": "",
29810
+ "excerptTokens": [
29811
+ {
29812
+ "kind": "Content",
29813
+ "text": "STOP = "
29814
+ },
29815
+ {
29816
+ "kind": "Content",
29817
+ "text": "\"WORLD_LOOP.STOP\""
29818
+ }
29819
+ ],
29820
+ "initializerTokenRange": {
29821
+ "startIndex": 1,
29822
+ "endIndex": 2
29823
+ },
29824
+ "releaseTag": "Public",
29825
+ "name": "STOP"
29826
+ },
29827
+ {
29828
+ "kind": "EnumMember",
29829
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventType.TICK_END:member",
29830
+ "docComment": "",
29831
+ "excerptTokens": [
29832
+ {
29833
+ "kind": "Content",
29834
+ "text": "TICK_END = "
29835
+ },
29836
+ {
29837
+ "kind": "Content",
29838
+ "text": "\"WORLD_LOOP.TICK_END\""
29839
+ }
29840
+ ],
29841
+ "initializerTokenRange": {
29842
+ "startIndex": 1,
29843
+ "endIndex": 2
29844
+ },
29845
+ "releaseTag": "Public",
29846
+ "name": "TICK_END"
29847
+ },
29848
+ {
29849
+ "kind": "EnumMember",
29850
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventType.TICK_ERROR:member",
29851
+ "docComment": "",
29852
+ "excerptTokens": [
29853
+ {
29854
+ "kind": "Content",
29855
+ "text": "TICK_ERROR = "
29856
+ },
29857
+ {
29858
+ "kind": "Content",
29859
+ "text": "\"WORLD_LOOP.TICK_ERROR\""
29860
+ }
29861
+ ],
29862
+ "initializerTokenRange": {
29863
+ "startIndex": 1,
29864
+ "endIndex": 2
29865
+ },
29866
+ "releaseTag": "Public",
29867
+ "name": "TICK_ERROR"
29868
+ },
29869
+ {
29870
+ "kind": "EnumMember",
29871
+ "canonicalReference": "server!HYTOPIA.WorldLoopEventType.TICK_START:member",
29872
+ "docComment": "",
29873
+ "excerptTokens": [
29874
+ {
29875
+ "kind": "Content",
29876
+ "text": "TICK_START = "
29877
+ },
29878
+ {
29879
+ "kind": "Content",
29880
+ "text": "\"WORLD_LOOP.TICK_START\""
29881
+ }
29882
+ ],
29883
+ "initializerTokenRange": {
29884
+ "startIndex": 1,
29885
+ "endIndex": 2
29886
+ },
29887
+ "releaseTag": "Public",
29888
+ "name": "TICK_START"
29889
+ }
29890
+ ]
29891
+ },
29446
29892
  {
29447
29893
  "kind": "Interface",
29448
29894
  "canonicalReference": "server!HYTOPIA.WorldMap:interface",
@@ -35863,11 +36309,266 @@
35863
36309
  "excerptTokens": [
35864
36310
  {
35865
36311
  "kind": "Content",
35866
- "text": "get name(): "
36312
+ "text": "get name(): "
36313
+ },
36314
+ {
36315
+ "kind": "Content",
36316
+ "text": "string"
36317
+ },
36318
+ {
36319
+ "kind": "Content",
36320
+ "text": ";"
36321
+ }
36322
+ ],
36323
+ "isReadonly": true,
36324
+ "isOptional": false,
36325
+ "releaseTag": "Public",
36326
+ "name": "name",
36327
+ "propertyTypeTokenRange": {
36328
+ "startIndex": 1,
36329
+ "endIndex": 2
36330
+ },
36331
+ "isStatic": false,
36332
+ "isProtected": false,
36333
+ "isAbstract": false
36334
+ },
36335
+ {
36336
+ "kind": "Property",
36337
+ "canonicalReference": "server!World#onPlayerJoin:member",
36338
+ "docComment": "/**\n * A function that is called when a player joins the world.\n *\n * @param player - The player that joined the world.\n */\n",
36339
+ "excerptTokens": [
36340
+ {
36341
+ "kind": "Content",
36342
+ "text": "onPlayerJoin?: "
36343
+ },
36344
+ {
36345
+ "kind": "Content",
36346
+ "text": "(player: "
36347
+ },
36348
+ {
36349
+ "kind": "Reference",
36350
+ "text": "Player",
36351
+ "canonicalReference": "server!Player:class"
36352
+ },
36353
+ {
36354
+ "kind": "Content",
36355
+ "text": ") => void"
36356
+ },
36357
+ {
36358
+ "kind": "Content",
36359
+ "text": ";"
36360
+ }
36361
+ ],
36362
+ "isReadonly": false,
36363
+ "isOptional": true,
36364
+ "releaseTag": "Public",
36365
+ "name": "onPlayerJoin",
36366
+ "propertyTypeTokenRange": {
36367
+ "startIndex": 1,
36368
+ "endIndex": 4
36369
+ },
36370
+ "isStatic": false,
36371
+ "isProtected": false,
36372
+ "isAbstract": false
36373
+ },
36374
+ {
36375
+ "kind": "Property",
36376
+ "canonicalReference": "server!World#onPlayerLeave:member",
36377
+ "docComment": "/**\n * A function that is called when a player leaves the world.\n *\n * @param player - The player that left the world.\n */\n",
36378
+ "excerptTokens": [
36379
+ {
36380
+ "kind": "Content",
36381
+ "text": "onPlayerLeave?: "
36382
+ },
36383
+ {
36384
+ "kind": "Content",
36385
+ "text": "(player: "
36386
+ },
36387
+ {
36388
+ "kind": "Reference",
36389
+ "text": "Player",
36390
+ "canonicalReference": "server!Player:class"
36391
+ },
36392
+ {
36393
+ "kind": "Content",
36394
+ "text": ") => void"
36395
+ },
36396
+ {
36397
+ "kind": "Content",
36398
+ "text": ";"
36399
+ }
36400
+ ],
36401
+ "isReadonly": false,
36402
+ "isOptional": true,
36403
+ "releaseTag": "Public",
36404
+ "name": "onPlayerLeave",
36405
+ "propertyTypeTokenRange": {
36406
+ "startIndex": 1,
36407
+ "endIndex": 4
36408
+ },
36409
+ "isStatic": false,
36410
+ "isProtected": false,
36411
+ "isAbstract": false
36412
+ },
36413
+ {
36414
+ "kind": "Property",
36415
+ "canonicalReference": "server!World#simulation:member",
36416
+ "docComment": "/**\n * The simulation for the world.\n */\n",
36417
+ "excerptTokens": [
36418
+ {
36419
+ "kind": "Content",
36420
+ "text": "get simulation(): "
36421
+ },
36422
+ {
36423
+ "kind": "Reference",
36424
+ "text": "Simulation",
36425
+ "canonicalReference": "server!Simulation:class"
36426
+ },
36427
+ {
36428
+ "kind": "Content",
36429
+ "text": ";"
36430
+ }
36431
+ ],
36432
+ "isReadonly": true,
36433
+ "isOptional": false,
36434
+ "releaseTag": "Public",
36435
+ "name": "simulation",
36436
+ "propertyTypeTokenRange": {
36437
+ "startIndex": 1,
36438
+ "endIndex": 2
36439
+ },
36440
+ "isStatic": false,
36441
+ "isProtected": false,
36442
+ "isAbstract": false
36443
+ },
36444
+ {
36445
+ "kind": "Property",
36446
+ "canonicalReference": "server!World#skyboxUri:member",
36447
+ "docComment": "/**\n * The URI of the skybox cubemap for the world.\n */\n",
36448
+ "excerptTokens": [
36449
+ {
36450
+ "kind": "Content",
36451
+ "text": "get skyboxUri(): "
36452
+ },
36453
+ {
36454
+ "kind": "Content",
36455
+ "text": "string"
36456
+ },
36457
+ {
36458
+ "kind": "Content",
36459
+ "text": ";"
36460
+ }
36461
+ ],
36462
+ "isReadonly": true,
36463
+ "isOptional": false,
36464
+ "releaseTag": "Public",
36465
+ "name": "skyboxUri",
36466
+ "propertyTypeTokenRange": {
36467
+ "startIndex": 1,
36468
+ "endIndex": 2
36469
+ },
36470
+ "isStatic": false,
36471
+ "isProtected": false,
36472
+ "isAbstract": false
36473
+ },
36474
+ {
36475
+ "kind": "Method",
36476
+ "canonicalReference": "server!World#start:member(1)",
36477
+ "docComment": "/**\n * Starts the world loop, which begins ticking physics, entities, etc.\n */\n",
36478
+ "excerptTokens": [
36479
+ {
36480
+ "kind": "Content",
36481
+ "text": "start(): "
36482
+ },
36483
+ {
36484
+ "kind": "Content",
36485
+ "text": "void"
36486
+ },
36487
+ {
36488
+ "kind": "Content",
36489
+ "text": ";"
36490
+ }
36491
+ ],
36492
+ "isStatic": false,
36493
+ "returnTypeTokenRange": {
36494
+ "startIndex": 1,
36495
+ "endIndex": 2
36496
+ },
36497
+ "releaseTag": "Public",
36498
+ "isProtected": false,
36499
+ "overloadIndex": 1,
36500
+ "parameters": [],
36501
+ "isOptional": false,
36502
+ "isAbstract": false,
36503
+ "name": "start"
36504
+ },
36505
+ {
36506
+ "kind": "Method",
36507
+ "canonicalReference": "server!World#stop:member(1)",
36508
+ "docComment": "/**\n * Stops the world loop, which stops ticking physics, entities, etc.\n */\n",
36509
+ "excerptTokens": [
36510
+ {
36511
+ "kind": "Content",
36512
+ "text": "stop(): "
36513
+ },
36514
+ {
36515
+ "kind": "Content",
36516
+ "text": "void"
36517
+ },
36518
+ {
36519
+ "kind": "Content",
36520
+ "text": ";"
36521
+ }
36522
+ ],
36523
+ "isStatic": false,
36524
+ "returnTypeTokenRange": {
36525
+ "startIndex": 1,
36526
+ "endIndex": 2
36527
+ },
36528
+ "releaseTag": "Public",
36529
+ "isProtected": false,
36530
+ "overloadIndex": 1,
36531
+ "parameters": [],
36532
+ "isOptional": false,
36533
+ "isAbstract": false,
36534
+ "name": "stop"
36535
+ }
36536
+ ],
36537
+ "implementsTokenRanges": [
36538
+ {
36539
+ "startIndex": 1,
36540
+ "endIndex": 2
36541
+ }
36542
+ ]
36543
+ },
36544
+ {
36545
+ "kind": "Class",
36546
+ "canonicalReference": "server!WorldLoop:class",
36547
+ "docComment": "/**\n * Manages the tick loop for a world.\n *\n * @remarks\n *\n * The world loop automatically handles ticking physics, entities, and other world logic.\n *\n * The internal order of tick operations is as follows:\n *\n * 1. Update chunks and meshing\n *\n * 2. Tick entity logic\n *\n * 3. Step physics\n *\n * 4. Check and emit entity updates\n *\n * 5. Synchronize network packets with player clients\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `WorldLoop` class.\n *\n * @public\n */\n",
36548
+ "excerptTokens": [
36549
+ {
36550
+ "kind": "Content",
36551
+ "text": "export default class WorldLoop "
36552
+ }
36553
+ ],
36554
+ "fileUrlPath": "src/world/WorldLoop.ts",
36555
+ "releaseTag": "Public",
36556
+ "isAbstract": false,
36557
+ "name": "WorldLoop",
36558
+ "preserveMemberOrder": false,
36559
+ "members": [
36560
+ {
36561
+ "kind": "Property",
36562
+ "canonicalReference": "server!WorldLoop#currentTick:member",
36563
+ "docComment": "/**\n * The current tick of the world loop.\n */\n",
36564
+ "excerptTokens": [
36565
+ {
36566
+ "kind": "Content",
36567
+ "text": "get currentTick(): "
35867
36568
  },
35868
36569
  {
35869
36570
  "kind": "Content",
35870
- "text": "string"
36571
+ "text": "number"
35871
36572
  },
35872
36573
  {
35873
36574
  "kind": "Content",
@@ -35877,7 +36578,7 @@
35877
36578
  "isReadonly": true,
35878
36579
  "isOptional": false,
35879
36580
  "releaseTag": "Public",
35880
- "name": "name",
36581
+ "name": "currentTick",
35881
36582
  "propertyTypeTokenRange": {
35882
36583
  "startIndex": 1,
35883
36584
  "endIndex": 2
@@ -35888,38 +36589,29 @@
35888
36589
  },
35889
36590
  {
35890
36591
  "kind": "Property",
35891
- "canonicalReference": "server!World#onPlayerJoin:member",
35892
- "docComment": "/**\n * A function that is called when a player joins the world.\n *\n * @param player - The player that joined the world.\n */\n",
36592
+ "canonicalReference": "server!WorldLoop#nextTickMs:member",
36593
+ "docComment": "/**\n * The next tick time in milliseconds.\n */\n",
35893
36594
  "excerptTokens": [
35894
36595
  {
35895
36596
  "kind": "Content",
35896
- "text": "onPlayerJoin?: "
35897
- },
35898
- {
35899
- "kind": "Content",
35900
- "text": "(player: "
35901
- },
35902
- {
35903
- "kind": "Reference",
35904
- "text": "Player",
35905
- "canonicalReference": "server!Player:class"
36597
+ "text": "get nextTickMs(): "
35906
36598
  },
35907
36599
  {
35908
36600
  "kind": "Content",
35909
- "text": ") => void"
36601
+ "text": "number"
35910
36602
  },
35911
36603
  {
35912
36604
  "kind": "Content",
35913
36605
  "text": ";"
35914
36606
  }
35915
36607
  ],
35916
- "isReadonly": false,
35917
- "isOptional": true,
36608
+ "isReadonly": true,
36609
+ "isOptional": false,
35918
36610
  "releaseTag": "Public",
35919
- "name": "onPlayerJoin",
36611
+ "name": "nextTickMs",
35920
36612
  "propertyTypeTokenRange": {
35921
36613
  "startIndex": 1,
35922
- "endIndex": 4
36614
+ "endIndex": 2
35923
36615
  },
35924
36616
  "isStatic": false,
35925
36617
  "isProtected": false,
@@ -35927,38 +36619,29 @@
35927
36619
  },
35928
36620
  {
35929
36621
  "kind": "Property",
35930
- "canonicalReference": "server!World#onPlayerLeave:member",
35931
- "docComment": "/**\n * A function that is called when a player leaves the world.\n *\n * @param player - The player that left the world.\n */\n",
36622
+ "canonicalReference": "server!WorldLoop#timestepS:member",
36623
+ "docComment": "/**\n * The fixed timestep of the world loop in seconds.\n */\n",
35932
36624
  "excerptTokens": [
35933
36625
  {
35934
36626
  "kind": "Content",
35935
- "text": "onPlayerLeave?: "
35936
- },
35937
- {
35938
- "kind": "Content",
35939
- "text": "(player: "
35940
- },
35941
- {
35942
- "kind": "Reference",
35943
- "text": "Player",
35944
- "canonicalReference": "server!Player:class"
36627
+ "text": "get timestepS(): "
35945
36628
  },
35946
36629
  {
35947
36630
  "kind": "Content",
35948
- "text": ") => void"
36631
+ "text": "number"
35949
36632
  },
35950
36633
  {
35951
36634
  "kind": "Content",
35952
36635
  "text": ";"
35953
36636
  }
35954
36637
  ],
35955
- "isReadonly": false,
35956
- "isOptional": true,
36638
+ "isReadonly": true,
36639
+ "isOptional": false,
35957
36640
  "releaseTag": "Public",
35958
- "name": "onPlayerLeave",
36641
+ "name": "timestepS",
35959
36642
  "propertyTypeTokenRange": {
35960
36643
  "startIndex": 1,
35961
- "endIndex": 4
36644
+ "endIndex": 2
35962
36645
  },
35963
36646
  "isStatic": false,
35964
36647
  "isProtected": false,
@@ -35966,17 +36649,17 @@
35966
36649
  },
35967
36650
  {
35968
36651
  "kind": "Property",
35969
- "canonicalReference": "server!World#simulation:member",
35970
- "docComment": "/**\n * The simulation for the world.\n */\n",
36652
+ "canonicalReference": "server!WorldLoop#world:member",
36653
+ "docComment": "/**\n * The world that the loop manages.\n */\n",
35971
36654
  "excerptTokens": [
35972
36655
  {
35973
36656
  "kind": "Content",
35974
- "text": "get simulation(): "
36657
+ "text": "get world(): "
35975
36658
  },
35976
36659
  {
35977
36660
  "kind": "Reference",
35978
- "text": "Simulation",
35979
- "canonicalReference": "server!Simulation:class"
36661
+ "text": "World",
36662
+ "canonicalReference": "server!World:class"
35980
36663
  },
35981
36664
  {
35982
36665
  "kind": "Content",
@@ -35986,7 +36669,7 @@
35986
36669
  "isReadonly": true,
35987
36670
  "isOptional": false,
35988
36671
  "releaseTag": "Public",
35989
- "name": "simulation",
36672
+ "name": "world",
35990
36673
  "propertyTypeTokenRange": {
35991
36674
  "startIndex": 1,
35992
36675
  "endIndex": 2
@@ -35994,246 +36677,455 @@
35994
36677
  "isStatic": false,
35995
36678
  "isProtected": false,
35996
36679
  "isAbstract": false
36680
+ }
36681
+ ],
36682
+ "implementsTokenRanges": []
36683
+ },
36684
+ {
36685
+ "kind": "Namespace",
36686
+ "canonicalReference": "server!WorldLoopEventPayload:namespace",
36687
+ "docComment": "/**\n * Payloads for events emitted by a WorldLoop instance.\n *\n * @public\n */\n",
36688
+ "excerptTokens": [
36689
+ {
36690
+ "kind": "Content",
36691
+ "text": "export declare namespace WorldLoopEventPayload "
36692
+ }
36693
+ ],
36694
+ "fileUrlPath": "src/world/WorldLoop.ts",
36695
+ "releaseTag": "Public",
36696
+ "name": "WorldLoopEventPayload",
36697
+ "preserveMemberOrder": false,
36698
+ "members": [
36699
+ {
36700
+ "kind": "Interface",
36701
+ "canonicalReference": "server!WorldLoopEventPayload.Start:interface",
36702
+ "docComment": "",
36703
+ "excerptTokens": [
36704
+ {
36705
+ "kind": "Content",
36706
+ "text": "interface Start "
36707
+ }
36708
+ ],
36709
+ "releaseTag": "Public",
36710
+ "name": "Start",
36711
+ "preserveMemberOrder": false,
36712
+ "members": [
36713
+ {
36714
+ "kind": "PropertySignature",
36715
+ "canonicalReference": "server!WorldLoopEventPayload.Start#worldLoop:member",
36716
+ "docComment": "",
36717
+ "excerptTokens": [
36718
+ {
36719
+ "kind": "Content",
36720
+ "text": "worldLoop: "
36721
+ },
36722
+ {
36723
+ "kind": "Reference",
36724
+ "text": "WorldLoop",
36725
+ "canonicalReference": "server!WorldLoop:class"
36726
+ },
36727
+ {
36728
+ "kind": "Content",
36729
+ "text": ";"
36730
+ }
36731
+ ],
36732
+ "isReadonly": false,
36733
+ "isOptional": false,
36734
+ "releaseTag": "Public",
36735
+ "name": "worldLoop",
36736
+ "propertyTypeTokenRange": {
36737
+ "startIndex": 1,
36738
+ "endIndex": 2
36739
+ }
36740
+ }
36741
+ ],
36742
+ "extendsTokenRanges": []
35997
36743
  },
35998
36744
  {
35999
- "kind": "Property",
36000
- "canonicalReference": "server!World#skyboxUri:member",
36001
- "docComment": "/**\n * The URI of the skybox cubemap for the world.\n */\n",
36745
+ "kind": "Interface",
36746
+ "canonicalReference": "server!WorldLoopEventPayload.Stop:interface",
36747
+ "docComment": "",
36002
36748
  "excerptTokens": [
36003
36749
  {
36004
36750
  "kind": "Content",
36005
- "text": "get skyboxUri(): "
36751
+ "text": "interface Stop "
36752
+ }
36753
+ ],
36754
+ "releaseTag": "Public",
36755
+ "name": "Stop",
36756
+ "preserveMemberOrder": false,
36757
+ "members": [
36758
+ {
36759
+ "kind": "PropertySignature",
36760
+ "canonicalReference": "server!WorldLoopEventPayload.Stop#worldLoop:member",
36761
+ "docComment": "",
36762
+ "excerptTokens": [
36763
+ {
36764
+ "kind": "Content",
36765
+ "text": "worldLoop: "
36766
+ },
36767
+ {
36768
+ "kind": "Reference",
36769
+ "text": "WorldLoop",
36770
+ "canonicalReference": "server!WorldLoop:class"
36771
+ },
36772
+ {
36773
+ "kind": "Content",
36774
+ "text": ";"
36775
+ }
36776
+ ],
36777
+ "isReadonly": false,
36778
+ "isOptional": false,
36779
+ "releaseTag": "Public",
36780
+ "name": "worldLoop",
36781
+ "propertyTypeTokenRange": {
36782
+ "startIndex": 1,
36783
+ "endIndex": 2
36784
+ }
36785
+ }
36786
+ ],
36787
+ "extendsTokenRanges": []
36788
+ },
36789
+ {
36790
+ "kind": "Interface",
36791
+ "canonicalReference": "server!WorldLoopEventPayload.TickEnd:interface",
36792
+ "docComment": "",
36793
+ "excerptTokens": [
36794
+ {
36795
+ "kind": "Content",
36796
+ "text": "interface TickEnd "
36797
+ }
36798
+ ],
36799
+ "releaseTag": "Public",
36800
+ "name": "TickEnd",
36801
+ "preserveMemberOrder": false,
36802
+ "members": [
36803
+ {
36804
+ "kind": "PropertySignature",
36805
+ "canonicalReference": "server!WorldLoopEventPayload.TickEnd#tickDurationMs:member",
36806
+ "docComment": "",
36807
+ "excerptTokens": [
36808
+ {
36809
+ "kind": "Content",
36810
+ "text": "tickDurationMs: "
36811
+ },
36812
+ {
36813
+ "kind": "Content",
36814
+ "text": "number"
36815
+ },
36816
+ {
36817
+ "kind": "Content",
36818
+ "text": ";"
36819
+ }
36820
+ ],
36821
+ "isReadonly": false,
36822
+ "isOptional": false,
36823
+ "releaseTag": "Public",
36824
+ "name": "tickDurationMs",
36825
+ "propertyTypeTokenRange": {
36826
+ "startIndex": 1,
36827
+ "endIndex": 2
36828
+ }
36006
36829
  },
36830
+ {
36831
+ "kind": "PropertySignature",
36832
+ "canonicalReference": "server!WorldLoopEventPayload.TickEnd#worldLoop:member",
36833
+ "docComment": "",
36834
+ "excerptTokens": [
36835
+ {
36836
+ "kind": "Content",
36837
+ "text": "worldLoop: "
36838
+ },
36839
+ {
36840
+ "kind": "Reference",
36841
+ "text": "WorldLoop",
36842
+ "canonicalReference": "server!WorldLoop:class"
36843
+ },
36844
+ {
36845
+ "kind": "Content",
36846
+ "text": ";"
36847
+ }
36848
+ ],
36849
+ "isReadonly": false,
36850
+ "isOptional": false,
36851
+ "releaseTag": "Public",
36852
+ "name": "worldLoop",
36853
+ "propertyTypeTokenRange": {
36854
+ "startIndex": 1,
36855
+ "endIndex": 2
36856
+ }
36857
+ }
36858
+ ],
36859
+ "extendsTokenRanges": []
36860
+ },
36861
+ {
36862
+ "kind": "Interface",
36863
+ "canonicalReference": "server!WorldLoopEventPayload.TickError:interface",
36864
+ "docComment": "",
36865
+ "excerptTokens": [
36007
36866
  {
36008
36867
  "kind": "Content",
36009
- "text": "string"
36868
+ "text": "interface TickError "
36869
+ }
36870
+ ],
36871
+ "releaseTag": "Public",
36872
+ "name": "TickError",
36873
+ "preserveMemberOrder": false,
36874
+ "members": [
36875
+ {
36876
+ "kind": "PropertySignature",
36877
+ "canonicalReference": "server!WorldLoopEventPayload.TickError#error:member",
36878
+ "docComment": "",
36879
+ "excerptTokens": [
36880
+ {
36881
+ "kind": "Content",
36882
+ "text": "error: "
36883
+ },
36884
+ {
36885
+ "kind": "Reference",
36886
+ "text": "Error",
36887
+ "canonicalReference": "!Error:interface"
36888
+ },
36889
+ {
36890
+ "kind": "Content",
36891
+ "text": ";"
36892
+ }
36893
+ ],
36894
+ "isReadonly": false,
36895
+ "isOptional": false,
36896
+ "releaseTag": "Public",
36897
+ "name": "error",
36898
+ "propertyTypeTokenRange": {
36899
+ "startIndex": 1,
36900
+ "endIndex": 2
36901
+ }
36010
36902
  },
36011
36903
  {
36012
- "kind": "Content",
36013
- "text": ";"
36904
+ "kind": "PropertySignature",
36905
+ "canonicalReference": "server!WorldLoopEventPayload.TickError#worldLoop:member",
36906
+ "docComment": "",
36907
+ "excerptTokens": [
36908
+ {
36909
+ "kind": "Content",
36910
+ "text": "worldLoop: "
36911
+ },
36912
+ {
36913
+ "kind": "Reference",
36914
+ "text": "WorldLoop",
36915
+ "canonicalReference": "server!WorldLoop:class"
36916
+ },
36917
+ {
36918
+ "kind": "Content",
36919
+ "text": ";"
36920
+ }
36921
+ ],
36922
+ "isReadonly": false,
36923
+ "isOptional": false,
36924
+ "releaseTag": "Public",
36925
+ "name": "worldLoop",
36926
+ "propertyTypeTokenRange": {
36927
+ "startIndex": 1,
36928
+ "endIndex": 2
36929
+ }
36014
36930
  }
36015
36931
  ],
36016
- "isReadonly": true,
36017
- "isOptional": false,
36018
- "releaseTag": "Public",
36019
- "name": "skyboxUri",
36020
- "propertyTypeTokenRange": {
36021
- "startIndex": 1,
36022
- "endIndex": 2
36023
- },
36024
- "isStatic": false,
36025
- "isProtected": false,
36026
- "isAbstract": false
36932
+ "extendsTokenRanges": []
36027
36933
  },
36028
36934
  {
36029
- "kind": "Method",
36030
- "canonicalReference": "server!World#start:member(1)",
36031
- "docComment": "/**\n * Starts the world loop, which begins ticking physics, entities, etc.\n */\n",
36935
+ "kind": "Interface",
36936
+ "canonicalReference": "server!WorldLoopEventPayload.TickStart:interface",
36937
+ "docComment": "",
36032
36938
  "excerptTokens": [
36033
36939
  {
36034
36940
  "kind": "Content",
36035
- "text": "start(): "
36036
- },
36037
- {
36038
- "kind": "Content",
36039
- "text": "void"
36040
- },
36041
- {
36042
- "kind": "Content",
36043
- "text": ";"
36941
+ "text": "interface TickStart "
36044
36942
  }
36045
36943
  ],
36046
- "isStatic": false,
36047
- "returnTypeTokenRange": {
36048
- "startIndex": 1,
36049
- "endIndex": 2
36050
- },
36051
36944
  "releaseTag": "Public",
36052
- "isProtected": false,
36053
- "overloadIndex": 1,
36054
- "parameters": [],
36055
- "isOptional": false,
36056
- "isAbstract": false,
36057
- "name": "start"
36058
- },
36059
- {
36060
- "kind": "Method",
36061
- "canonicalReference": "server!World#stop:member(1)",
36062
- "docComment": "/**\n * Stops the world loop, which stops ticking physics, entities, etc.\n */\n",
36063
- "excerptTokens": [
36064
- {
36065
- "kind": "Content",
36066
- "text": "stop(): "
36067
- },
36945
+ "name": "TickStart",
36946
+ "preserveMemberOrder": false,
36947
+ "members": [
36068
36948
  {
36069
- "kind": "Content",
36070
- "text": "void"
36949
+ "kind": "PropertySignature",
36950
+ "canonicalReference": "server!WorldLoopEventPayload.TickStart#tickDeltaMs:member",
36951
+ "docComment": "",
36952
+ "excerptTokens": [
36953
+ {
36954
+ "kind": "Content",
36955
+ "text": "tickDeltaMs: "
36956
+ },
36957
+ {
36958
+ "kind": "Content",
36959
+ "text": "number"
36960
+ },
36961
+ {
36962
+ "kind": "Content",
36963
+ "text": ";"
36964
+ }
36965
+ ],
36966
+ "isReadonly": false,
36967
+ "isOptional": false,
36968
+ "releaseTag": "Public",
36969
+ "name": "tickDeltaMs",
36970
+ "propertyTypeTokenRange": {
36971
+ "startIndex": 1,
36972
+ "endIndex": 2
36973
+ }
36071
36974
  },
36072
36975
  {
36073
- "kind": "Content",
36074
- "text": ";"
36976
+ "kind": "PropertySignature",
36977
+ "canonicalReference": "server!WorldLoopEventPayload.TickStart#worldLoop:member",
36978
+ "docComment": "",
36979
+ "excerptTokens": [
36980
+ {
36981
+ "kind": "Content",
36982
+ "text": "worldLoop: "
36983
+ },
36984
+ {
36985
+ "kind": "Reference",
36986
+ "text": "WorldLoop",
36987
+ "canonicalReference": "server!WorldLoop:class"
36988
+ },
36989
+ {
36990
+ "kind": "Content",
36991
+ "text": ";"
36992
+ }
36993
+ ],
36994
+ "isReadonly": false,
36995
+ "isOptional": false,
36996
+ "releaseTag": "Public",
36997
+ "name": "worldLoop",
36998
+ "propertyTypeTokenRange": {
36999
+ "startIndex": 1,
37000
+ "endIndex": 2
37001
+ }
36075
37002
  }
36076
37003
  ],
36077
- "isStatic": false,
36078
- "returnTypeTokenRange": {
36079
- "startIndex": 1,
36080
- "endIndex": 2
36081
- },
36082
- "releaseTag": "Public",
36083
- "isProtected": false,
36084
- "overloadIndex": 1,
36085
- "parameters": [],
36086
- "isOptional": false,
36087
- "isAbstract": false,
36088
- "name": "stop"
36089
- }
36090
- ],
36091
- "implementsTokenRanges": [
36092
- {
36093
- "startIndex": 1,
36094
- "endIndex": 2
37004
+ "extendsTokenRanges": []
36095
37005
  }
36096
37006
  ]
36097
37007
  },
36098
37008
  {
36099
- "kind": "Class",
36100
- "canonicalReference": "server!WorldLoop:class",
36101
- "docComment": "/**\n * Manages the tick loop for a world.\n *\n * @remarks\n *\n * The world loop automatically handles ticking physics, entities, and other world logic.\n *\n * The internal order of tick operations is as follows:\n *\n * 1. Update chunks and meshing\n *\n * 2. Tick entity logic\n *\n * 3. Step physics\n *\n * 4. Check and emit entity updates\n *\n * 5. Synchronize network packets with player clients\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `WorldLoop` class.\n *\n * @public\n */\n",
37009
+ "kind": "Enum",
37010
+ "canonicalReference": "server!WorldLoopEventType:enum",
37011
+ "docComment": "/**\n * Event types a WorldLoop instance can emit.\n *\n * @public\n */\n",
36102
37012
  "excerptTokens": [
36103
37013
  {
36104
37014
  "kind": "Content",
36105
- "text": "export default class WorldLoop "
37015
+ "text": "export declare enum WorldLoopEventType "
36106
37016
  }
36107
37017
  ],
36108
37018
  "fileUrlPath": "src/world/WorldLoop.ts",
36109
37019
  "releaseTag": "Public",
36110
- "isAbstract": false,
36111
- "name": "WorldLoop",
37020
+ "name": "WorldLoopEventType",
36112
37021
  "preserveMemberOrder": false,
36113
37022
  "members": [
36114
37023
  {
36115
- "kind": "Property",
36116
- "canonicalReference": "server!WorldLoop#currentTick:member",
36117
- "docComment": "/**\n * The current tick of the world loop.\n */\n",
37024
+ "kind": "EnumMember",
37025
+ "canonicalReference": "server!WorldLoopEventType.START:member",
37026
+ "docComment": "",
36118
37027
  "excerptTokens": [
36119
37028
  {
36120
37029
  "kind": "Content",
36121
- "text": "get currentTick(): "
36122
- },
36123
- {
36124
- "kind": "Content",
36125
- "text": "number"
37030
+ "text": "START = "
36126
37031
  },
36127
37032
  {
36128
37033
  "kind": "Content",
36129
- "text": ";"
37034
+ "text": "\"WORLD_LOOP.START\""
36130
37035
  }
36131
37036
  ],
36132
- "isReadonly": true,
36133
- "isOptional": false,
36134
- "releaseTag": "Public",
36135
- "name": "currentTick",
36136
- "propertyTypeTokenRange": {
37037
+ "initializerTokenRange": {
36137
37038
  "startIndex": 1,
36138
37039
  "endIndex": 2
36139
37040
  },
36140
- "isStatic": false,
36141
- "isProtected": false,
36142
- "isAbstract": false
37041
+ "releaseTag": "Public",
37042
+ "name": "START"
36143
37043
  },
36144
37044
  {
36145
- "kind": "Property",
36146
- "canonicalReference": "server!WorldLoop#nextTickMs:member",
36147
- "docComment": "/**\n * The next tick time in milliseconds.\n */\n",
37045
+ "kind": "EnumMember",
37046
+ "canonicalReference": "server!WorldLoopEventType.STOP:member",
37047
+ "docComment": "",
36148
37048
  "excerptTokens": [
36149
37049
  {
36150
37050
  "kind": "Content",
36151
- "text": "get nextTickMs(): "
36152
- },
36153
- {
36154
- "kind": "Content",
36155
- "text": "number"
37051
+ "text": "STOP = "
36156
37052
  },
36157
37053
  {
36158
37054
  "kind": "Content",
36159
- "text": ";"
37055
+ "text": "\"WORLD_LOOP.STOP\""
36160
37056
  }
36161
37057
  ],
36162
- "isReadonly": true,
36163
- "isOptional": false,
36164
- "releaseTag": "Public",
36165
- "name": "nextTickMs",
36166
- "propertyTypeTokenRange": {
37058
+ "initializerTokenRange": {
36167
37059
  "startIndex": 1,
36168
37060
  "endIndex": 2
36169
37061
  },
36170
- "isStatic": false,
36171
- "isProtected": false,
36172
- "isAbstract": false
37062
+ "releaseTag": "Public",
37063
+ "name": "STOP"
36173
37064
  },
36174
37065
  {
36175
- "kind": "Property",
36176
- "canonicalReference": "server!WorldLoop#timestepS:member",
36177
- "docComment": "/**\n * The fixed timestep of the world loop in seconds.\n */\n",
37066
+ "kind": "EnumMember",
37067
+ "canonicalReference": "server!WorldLoopEventType.TICK_END:member",
37068
+ "docComment": "",
36178
37069
  "excerptTokens": [
36179
37070
  {
36180
37071
  "kind": "Content",
36181
- "text": "get timestepS(): "
37072
+ "text": "TICK_END = "
36182
37073
  },
36183
37074
  {
36184
37075
  "kind": "Content",
36185
- "text": "number"
37076
+ "text": "\"WORLD_LOOP.TICK_END\""
37077
+ }
37078
+ ],
37079
+ "initializerTokenRange": {
37080
+ "startIndex": 1,
37081
+ "endIndex": 2
37082
+ },
37083
+ "releaseTag": "Public",
37084
+ "name": "TICK_END"
37085
+ },
37086
+ {
37087
+ "kind": "EnumMember",
37088
+ "canonicalReference": "server!WorldLoopEventType.TICK_ERROR:member",
37089
+ "docComment": "",
37090
+ "excerptTokens": [
37091
+ {
37092
+ "kind": "Content",
37093
+ "text": "TICK_ERROR = "
36186
37094
  },
36187
37095
  {
36188
37096
  "kind": "Content",
36189
- "text": ";"
37097
+ "text": "\"WORLD_LOOP.TICK_ERROR\""
36190
37098
  }
36191
37099
  ],
36192
- "isReadonly": true,
36193
- "isOptional": false,
36194
- "releaseTag": "Public",
36195
- "name": "timestepS",
36196
- "propertyTypeTokenRange": {
37100
+ "initializerTokenRange": {
36197
37101
  "startIndex": 1,
36198
37102
  "endIndex": 2
36199
37103
  },
36200
- "isStatic": false,
36201
- "isProtected": false,
36202
- "isAbstract": false
37104
+ "releaseTag": "Public",
37105
+ "name": "TICK_ERROR"
36203
37106
  },
36204
37107
  {
36205
- "kind": "Property",
36206
- "canonicalReference": "server!WorldLoop#world:member",
36207
- "docComment": "/**\n * The world that the loop manages.\n */\n",
37108
+ "kind": "EnumMember",
37109
+ "canonicalReference": "server!WorldLoopEventType.TICK_START:member",
37110
+ "docComment": "",
36208
37111
  "excerptTokens": [
36209
37112
  {
36210
37113
  "kind": "Content",
36211
- "text": "get world(): "
36212
- },
36213
- {
36214
- "kind": "Reference",
36215
- "text": "World",
36216
- "canonicalReference": "server!World:class"
37114
+ "text": "TICK_START = "
36217
37115
  },
36218
37116
  {
36219
37117
  "kind": "Content",
36220
- "text": ";"
37118
+ "text": "\"WORLD_LOOP.TICK_START\""
36221
37119
  }
36222
37120
  ],
36223
- "isReadonly": true,
36224
- "isOptional": false,
36225
- "releaseTag": "Public",
36226
- "name": "world",
36227
- "propertyTypeTokenRange": {
37121
+ "initializerTokenRange": {
36228
37122
  "startIndex": 1,
36229
37123
  "endIndex": 2
36230
37124
  },
36231
- "isStatic": false,
36232
- "isProtected": false,
36233
- "isAbstract": false
37125
+ "releaseTag": "Public",
37126
+ "name": "TICK_START"
36234
37127
  }
36235
- ],
36236
- "implementsTokenRanges": []
37128
+ ]
36237
37129
  },
36238
37130
  {
36239
37131
  "kind": "Interface",