Home > server > PersistenceManager
Manages persistence of player and global data.
Signature:
export default class PersistenceManager This class is a singleton accessible with the static property PersistenceManager.instance. Convenience methods are also available on the Player and GameServer classes.
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.
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
|
Method |
Modifiers |
Description |
|---|---|---|
|
Get global data from the data persistence service. | ||
|
Get player data from the data persistence service. | ||
|
Set global data in the data persistence service. This data is available and shared by all lobbies of your game. | ||
|
Set player data in the data persistence service. This data is persisted even after a player disconnects, and is retrievable no matter the lobby for your game that they join. |