From 9739b6d40258440cef4f7664f501efa81497263b Mon Sep 17 00:00:00 2001 From: IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> Date: Sat, 16 Jul 2022 14:06:14 +0200 Subject: base implementation for the buffs they are not tested and the extra stroke is missing since we need the scoring system for it beforehand --- rust/src/buff_trait.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 rust/src/buff_trait.rs (limited to 'rust/src/buff_trait.rs') 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; +} -- cgit