From df94ea735a28f5422ab7c7b4210eb99f67ca133f Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 8 Dec 2020 11:45:43 +0100 Subject: add CBTS_BARRIERUPDATE statechange --- src/event.rs | 3 ++- src/raw/types.rs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3