aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-05-19 15:24:28 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-05-19 15:24:28 +0200
commita2c77bd2f8110c505464077c22d489d6a6d4c8c8 (patch)
treefd0b7710f22e095c8120584a60cca5ca687debf6 /src/event.rs
parent0c14e920aec0d28d0145766670bb0ac6c5d58263 (diff)
downloadevtclib-a2c77bd2f8110c505464077c22d489d6a6d4c8c8.tar.gz
evtclib-a2c77bd2f8110c505464077c22d489d6a6d4c8c8.tar.bz2
evtclib-a2c77bd2f8110c505464077c22d489d6a6d4c8c8.zip
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.
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs3
1 files changed, 2 insertions, 1 deletions
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,
))