blob: a5f909e98ed9f9e567a62927d62bf780aefb5fb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#[allow(dead_code)]
#[derive(Copy,Clone)]
pub struct CardEffect {
pub name: &'static str,
pub when: usize, // TODO: Change this
pub fun: &'static dyn Fn(),
}
impl core::fmt::Debug for CardEffect {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "{}", self.name)
}
}
|