manabrew-engine 0.6.0

Magic: The Gathering rules engine — a Rust port of Forge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ids::CardId;

use super::PlayerAction;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct SelectCardAction {
    pub card_id: CardId,
}

impl From<SelectCardAction> for PlayerAction {
    fn from(value: SelectCardAction) -> Self {
        PlayerAction::SelectCard(value.card_id)
    }
}