Skip to main content

forge/items/
types.rs

1#[derive(Clone, Debug)]
2pub(super) struct ItemMeta {
3    pub id: u32,
4    pub key: String,
5    pub item_level: i32,
6}
7
8#[derive(Clone, Debug)]
9#[non_exhaustive]
10pub(super) enum ItemCell {
11    Ok { dps: f64, delta: f64, pct: f64 },
12    Error(String),
13}
14
15#[derive(Clone, Debug)]
16pub(super) struct SpecRow {
17    pub slug: String,
18    pub baseline_dps: f64,
19    pub cells: Vec<ItemCell>,
20}
21
22#[derive(Debug)]
23pub(super) struct ItemMatrix {
24    pub iterations: u32,
25    pub duration_secs: u32,
26    pub items: Vec<ItemMeta>,
27    pub specs: Vec<SpecRow>,
28}