diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-10-15 13:45:58 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-10-15 13:45:58 +0200 |
commit | d37b0e6ee5725ceb23a2546e1e673026e5d09cd9 (patch) | |
tree | f1c5d0ed0c14f03f7ccd83c2bd56f849cc5c8a0c | |
parent | 077831e4cf6adf1b8ed2ec64f51004b8e6cee8f4 (diff) | |
download | evtclib-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.
-rw-r--r-- | src/statistics/gamedata.rs | 2 |
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, |