- 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

@@ -5,6 +5,7 @@ pub struct ConnectionState {
pub user_id: Option<i32>,
pub session_id: Option<String>,
pub character_id: Option<i8>,
pub character_list: Option<Vec<u8>>,
pub additional_data: HashMap<String, String>, // Flexible data storage
}
@@ -14,6 +15,7 @@ impl ConnectionState {
user_id: None,
session_id: None,
character_id: None,
character_list: None,
additional_data: HashMap::new(),
}
}