hytopia 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/docs/server.hytopia.md +22 -0
- package/docs/server.hytopia.worldloopeventpayload.md +73 -0
- package/docs/server.hytopia.worldloopeventpayload.start.md +53 -0
- package/docs/server.hytopia.worldloopeventpayload.start.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.stop.md +53 -0
- package/docs/server.hytopia.worldloopeventpayload.stop.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickend.md +70 -0
- package/docs/server.hytopia.worldloopeventpayload.tickend.tickdurationms.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickend.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickerror.error.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickerror.md +70 -0
- package/docs/server.hytopia.worldloopeventpayload.tickerror.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickstart.md +70 -0
- package/docs/server.hytopia.worldloopeventpayload.tickstart.tickdeltams.md +11 -0
- package/docs/server.hytopia.worldloopeventpayload.tickstart.worldloop.md +11 -0
- package/docs/server.hytopia.worldloopeventtype.md +103 -0
- package/docs/server.md +22 -0
- package/docs/server.worldloopeventpayload.md +73 -0
- package/docs/server.worldloopeventpayload.start.md +53 -0
- package/docs/server.worldloopeventpayload.start.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.stop.md +53 -0
- package/docs/server.worldloopeventpayload.stop.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.tickend.md +70 -0
- package/docs/server.worldloopeventpayload.tickend.tickdurationms.md +11 -0
- package/docs/server.worldloopeventpayload.tickend.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.tickerror.error.md +11 -0
- package/docs/server.worldloopeventpayload.tickerror.md +70 -0
- package/docs/server.worldloopeventpayload.tickerror.worldloop.md +11 -0
- package/docs/server.worldloopeventpayload.tickstart.md +70 -0
- package/docs/server.worldloopeventpayload.tickstart.tickdeltams.md +11 -0
- package/docs/server.worldloopeventpayload.tickstart.worldloop.md +11 -0
- package/docs/server.worldloopeventtype.md +103 -0
- package/package.json +1 -1
- package/server.api.json +1082 -190
- package/server.d.ts +34 -1
- 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 */
|