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:
parent
c04cfdf5da
commit
46cf7d4200
2 changed files with 14 additions and 0 deletions
|
@ -264,6 +264,11 @@
|
||||||
"name": "ObjectSpawn",
|
"name": "ObjectSpawn",
|
||||||
"opcode": 425,
|
"opcode": 425,
|
||||||
"size": 64
|
"size": 64
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ActorGauge",
|
||||||
|
"opcode": 424,
|
||||||
|
"size": 16
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"ClientZoneIpcType": [
|
"ClientZoneIpcType": [
|
||||||
|
|
|
@ -441,6 +441,8 @@ pub enum ServerZoneIpcData {
|
||||||
ContentFinderFound2 { unk1: [u8; 8] },
|
ContentFinderFound2 { unk1: [u8; 8] },
|
||||||
#[br(pre_assert(*magic == ServerZoneIpcType::ObjectSpawn))]
|
#[br(pre_assert(*magic == ServerZoneIpcType::ObjectSpawn))]
|
||||||
ObjectSpawn(ObjectSpawn),
|
ObjectSpawn(ObjectSpawn),
|
||||||
|
#[br(pre_assert(*magic == ServerZoneIpcType::ActorGauge))]
|
||||||
|
ActorGauge { classjob_id: u8, data: [u8; 15] },
|
||||||
Unknown {
|
Unknown {
|
||||||
#[br(count = size - 32)]
|
#[br(count = size - 32)]
|
||||||
unk: Vec<u8>,
|
unk: Vec<u8>,
|
||||||
|
@ -881,6 +883,13 @@ mod tests {
|
||||||
ServerZoneIpcType::ObjectSpawn,
|
ServerZoneIpcType::ObjectSpawn,
|
||||||
ServerZoneIpcData::ObjectSpawn(ObjectSpawn::default()),
|
ServerZoneIpcData::ObjectSpawn(ObjectSpawn::default()),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
ServerZoneIpcType::ActorGauge,
|
||||||
|
ServerZoneIpcData::ActorGauge {
|
||||||
|
classjob_id: 0,
|
||||||
|
data: [0; 15],
|
||||||
|
},
|
||||||
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
for (opcode, data) in &ipc_types {
|
for (opcode, data) in &ipc_types {
|
||||||
|
|
Loading…
Add table
Reference in a new issue