From a2c77bd2f8110c505464077c22d489d6a6d4c8c8 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 19 May 2020 15:24:28 +0200 Subject: add CbtStateChange::Unknown This is not defined by arcdps, but we'd have to adjust evtclib every time a new statechange is introduced. This way, we stay forward-compatible. --- src/event.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index cf2a42f..df0d5d3 100644 --- a/src/event.rs +++ b/src/event.rs @@ -365,7 +365,8 @@ impl TryFrom<&raw::CbtEvent> for Event { | CbtStateChange::SkillTiming | CbtStateChange::BreakbarState | CbtStateChange::BreakbarPercent - | CbtStateChange::Error => { + | CbtStateChange::Error + | CbtStateChange::Unknown => { return Err(FromRawEventError::UnknownStateChange( raw_event.is_statechange, )) -- cgit v1.2.3