diff options
author | Daniel <kingdread@gmx.de> | 2019-05-31 02:51:16 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2019-05-31 02:51:16 +0200 |
commit | c731b470fc162e56f6d81c475bacb41230a5e2d3 (patch) | |
tree | 926a46c99d465b4da362c6583364b11bb6109771 /src/csl.rs | |
parent | 9243e9c6cc6cdefe1565291a2933cc58556ebe9b (diff) | |
download | raidgrep-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.rs | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 = ','; |