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§
- conversions π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§
- CharacterContainers π
Constants§
Functions§
- Before creating a character, we ensure that the limit on the number of characters has not been exceeded
- Permanently deletes a character
- delete_pets π
- get_new_entity_ids πNOTE: This relies heavily on serializability to work correctly.
- get_pet_ids π
- 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
- update_pets π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 π