aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-04-28 15:49:50 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-04-28 15:49:50 +0200
commit74fccb440d6eb0c9676de829a983322841815c5c (patch)
tree57a291e9065879f580c26f5e27806283d5f86d62
parent2847dae9014fcc59be5b45f78d1b000dc92aa7bc (diff)
downloadevtclib-74fccb440d6eb0c9676de829a983322841815c5c.tar.gz
evtclib-74fccb440d6eb0c9676de829a983322841815c5c.tar.bz2
evtclib-74fccb440d6eb0c9676de829a983322841815c5c.zip
derive Hash for WeaponSet and Activation
-rw-r--r--src/event.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs
index 867276c..305c33b 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -392,7 +392,7 @@ fn get_api_guild_string(bytes: &[u8; 16]) -> Option<String> {
}
/// The different weapon-sets in game.
-#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum WeaponSet {
/// First water weapon set.
Water0,
@@ -426,7 +426,7 @@ impl WeaponSet {
/// The different types to activate a skill.
///
/// The parameter is the animation time in milliseconds.
-#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum Activation {
/// The skill was activated with quickness.
Quickness(i32),