From e6a36d6aa73e68ac9b719bed7324402915540f3f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 4 Aug 2022 21:23:11 +0200 Subject: [PATCH] Add missing `sets` field --- src/schema/corebundle/globals.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/schema/corebundle/globals.rs b/src/schema/corebundle/globals.rs index 197fca3..3072d57 100644 --- a/src/schema/corebundle/globals.rs +++ b/src/schema/corebundle/globals.rs @@ -1,3 +1,5 @@ +use crate::schema::corebundle::CoreSet; + use super::keyword::CoreKeyword; use super::rarity::CoreRarity; use super::region::CoreRegion; @@ -25,6 +27,9 @@ pub struct CoreGlobals { /// A [Vec] of all [CoreRarity]s in the game. pub rarities: Vec, + + /// A [Vec] of all [CardSet]s in the game. + pub sets: Vec, } @@ -116,6 +121,13 @@ mod tests { name: "COMMON".to_string(), } ], + sets: vec![ + CoreSet { + set: CardSet::CallOfTheMountain, + name: "Call of the Mountain".to_string(), + icon_png: "http://dd.b.pvp.net/3_11_0/core/en_us/img/sets/set3_crispmip.png".to_string(), + } + ] } ) }