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§
- Character
Containers π
Constants§
- CHARACTER_
PSEUDO_ πCONTAINER_ DEF_ ID - INVENTORY_
PSEUDO_ πCONTAINER_ DEF_ ID - INVENTORY_
PSEUDO_ πCONTAINER_ POSITION - LOADOUT_
PSEUDO_ πCONTAINER_ DEF_ ID - LOADOUT_
PSEUDO_ πCONTAINER_ POSITION - OVERFLOW_
ITEMS_ πPSEUDO_ CONTAINER_ DEF_ ID - OVERFLOW_
ITEMS_ πPSEUDO_ CONTAINER_ POSITION - RECIPE_
BOOK_ πPSEUDO_ CONTAINER_ DEF_ ID - RECIPE_
BOOK_ πPSEUDO_ CONTAINER_ POSITION - WORLD_
PSEUDO_ πCONTAINER_ ID
Functions§
- check_
character_ limit - Before creating a character, we ensure that the limit on the number of characters has not been exceeded
- create_
character - delete_
character - Permanently deletes a character
- delete_
pets π - edit_
character - get_
new_ πentity_ ids - NOTE: This relies heavily on serializability to work correctly.
- get_
pet_ πids - get_
pseudo_ πcontainer_ id - get_
pseudo_ πcontainers - Fetches the pseudo_container IDs for a character
- load_
character_ data - Load stored data for a character.
- load_
character_ list - 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_
items - Load the inventory/loadout
- update
- 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§
- Entity
Id π