From d995183a299305224863c4f24344acbd06b22bbd Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 19 May 2020 15:09:39 +0200 Subject: add BreakbarState, BreakbarPercent & Error states --- src/event.rs | 5 ++++- src/raw/types.rs | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3