forge-foundation 0.3.1

Core Magic types for the manabrew engine: colors, mana, card types, zones, phases
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::paper_card::PaperCard;
use super::sealed_template::SealedTemplate;

pub trait SealedProduct {
    fn name(&self) -> &str;
    fn template(&self) -> &SealedTemplate;
    fn total_cards(&self) -> u32 {
        self.template().number_of_cards_expected()
    }
    fn generate(&mut self) -> Vec<PaperCard>;
}