mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-24 03:39:49 +02:00
New: temporarily dump Subtype2F payload in order to investigate it
This commit is contained in:
1 parent
632f1781e7
commit
9d601082d6
1 file changed
+2
-2
@@ -8,7 +8,7 @@ use crate::result::Result;
|
|||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
pub enum EntityMethod {
|
pub enum EntityMethod {
|
||||||
/// TODO: team composition.
|
/// TODO: team composition.
|
||||||
Subtype2F,
|
Subtype2F(#[serde_as(as = "serde_with::hex::Hex")] Vec<u8>),
|
||||||
|
|
||||||
/// Default variant when subtype is not known.
|
/// Default variant when subtype is not known.
|
||||||
Unknown {
|
Unknown {
|
||||||
@@ -28,7 +28,7 @@ impl EntityMethod {
|
|||||||
let sub_type = reader.read_u32::<LittleEndian>()?;
|
let sub_type = reader.read_u32::<LittleEndian>()?;
|
||||||
|
|
||||||
let this = match sub_type {
|
let this = match sub_type {
|
||||||
0x2F => Self::Subtype2F,
|
0x2F => Self::Subtype2F(payload),
|
||||||
_ => Self::Unknown { sub_type, payload },
|
_ => Self::Unknown { sub_type, payload },
|
||||||
};
|
};
|
||||||
Ok(this)
|
Ok(this)
|
||||||
|
|||||||
Reference in new issue
Block a user