hytopia 0.10.15 → 0.10.16

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.
@@ -19,5 +19,5 @@ The persisted data for the player.
19
19
 
20
20
  ## Remarks
21
21
 
22
- This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately.
22
+ This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately. If it returns an empty object {<!-- -->}<!-- -->, the player data loaded successfully but no prior data has been set.
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
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
@@ -35578,7 +35578,7 @@
35578
35578
  {
35579
35579
  "kind": "Method",
35580
35580
  "canonicalReference": "server!Player#getPersistedData:member(1)",
35581
- "docComment": "/**\n * Get the persisted data for the player.\n *\n * @remarks\n *\n * This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately.\n *\n * @returns The persisted data for the player.\n */\n",
35581
+ "docComment": "/**\n * Get the persisted data for the player.\n *\n * @remarks\n *\n * This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately. If it returns an empty object {}, the player data loaded successfully but no prior data has been set.\n *\n * @returns The persisted data for the player.\n */\n",
35582
35582
  "excerptTokens": [
35583
35583
  {
35584
35584
  "kind": "Content",
package/server.d.ts CHANGED
@@ -4406,7 +4406,9 @@ export declare class Player extends EventRouter implements protocol.Serializable
4406
4406
  * @remarks
4407
4407
  * This method returns the player persisted data. If it returns
4408
4408
  * undefined, the player data failed to load and your game
4409
- * logic should handle this case appropriately.
4409
+ * logic should handle this case appropriately. If it returns
4410
+ * an empty object {}, the player data loaded successfully but
4411
+ * no prior data has been set.
4410
4412
  *
4411
4413
  * @returns The persisted data for the player.
4412
4414
  */