hytopia 0.3.3 → 0.3.5
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/docs/server.persistencemanager.md +2 -0
- package/package.json +1 -1
- package/server.api.json +1 -1
- package/server.d.ts +2 -0
- package/server.js +116 -116
@@ -16,6 +16,8 @@ export default class PersistenceManager
|
|
16
16
|
|
17
17
|
This class is a singleton accessible with the static property `PersistenceManager.instance`<!-- -->. Convenience methods are also available on the `Player` and `GameServer` classes.
|
18
18
|
|
19
|
+
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `PersistenceManager` class.
|
20
|
+
|
19
21
|
## Properties
|
20
22
|
|
21
23
|
<table><thead><tr><th>
|
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -23386,7 +23386,7 @@
|
|
23386
23386
|
{
|
23387
23387
|
"kind": "Class",
|
23388
23388
|
"canonicalReference": "server!PersistenceManager:class",
|
23389
|
-
"docComment": "/**\n * Manages persistence of player and global data.\n *\n * @remarks\n *\n * This class is a singleton accessible with the static property `PersistenceManager.instance`. Convenience methods are also available on the `Player` and `GameServer` classes.\n *\n * @public\n */\n",
|
23389
|
+
"docComment": "/**\n * Manages persistence of player and global data.\n *\n * @remarks\n *\n * This class is a singleton accessible with the static property `PersistenceManager.instance`. Convenience methods are also available on the `Player` and `GameServer` classes.\n *\n * The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `PersistenceManager` class.\n *\n * @public\n */\n",
|
23390
23390
|
"excerptTokens": [
|
23391
23391
|
{
|
23392
23392
|
"kind": "Content",
|
package/server.d.ts
CHANGED
@@ -3013,6 +3013,7 @@ export declare type PathfindingOptions = {
|
|
3013
3013
|
*/
|
3014
3014
|
export declare class PersistenceManager {
|
3015
3015
|
static readonly instance: PersistenceManager;
|
3016
|
+
|
3016
3017
|
/**
|
3017
3018
|
* Get global data from the data persistence service.
|
3018
3019
|
* @param key - The key to get the data from.
|
@@ -3060,6 +3061,7 @@ export declare class PersistenceManager {
|
|
3060
3061
|
* @public
|
3061
3062
|
*/
|
3062
3063
|
export declare class Player extends EventRouter implements protocol.Serializable {
|
3064
|
+
|
3063
3065
|
/** The unique HYTOPIA UUID for the player. */
|
3064
3066
|
readonly id: string;
|
3065
3067
|
/** The unique HYTOPIA username for the player. */
|