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.d.ts CHANGED
@@ -1622,7 +1622,9 @@ declare namespace HYTOPIA {
1622
1622
  World,
1623
1623
  WorldMap,
1624
1624
  WorldOptions,
1625
- WorldLoop
1625
+ WorldLoop,
1626
+ WorldLoopEventType,
1627
+ WorldLoopEventPayload
1626
1628
  }
1627
1629
  }
1628
1630
  export default HYTOPIA;
@@ -2539,6 +2541,37 @@ export declare class WorldLoop {
2539
2541
 
2540
2542
 
2541
2543
 
2544
+ }
2545
+
2546
+ /** Payloads for events emitted by a WorldLoop instance. @public */
2547
+ export declare namespace WorldLoopEventPayload {
2548
+ export interface Start {
2549
+ worldLoop: WorldLoop;
2550
+ }
2551
+ export interface Stop {
2552
+ worldLoop: WorldLoop;
2553
+ }
2554
+ export interface TickStart {
2555
+ worldLoop: WorldLoop;
2556
+ tickDeltaMs: number;
2557
+ }
2558
+ export interface TickEnd {
2559
+ worldLoop: WorldLoop;
2560
+ tickDurationMs: number;
2561
+ }
2562
+ export interface TickError {
2563
+ worldLoop: WorldLoop;
2564
+ error: Error;
2565
+ }
2566
+ }
2567
+
2568
+ /** Event types a WorldLoop instance can emit. @public */
2569
+ export declare enum WorldLoopEventType {
2570
+ START = "WORLD_LOOP.START",
2571
+ STOP = "WORLD_LOOP.STOP",
2572
+ TICK_START = "WORLD_LOOP.TICK_START",
2573
+ TICK_END = "WORLD_LOOP.TICK_END",
2574
+ TICK_ERROR = "WORLD_LOOP.TICK_ERROR"
2542
2575
  }
2543
2576
 
2544
2577
  /** A map representation for a world. @public */