aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-12-08 11:45:43 +0100
committerDaniel Schadt <kingdread@gmx.de>2020-12-08 11:45:43 +0100
commitdf94ea735a28f5422ab7c7b4210eb99f67ca133f (patch)
treea9a08ebe1ea1ca9c0bee638a675f953697876423
parent4425f230e7f3fae010a9316886eab7f960d3669c (diff)
downloadevtclib-df94ea735a28f5422ab7c7b4210eb99f67ca133f.tar.gz
evtclib-df94ea735a28f5422ab7c7b4210eb99f67ca133f.tar.bz2
evtclib-df94ea735a28f5422ab7c7b4210eb99f67ca133f.zip
add CBTS_BARRIERUPDATE statechange
-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 {