1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

handle spec chat

This commit is contained in:
Robin Appelman 2019-03-05 23:16:54 +01:00
commit a0322d9885
2 changed files with 10 additions and 7 deletions

View file

@ -109,6 +109,8 @@ pub enum ChatMessageKind {
ChatAllDead,
#[serde(rename = "TF_Chat_Team_Dead")]
ChatTeamDead,
#[serde(rename = "TF_Chat_AllSpec")]
ChatAllSpec,
NameChange,
}
@ -121,7 +123,8 @@ impl BitRead<LittleEndian> for ChatMessageKind {
"TF_Chat_Team_Dead" => ChatMessageKind::ChatTeamDead,
"#TF_Name_Change" => ChatMessageKind::NameChange,
"TF_Chat_All" => ChatMessageKind::ChatAll,
_ => unreachable!("unknown chat kind"),
"TF_Chat_AllSpec" => ChatMessageKind::ChatAllSpec,
_ => ChatMessageKind::ChatAll,
})
}
}