- add: Character service now loads the data from the database and sends it in the character list packet

- add: character id list to the connection state for tracking the real character database id's for when the client requests actions on the character
- fix: sql error when trying to create a character
This commit is contained in:
2025-01-07 22:16:47 -05:00
parent cb6ee657f0
commit db868cc1ac
9 changed files with 117 additions and 62 deletions

View File

@@ -21,8 +21,6 @@ impl CharacterService for MyDatabaseService {
id: character.id,
user_id: character.user_id,
name: character.name,
level: character.level as i32,
experience: character.experience,
inventory: character.inventory.to_string(),
stats: character.stats.to_string(),
looks: character.looks.to_string(),
@@ -54,8 +52,6 @@ impl CharacterService for MyDatabaseService {
id: character.id,
user_id: character.user_id,
name: character.name,
level: character.level as i32,
experience: character.experience,
inventory: character.inventory.to_string(),
stats: character.stats.to_string(),
looks: character.looks.to_string(),