aboutsummaryrefslogtreecommitdiff
path: root/src/csl.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2019-05-31 02:51:16 +0200
committerDaniel <kingdread@gmx.de>2019-05-31 02:51:16 +0200
commitc731b470fc162e56f6d81c475bacb41230a5e2d3 (patch)
tree926a46c99d465b4da362c6583364b11bb6109771 /src/csl.rs
parent9243e9c6cc6cdefe1565291a2933cc58556ebe9b (diff)
downloadraidgrep-c731b470fc162e56f6d81c475bacb41230a5e2d3.tar.gz
raidgrep-c731b470fc162e56f6d81c475bacb41230a5e2d3.tar.bz2
raidgrep-c731b470fc162e56f6d81c475bacb41230a5e2d3.zip
add option to filter based on boss
Diffstat (limited to 'src/csl.rs')
-rw-r--r--src/csl.rs17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/csl.rs b/src/csl.rs
index fb11841..df10451 100644
--- a/src/csl.rs
+++ b/src/csl.rs
@@ -5,6 +5,7 @@ use std::fmt;
use super::{SearchField, FightOutcome};
use chrono::Weekday;
+use evtclib::statistics::gamedata::Boss;
pub trait Variants: Copy {
type Output: Iterator<Item=Self>;
@@ -29,12 +30,26 @@ macro_rules! variants {
].iter().cloned()
}
}
- }
+ };
+ ($target:ident => $($var:ident,)+) => {
+ variants!($target => $($var),+);
+ };
}
variants! { SearchField => Account, Character }
variants! { FightOutcome => Success, Wipe }
variants! { Weekday => Mon, Tue, Wed, Thu, Fri, Sat, Sun }
+variants! { Boss =>
+ ValeGuardian, Gorseval, Sabetha,
+ Slothasor, Matthias,
+ KeepConstruct, Xera,
+ Cairn, MursaatOverseer, Samarog, Deimos,
+ SoullessHorror, Dhuum,
+ ConjuredAmalgamate, LargosTwins, Qadim,
+
+ Skorvald, Artsariiv, Arkk,
+ MAMA, Siax, Ensolyss,
+}
/// The character that delimits items from each other.
const DELIMITER: char = ',';