aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-05-19 15:09:39 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-05-19 15:09:39 +0200
commitd995183a299305224863c4f24344acbd06b22bbd (patch)
treece7195534b943bfbfb0965d4976cd671177d1c3b /src
parent6aea177d76a8ba67a9902740706abeb03f4cf6da (diff)
downloadevtclib-d995183a299305224863c4f24344acbd06b22bbd.tar.gz
evtclib-d995183a299305224863c4f24344acbd06b22bbd.tar.bz2
evtclib-d995183a299305224863c4f24344acbd06b22bbd.zip
add BreakbarState, BreakbarPercent & Error states
Diffstat (limited to 'src')
-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 {