aboutsummaryrefslogtreecommitdiff
path: root/src/raw/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/raw/parser.rs')
-rw-r--r--src/raw/parser.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/raw/parser.rs b/src/raw/parser.rs
index dcc7f2f..00ca85e 100644
--- a/src/raw/parser.rs
+++ b/src/raw/parser.rs
@@ -122,6 +122,17 @@ pub struct PartialEvtc {
pub skills: Vec<Skill>,
}
+impl From<Evtc> for PartialEvtc {
+ fn from(evtc: Evtc) -> Self {
+ Self {
+ header: evtc.header,
+ skill_count: evtc.skill_count,
+ agents: evtc.agents,
+ skills: evtc.skills,
+ }
+ }
+}
+
/// Any error that can occur during parsing.
#[derive(Error, Debug)]
pub enum ParseError {