hytopia 0.10.21 → 0.10.22

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.
@@ -9,7 +9,7 @@ Set global data in the data persistence service. This data is available and shar
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- setGlobalData(key: string, data: Record<string, unknown>): Promise<Record<string, unknown> | undefined>;
12
+ setGlobalData(key: string, data: Record<string, unknown>): Promise<void>;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -66,5 +66,5 @@ The data to set.
66
66
 
67
67
  **Returns:**
68
68
 
69
- Promise&lt;Record&lt;string, unknown&gt; \| undefined&gt;
69
+ Promise&lt;void&gt;
70
70
 
@@ -9,7 +9,7 @@ Set the persisted data for the player. This data can later be retrieved using [P
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- setPersistedData(data: Record<string, unknown>): Record<string, unknown>;
12
+ setPersistedData(data: Record<string, unknown>): void;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -50,7 +50,7 @@ The data to set.
50
50
 
51
51
  **Returns:**
52
52
 
53
- Record&lt;string, unknown&gt;
53
+ void
54
54
 
55
55
  The persisted data for the player.
56
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.10.21",
3
+ "version": "0.10.22",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./server.mjs",
package/server.api.json CHANGED
@@ -35443,16 +35443,7 @@
35443
35443
  },
35444
35444
  {
35445
35445
  "kind": "Content",
35446
- "text": "<"
35447
- },
35448
- {
35449
- "kind": "Reference",
35450
- "text": "Record",
35451
- "canonicalReference": "!Record:type"
35452
- },
35453
- {
35454
- "kind": "Content",
35455
- "text": "<string, unknown> | undefined>"
35446
+ "text": "<void>"
35456
35447
  },
35457
35448
  {
35458
35449
  "kind": "Content",
@@ -35462,7 +35453,7 @@
35462
35453
  "isStatic": false,
35463
35454
  "returnTypeTokenRange": {
35464
35455
  "startIndex": 6,
35465
- "endIndex": 10
35456
+ "endIndex": 8
35466
35457
  },
35467
35458
  "releaseTag": "Public",
35468
35459
  "isProtected": false,
@@ -35861,14 +35852,9 @@
35861
35852
  "kind": "Content",
35862
35853
  "text": "): "
35863
35854
  },
35864
- {
35865
- "kind": "Reference",
35866
- "text": "Record",
35867
- "canonicalReference": "!Record:type"
35868
- },
35869
35855
  {
35870
35856
  "kind": "Content",
35871
- "text": "<string, unknown>"
35857
+ "text": "void"
35872
35858
  },
35873
35859
  {
35874
35860
  "kind": "Content",
@@ -35878,7 +35864,7 @@
35878
35864
  "isStatic": false,
35879
35865
  "returnTypeTokenRange": {
35880
35866
  "startIndex": 4,
35881
- "endIndex": 6
35867
+ "endIndex": 5
35882
35868
  },
35883
35869
  "releaseTag": "Public",
35884
35870
  "isProtected": false,
package/server.d.ts CHANGED
@@ -4345,6 +4345,8 @@ export declare type PathfindingOptions = {
4345
4345
  */
4346
4346
  export declare class PersistenceManager {
4347
4347
  static readonly instance: PersistenceManager;
4348
+ private _saveStatesClient;
4349
+ private _playerData;
4348
4350
 
4349
4351
  /**
4350
4352
  * Get global data from the data persistence service.
@@ -4360,7 +4362,7 @@ export declare class PersistenceManager {
4360
4362
  * @param key - The key to set the data to.
4361
4363
  * @param data - The data to set.
4362
4364
  */
4363
- setGlobalData(key: string, data: Record<string, unknown>): Promise<Record<string, unknown> | undefined>;
4365
+ setGlobalData(key: string, data: Record<string, unknown>): Promise<void>;
4364
4366
 
4365
4367
 
4366
4368
  }
@@ -4456,7 +4458,7 @@ export declare class Player extends EventRouter implements protocol.Serializable
4456
4458
  * @param data - The data to set.
4457
4459
  * @returns The persisted data for the player.
4458
4460
  */
4459
- setPersistedData(data: Record<string, unknown>): Record<string, unknown>;
4461
+ setPersistedData(data: Record<string, unknown>): void;
4460
4462
 
4461
4463
 
4462
4464