From 97f1c5df561d39b08f7ce074d28d4082c533af23 Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Tue, 12 Nov 2024 02:32:53 +0000 Subject: [PATCH] common: add support for ef cdlc --- libs/common/src/arma/dlc.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/common/src/arma/dlc.rs b/libs/common/src/arma/dlc.rs index 135f2507..9bcd0201 100644 --- a/libs/common/src/arma/dlc.rs +++ b/libs/common/src/arma/dlc.rs @@ -36,6 +36,10 @@ pub enum DLC { /// Creator DLC: Reaction Forces /// ReactionForces, + #[serde(rename = "ef")] + /// Creator DLC: Expeditionary Forces + /// + ExpeditionaryForces, } impl DLC { @@ -50,6 +54,7 @@ impl DLC { Self::WesternSahara => "ws", Self::Spearhead1944 => "spe", Self::ReactionForces => "rf", + Self::ExpeditionaryForces => "ef", } } @@ -64,6 +69,7 @@ impl DLC { Self::WesternSahara => "1681170", Self::Spearhead1944 => "1175380", Self::ReactionForces => "2647760", + Self::ExpeditionaryForces => "2647830", } } } @@ -81,6 +87,7 @@ impl Display for DLC { Self::WesternSahara => "Creator DLC: Western Sahara", Self::Spearhead1944 => "Creator DLC: Spearhead 1944", Self::ReactionForces => "Creator DLC: Reaction Forces", + Self::ExpeditionaryForces => "Creator DLC: Expeditionary Forces", } ) } @@ -103,6 +110,7 @@ impl TryFrom for DLC { "1681170" | "ws" | "western sahara" => Self::WesternSahara, "1175380" | "spe" | "spearhead" | "spearhead 1944" => Self::Spearhead1944, "2647760" | "rf" | "reaction forces" => Self::ReactionForces, + "2647830" | "ef" | "expeditionary forces" => Self::ExpeditionaryForces, _ => return Err(format!("Unknown DLC: {dlc}")), }, )