aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs
index 971a1a3..d0d3181 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -182,6 +182,12 @@ pub enum EventKind {
/// An error was reported by arcdps.
Error { text: String },
+
+ /// The given agent has the tag.
+ ///
+ /// Note that the tag id is volatile and depends on the game build. Do not rely on the actual
+ /// value of this!
+ Tag { agent_addr: u64, tag_id: i32 },
}
/// A higher-level representation of a combat event.
@@ -368,6 +374,10 @@ impl TryFrom<&raw::CbtEvent> for Event {
.into_owned(),
}
}
+ CbtStateChange::Tag => EventKind::Tag {
+ agent_addr: raw_event.src_agent,
+ tag_id: raw_event.value,
+ },
// XXX: implement proper handling of those events!
CbtStateChange::BuffInitial
| CbtStateChange::ReplInfo