aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-10-15 13:45:58 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-10-15 13:45:58 +0200
commitd37b0e6ee5725ceb23a2546e1e673026e5d09cd9 (patch)
treef1c5d0ed0c14f03f7ccd83c2bd56f849cc5c8a0c /src
parent077831e4cf6adf1b8ed2ec64f51004b8e6cee8f4 (diff)
downloadevtclib-d37b0e6ee5725ceb23a2546e1e673026e5d09cd9.tar.gz
evtclib-d37b0e6ee5725ceb23a2546e1e673026e5d09cd9.tar.bz2
evtclib-d37b0e6ee5725ceb23a2546e1e673026e5d09cd9.zip
derive FromPrimitive for Boss
Makes it easier to deal with boss ids, as they are usually given in numeric form.
Diffstat (limited to 'src')
-rw-r--r--src/statistics/gamedata.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statistics/gamedata.rs b/src/statistics/gamedata.rs
index 9aaf9d7..1b4c4e2 100644
--- a/src/statistics/gamedata.rs
+++ b/src/statistics/gamedata.rs
@@ -3,7 +3,7 @@
use super::boon::{BoonQueue, BoonType};
/// Enum containing all bosses with their IDs.
-#[derive(Debug, Clone, PartialEq, Eq, Hash)]
+#[derive(Debug, Clone, PartialEq, Eq, Hash, FromPrimitive)]
pub enum Boss {
ValeGuardian = 0x3C4E,
Gorseval = 0x3C45,