DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

55edf7345b497aac9ddc9b3c1b466a70502afce3 — skye 1 year, 7 months ago 11f7932
feat(client): add details fields for cards
2 files changed, 12 insertions(+), 0 deletions(-)

M client/src/game_status/mod.rs
M client/src/plugins/game/ui/mod.rs
M client/src/game_status/mod.rs => client/src/game_status/mod.rs +4 -0
@@ 24,6 24,10 @@ pub struct CardAction {
#[derive(Deserialize, Serialize, Clone)]
pub struct Card {
    pub name: String,
    /// short details shown on the card, e.g. Draw 2
    pub short_details: Vec<String>,
    /// longer explanations of features of the card
    pub long_details: Vec<String>,
    pub cost: u32,
    /// if set, use this?
    //vp_cost: Option<u32>,

M client/src/plugins/game/ui/mod.rs => client/src/plugins/game/ui/mod.rs +8 -0
@@ 108,6 108,8 @@ fn hardcoded_piles(
                    &Command::InitSupplyPile {
                        card: Card {
                            name: "Test Card".to_string(),
                            short_details: vec![],
                            long_details: vec![],
                            cost: 4,
                            actions: vec![]
                        },


@@ 124,6 126,8 @@ fn hardcoded_piles(
                    &Command::InitSupplyPile {
                        card: Card {
                            name: "Test Card 2".to_string(),
                            short_details: vec![],
                            long_details: vec![],
                            cost: 4,
                            actions: vec![]
                        },


@@ 140,6 144,8 @@ fn hardcoded_piles(
                    &Command::InitSupplyPile {
                        card: Card {
                            name: "Test Card 3".to_string(),
                            short_details: vec![],
                            long_details: vec![],
                            cost: 4,
                            actions: vec![]
                        },


@@ 156,6 162,8 @@ fn hardcoded_piles(
                    &Command::InitSupplyPile {
                        card: Card {
                            name: "Test Card 4".to_string(),
                            short_details: vec![],
                            long_details: vec![],
                            cost: 4,
                            actions: vec![]
                        },