aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event.rs5
-rw-r--r--src/raw/types.rs6
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 {