summaryrefslogtreecommitdiff
path: root/src/card/effect.rs
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-02-07 19:15:07 -0800
committerChristian Cunningham <cc@localhost>2024-02-07 19:15:07 -0800
commit5f3e5f473c6d7a45297c4d301eb2a2d61078586b (patch)
treebd725a5d16dc27a1c7b5b0997732feb57aaa3192 /src/card/effect.rs
parentccc015a370b87cebec77c3f48cd72ec3039dea6d (diff)
Modularize
Diffstat (limited to 'src/card/effect.rs')
-rw-r--r--src/card/effect.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/card/effect.rs b/src/card/effect.rs
new file mode 100644
index 0000000..a5f909e
--- /dev/null
+++ b/src/card/effect.rs
@@ -0,0 +1,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)
+ }
+}
+