aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/event.rs3
-rw-r--r--src/raw/types.rs3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs
index f90ed3a..150c60b 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -390,7 +390,8 @@ impl TryFrom<&raw::CbtEvent> for Event {
| CbtStateChange::SkillInfo
| CbtStateChange::SkillTiming
| CbtStateChange::BreakbarState
- | CbtStateChange::BreakbarPercent => {
+ | CbtStateChange::BreakbarPercent
+ | CbtStateChange::BarrierUpdate => {
return Err(FromRawEventError::UnknownStateChange(
raw_event.is_statechange,
))
diff --git a/src/raw/types.rs b/src/raw/types.rs
index 0f840bd..514a8d2 100644
--- a/src/raw/types.rs
+++ b/src/raw/types.rs
@@ -207,6 +207,9 @@ pub enum CbtStateChange {
Error,
/// `src_agent` is the agent, `value` is the tag id
Tag,
+ /// `src_agent` is at barrier percent, `dst_agent` is the percentage times 10000 (so 99.5%
+ /// will be 9950).
+ BarrierUpdate,
}
impl Default for CbtStateChange {