aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/buff_trait.rs
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-16 14:06:14 +0200
committerLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-16 14:06:14 +0200
commit9739b6d40258440cef4f7664f501efa81497263b (patch)
treee5dc447da97a2af1f65627bb4ee0e3219ff778a7 /rust/src/buff_trait.rs
parent4f2bc986240c61bd455742c0cee3c3c796fc5e6b (diff)
download2022-9739b6d40258440cef4f7664f501efa81497263b.tar.gz
2022-9739b6d40258440cef4f7664f501efa81497263b.tar.bz2
2022-9739b6d40258440cef4f7664f501efa81497263b.zip
base implementation for the buffs
they are not tested and the extra stroke is missing since we need the scoring system for it beforehand
Diffstat (limited to '')
-rw-r--r--rust/src/buff_trait.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/src/buff_trait.rs b/rust/src/buff_trait.rs
new file mode 100644
index 0000000..d0e9fba
--- /dev/null
+++ b/rust/src/buff_trait.rs
@@ -0,0 +1,9 @@
+use gdnative::api::*;
+use gdnative::prelude::*;
+
+pub trait Buff {
+ unsafe fn execute_buff(&mut self);
+ unsafe fn revert_buff(&mut self);
+ fn get_name(self) -> GodotString;
+ fn get_description(self) -> GodotString;
+}