aboutsummaryrefslogtreecommitdiff
path: root/src/csl.rs
diff options
context:
space:
mode:
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 = ',';