mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-17 10:47:44 +00:00
Add FreeCompanyInfo IPC opcode
This commit is contained in:
parent
8083be24c7
commit
49003a4d89
2 changed files with 21 additions and 0 deletions
|
@ -274,6 +274,11 @@
|
|||
"name": "UpdateSearchInfo",
|
||||
"opcode": 415,
|
||||
"size": 216
|
||||
},
|
||||
{
|
||||
"name": "FreeCompanyInfo",
|
||||
"opcode": 892,
|
||||
"size": 80
|
||||
}
|
||||
],
|
||||
"ClientZoneIpcType": [
|
||||
|
|
|
@ -457,6 +457,8 @@ pub enum ServerZoneIpcData {
|
|||
#[bw(map = write_string)]
|
||||
message: String,
|
||||
},
|
||||
#[br(pre_assert(*magic == ServerZoneIpcType::FreeCompanyInfo))]
|
||||
FreeCompanyInfo { unk: [u8; 80] },
|
||||
Unknown {
|
||||
#[br(count = size - 32)]
|
||||
unk: Vec<u8>,
|
||||
|
@ -904,6 +906,20 @@ mod tests {
|
|||
data: [0; 15],
|
||||
},
|
||||
),
|
||||
(
|
||||
ServerZoneIpcType::UpdateSearchInfo,
|
||||
ServerZoneIpcData::UpdateSearchInfo {
|
||||
online_status_flags: 0,
|
||||
unk1: 0,
|
||||
unk2: 0,
|
||||
region: 0,
|
||||
message: String::default(),
|
||||
},
|
||||
),
|
||||
(
|
||||
ServerZoneIpcType::FreeCompanyInfo,
|
||||
ServerZoneIpcData::FreeCompanyInfo { unk: [0; 80] },
|
||||
),
|
||||
];
|
||||
|
||||
for (opcode, data) in &ipc_types {
|
||||
|
|
Loading…
Add table
Reference in a new issue