mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-22 23:27:46 +00:00
Extract sequence number from the lobby character action packet
This commit is contained in:
parent
7315ece194
commit
ff9bcb255d
2 changed files with 4 additions and 4 deletions
|
@ -71,6 +71,7 @@ async fn main() {
|
|||
connection.send_lobby_info(*sequence).await;
|
||||
}
|
||||
ClientLobbyIpcData::LobbyCharacterAction {
|
||||
sequence,
|
||||
action,
|
||||
name,
|
||||
json,
|
||||
|
@ -120,7 +121,7 @@ async fn main() {
|
|||
server_id: 0,
|
||||
timestamp: 0,
|
||||
data: ServerLobbyIpcData::CharacterCreated {
|
||||
sequence: 0x4, // TODO: haha no
|
||||
sequence: *sequence + 1,
|
||||
unk: 0x00010101,
|
||||
details: CharacterDetails {
|
||||
content_id: CONTENT_ID,
|
||||
|
@ -160,7 +161,7 @@ async fn main() {
|
|||
server_id: 0,
|
||||
timestamp: 0,
|
||||
data: ServerLobbyIpcData::CharacterCreated {
|
||||
sequence: 0x5,
|
||||
sequence: *sequence + 1,
|
||||
unk: 0x00020101,
|
||||
details: CharacterDetails {
|
||||
id: 0x07369f3a, // notice that we give them an id now
|
||||
|
|
|
@ -147,8 +147,7 @@ pub enum ClientLobbyIpcData {
|
|||
},
|
||||
#[br(pre_assert(*magic == ClientLobbyIpcType::LobbyCharacterAction))]
|
||||
LobbyCharacterAction {
|
||||
request_number: u32,
|
||||
unk1: u32,
|
||||
sequence: u64,
|
||||
character_id: u64,
|
||||
#[br(pad_before = 8)]
|
||||
character_index: u8,
|
||||
|
|
Loading…
Add table
Reference in a new issue