hytopia 0.6.21 → 0.6.23
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.
- package/bun-server.mjs +31 -31
- package/docs/server.player.getpersisteddata.md +3 -3
- package/docs/server.player.setpersisteddata.md +2 -2
- package/node-server.mjs +34 -34
- package/package.json +1 -1
- package/server.api.json +5 -23
- package/server.d.ts +5 -4
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -29461,21 +29461,12 @@
|
|
29461
29461
|
{
|
29462
29462
|
"kind": "Method",
|
29463
29463
|
"canonicalReference": "server!Player#getPersistedData:member(1)",
|
29464
|
-
"docComment": "/**\n * Get the persisted data for the player.\n *\n * @remarks\n *\n * This method
|
29464
|
+
"docComment": "/**\n * Get the persisted data for the player.\n *\n * @remarks\n *\n * This method returns the player persisted data.\n *\n * @returns The persisted data for the player.\n */\n",
|
29465
29465
|
"excerptTokens": [
|
29466
29466
|
{
|
29467
29467
|
"kind": "Content",
|
29468
29468
|
"text": "getPersistedData(): "
|
29469
29469
|
},
|
29470
|
-
{
|
29471
|
-
"kind": "Reference",
|
29472
|
-
"text": "Promise",
|
29473
|
-
"canonicalReference": "!Promise:interface"
|
29474
|
-
},
|
29475
|
-
{
|
29476
|
-
"kind": "Content",
|
29477
|
-
"text": "<"
|
29478
|
-
},
|
29479
29470
|
{
|
29480
29471
|
"kind": "Reference",
|
29481
29472
|
"text": "Record",
|
@@ -29483,7 +29474,7 @@
|
|
29483
29474
|
},
|
29484
29475
|
{
|
29485
29476
|
"kind": "Content",
|
29486
|
-
"text": "<string, unknown> |
|
29477
|
+
"text": "<string, unknown> | undefined"
|
29487
29478
|
},
|
29488
29479
|
{
|
29489
29480
|
"kind": "Content",
|
@@ -29493,7 +29484,7 @@
|
|
29493
29484
|
"isStatic": false,
|
29494
29485
|
"returnTypeTokenRange": {
|
29495
29486
|
"startIndex": 1,
|
29496
|
-
"endIndex":
|
29487
|
+
"endIndex": 3
|
29497
29488
|
},
|
29498
29489
|
"releaseTag": "Public",
|
29499
29490
|
"isProtected": false,
|
@@ -29696,15 +29687,6 @@
|
|
29696
29687
|
"kind": "Content",
|
29697
29688
|
"text": "): "
|
29698
29689
|
},
|
29699
|
-
{
|
29700
|
-
"kind": "Reference",
|
29701
|
-
"text": "Promise",
|
29702
|
-
"canonicalReference": "!Promise:interface"
|
29703
|
-
},
|
29704
|
-
{
|
29705
|
-
"kind": "Content",
|
29706
|
-
"text": "<"
|
29707
|
-
},
|
29708
29690
|
{
|
29709
29691
|
"kind": "Reference",
|
29710
29692
|
"text": "Record",
|
@@ -29712,7 +29694,7 @@
|
|
29712
29694
|
},
|
29713
29695
|
{
|
29714
29696
|
"kind": "Content",
|
29715
|
-
"text": "<string, unknown>
|
29697
|
+
"text": "<string, unknown>"
|
29716
29698
|
},
|
29717
29699
|
{
|
29718
29700
|
"kind": "Content",
|
@@ -29722,7 +29704,7 @@
|
|
29722
29704
|
"isStatic": false,
|
29723
29705
|
"returnTypeTokenRange": {
|
29724
29706
|
"startIndex": 4,
|
29725
|
-
"endIndex":
|
29707
|
+
"endIndex": 6
|
29726
29708
|
},
|
29727
29709
|
"releaseTag": "Public",
|
29728
29710
|
"isProtected": false,
|
package/server.d.ts
CHANGED
@@ -3771,6 +3771,7 @@ export declare class Player extends EventRouter implements protocol.Serializable
|
|
3771
3771
|
|
3772
3772
|
|
3773
3773
|
|
3774
|
+
|
3774
3775
|
/** The current {@link PlayerInput} of the player. */
|
3775
3776
|
get input(): PlayerInput;
|
3776
3777
|
/** The current {@link World} the player is in. */
|
@@ -3783,12 +3784,11 @@ export declare class Player extends EventRouter implements protocol.Serializable
|
|
3783
3784
|
* Get the persisted data for the player.
|
3784
3785
|
*
|
3785
3786
|
* @remarks
|
3786
|
-
* This method
|
3787
|
-
* resolves to the player data.
|
3787
|
+
* This method returns the player persisted data.
|
3788
3788
|
*
|
3789
3789
|
* @returns The persisted data for the player.
|
3790
3790
|
*/
|
3791
|
-
getPersistedData():
|
3791
|
+
getPersistedData(): Record<string, unknown> | undefined;
|
3792
3792
|
/**
|
3793
3793
|
* Joins a player to a world.
|
3794
3794
|
*
|
@@ -3801,6 +3801,7 @@ export declare class Player extends EventRouter implements protocol.Serializable
|
|
3801
3801
|
*/
|
3802
3802
|
joinWorld(world: World): void;
|
3803
3803
|
|
3804
|
+
|
3804
3805
|
/**
|
3805
3806
|
* Resets all inputs keys
|
3806
3807
|
*/
|
@@ -3818,7 +3819,7 @@ export declare class Player extends EventRouter implements protocol.Serializable
|
|
3818
3819
|
* @param data - The data to set.
|
3819
3820
|
* @returns The persisted data for the player.
|
3820
3821
|
*/
|
3821
|
-
setPersistedData(data: Record<string, unknown>):
|
3822
|
+
setPersistedData(data: Record<string, unknown>): Record<string, unknown>;
|
3822
3823
|
|
3823
3824
|
|
3824
3825
|
|