aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-12-11 21:36:53 +0100
committerDaniel Schadt <kingdread@gmx.de>2020-12-11 21:36:53 +0100
commit172c17db58f6a57d0867778e98a7d69430e0d3d0 (patch)
tree1dbbe425077bf39866ec594c23d2dded4139965c /src
parente04b12aebb2b5707d4af53d047ca20660b441f3f (diff)
downloadevtclib-172c17db58f6a57d0867778e98a7d69430e0d3d0.tar.gz
evtclib-172c17db58f6a57d0867778e98a7d69430e0d3d0.tar.bz2
evtclib-172c17db58f6a57d0867778e98a7d69430e0d3d0.zip
add comment about ReplInfo
Diffstat (limited to 'src')
-rw-r--r--src/event.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs
index ba415c1..8004002 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -21,6 +21,8 @@ pub enum FromRawEventError {
UnknownDamageEvent,
#[error("the event contains invalid text")]
InvalidText,
+ #[error("an unexpected REPLINFO was found")]
+ UnexpectedReplInfo,
}
/// A rusty enum for all possible combat events.
@@ -394,9 +396,11 @@ impl TryFrom<&raw::CbtEvent> for Event {
buff_id: raw_event.skillid,
duration: raw_event.value,
},
+ // The README says "internal use, won't see anywhere", so if we find one, we treat it
+ // as an error.
+ CbtStateChange::ReplInfo => return Err(FromRawEventError::UnexpectedReplInfo),
// XXX: implement proper handling of those events!
- CbtStateChange::ReplInfo
- | CbtStateChange::StackActive
+ CbtStateChange::StackActive
| CbtStateChange::StackReset
| CbtStateChange::BuffInfo
| CbtStateChange::BuffFormula