1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Improve CardRegion with comments and a other variant

This commit is contained in:
Steffo 2022-08-02 10:36:26 +02:00
parent 6f79c08662
commit cc4b548b4a
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -87,25 +87,40 @@ impl Card {
/// Regions to which cards can belong to. /// Regions to which cards can belong to.
#[non_exhaustive]
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] #[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
pub enum CardRegion { pub enum CardRegion {
/// Noxus.
Noxus, Noxus,
/// Demacia.
Demacia, Demacia,
/// Freljord.
Freljord, Freljord,
/// Shadow Isles.
ShadowIsles, ShadowIsles,
/// Targon.
Targon, Targon,
/// Ionia.
Ionia, Ionia,
/// Shurima.
Shurima, Shurima,
/// Piltover & Zaun.
PiltoverZaun, PiltoverZaun,
/// Bandle City.
BandleCity, BandleCity,
// I'm not sure what this region is for. /// Runeterra.
Runeterra, Runeterra,
/// Origin: The Virtuoso.
Jhin, Jhin,
/// Origin: Agony's Embrace.
Evelynn, Evelynn,
/// Origin: The Wandering Caretaker.
Bard, Bard,
/// Unsupported region.
#[serde(other)]
Unsupported,
} }