- 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:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user