1
Fork 0
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:
Joshua Goins 2025-07-13 09:05:22 -04:00
parent 8083be24c7
commit 49003a4d89
2 changed files with 21 additions and 0 deletions

View file

@ -274,6 +274,11 @@
"name": "UpdateSearchInfo",
"opcode": 415,
"size": 216
},
{
"name": "FreeCompanyInfo",
"opcode": 892,
"size": 80
}
],
"ClientZoneIpcType": [

View file

@ -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 {