Module veloren_server::persistence::character
source · Expand description
Database operations related to character data
Methods in this module should remain private to the persistence module -
database updates and loading are communicated via requests to the
[CharacterLoader
] and [CharacterUpdater
] while results/responses are
polled and handled each server tick.
Modules
- Private module for very tightly coupled database conversion methods. In general, these have many invariants that need to be maintained when they’re called–do not assume it’s safe to make these public!
Structs
Constants
Functions
- Before creating a character, we ensure that the limit on the number of characters has not been exceeded
- Permanently deletes a character
- NOTE: This relies heavily on serializability to work correctly.
- Fetches the pseudo_container IDs for a character
- Load stored data for a character.
- Loads a list of characters belonging to the player. This data is a small subset of the character’s data, and is used to render the character and their level in the character list.
- Load the inventory/loadout
- Stores new pets in the database, and removes pets from the database that the player no longer has. Currently there are no actual updates to pet data since we don’t store any updatable data about pets in the database.
Type Aliases
- EntityId 🔒