From c731b470fc162e56f6d81c475bacb41230a5e2d3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 31 May 2019 02:51:16 +0200 Subject: add option to filter based on boss --- src/csl.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/csl.rs') 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; @@ -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 = ','; -- cgit v1.2.3