diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-05-19 15:09:39 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-05-19 15:09:39 +0200 |
commit | d995183a299305224863c4f24344acbd06b22bbd (patch) | |
tree | ce7195534b943bfbfb0965d4976cd671177d1c3b /src | |
parent | 6aea177d76a8ba67a9902740706abeb03f4cf6da (diff) | |
download | evtclib-d995183a299305224863c4f24344acbd06b22bbd.tar.gz evtclib-d995183a299305224863c4f24344acbd06b22bbd.tar.bz2 evtclib-d995183a299305224863c4f24344acbd06b22bbd.zip |
add BreakbarState, BreakbarPercent & Error states
Diffstat (limited to 'src')
-rw-r--r-- | src/event.rs | 5 | ||||
-rw-r--r-- | src/raw/types.rs | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs index 072c7d5..cf2a42f 100644 --- a/src/event.rs +++ b/src/event.rs @@ -362,7 +362,10 @@ impl TryFrom<&raw::CbtEvent> for Event { | CbtStateChange::BuffInfo | CbtStateChange::BuffFormula | CbtStateChange::SkillInfo - | CbtStateChange::SkillTiming => { + | CbtStateChange::SkillTiming + | CbtStateChange::BreakbarState + | CbtStateChange::BreakbarPercent + | CbtStateChange::Error => { return Err(FromRawEventError::UnknownStateChange( raw_event.is_statechange, )) diff --git a/src/raw/types.rs b/src/raw/types.rs index f5399f3..360ed7f 100644 --- a/src/raw/types.rs +++ b/src/raw/types.rs @@ -195,6 +195,12 @@ pub enum CbtStateChange { SkillInfo, /// `src_agent` = action, `dst_agent` = at millisecond (not in realtime, one per timing) SkillTiming, + /// `src_agent` is agent, `value` is u16 game enum (active, recover, immune, none) + BreakbarState, + /// `src_agent` is agent, `value` is float with percent + BreakbarPercent, + /// `time` is the start of the error string. + Error, } impl Default for CbtStateChange { |