diff options
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 = ','; |