ed_journals/modules/logs/content/log_event_content/
promotion_event.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
//! Fired when the player is promoted for a given rank.

use serde::{Deserialize, Serialize};

use crate::modules::commander::{
    CombatRank, EmpireRank, ExobiologyRank, ExplorationRank, FederationRank, MercenaryRank,
    TradeRank,
};

/// Fired when the player is promoted for a given rank.
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "PascalCase")]
pub enum PromotionEvent {
    Exobiologist(ExobiologyRank),
    Combat(CombatRank),

    #[serde(rename = "Soldier")]
    Mercenary(MercenaryRank),
    Trade(TradeRank),

    #[serde(rename = "Explore")]
    Exploration(ExplorationRank),

    Federation(FederationRank),
    Empire(EmpireRank),
}