1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-17 10:47:44 +00:00

Add ActorGauge IPC opcode

This commit is contained in:
Joshua Goins 2025-07-13 08:58:46 -04:00
parent c04cfdf5da
commit 46cf7d4200
2 changed files with 14 additions and 0 deletions

View file

@ -264,6 +264,11 @@
"name": "ObjectSpawn",
"opcode": 425,
"size": 64
},
{
"name": "ActorGauge",
"opcode": 424,
"size": 16
}
],
"ClientZoneIpcType": [

View file

@ -441,6 +441,8 @@ pub enum ServerZoneIpcData {
ContentFinderFound2 { unk1: [u8; 8] },
#[br(pre_assert(*magic == ServerZoneIpcType::ObjectSpawn))]
ObjectSpawn(ObjectSpawn),
#[br(pre_assert(*magic == ServerZoneIpcType::ActorGauge))]
ActorGauge { classjob_id: u8, data: [u8; 15] },
Unknown {
#[br(count = size - 32)]
unk: Vec<u8>,
@ -881,6 +883,13 @@ mod tests {
ServerZoneIpcType::ObjectSpawn,
ServerZoneIpcData::ObjectSpawn(ObjectSpawn::default()),
),
(
ServerZoneIpcType::ActorGauge,
ServerZoneIpcData::ActorGauge {
classjob_id: 0,
data: [0; 15],
},
),
];
for (opcode, data) in &ipc_types {