@@ 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>,
@@ 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![]
},