ed_journals/modules/civilization/models/
faction_happiness.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
pub enum FactionHappiness {
    #[serde(rename = "$Faction_HappinessBand1;")]
    Elated,

    #[serde(rename = "$Faction_HappinessBand2;")]
    Happy,

    #[serde(rename = "$Faction_HappinessBand3;")]
    Discontent,

    #[serde(rename = "$Faction_HappinessBand4;")]
    Unhappy,

    #[serde(rename = "$Faction_HappinessBand5;")]
    Despondent,

    // TODO check what this one should actually be
    #[serde(rename = "")]
    Unspecified,

    #[cfg(feature = "allow-unknown")]
    #[cfg_attr(docsrs, doc(cfg(feature = "allow-unknown")))]
    #[serde(untagged)]
    Unknown(String),
}