diff options
Diffstat (limited to 'rust/src/buff_extra.rs')
-rw-r--r-- | rust/src/buff_extra.rs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/rust/src/buff_extra.rs b/rust/src/buff_extra.rs new file mode 100644 index 0000000..473cdde --- /dev/null +++ b/rust/src/buff_extra.rs @@ -0,0 +1,35 @@ +use gdnative::api::*; +use gdnative::prelude::*; +use crate::buff_trait::Buff; + +struct BuffExtra { + name: String, + description: String, +} + +impl BuffExtra { + fn new() -> Self { + BuffExtra { + name: String::from("Extra Stroke"), + description: String::from("One additional stroke that doesn't count"), + } + } +} + +impl Buff for BuffExtra { + unsafe fn execute_buff(&mut self) { + todo!() + } + + unsafe fn revert_buff(&mut self) { + todo!() + } + + fn get_name(self) -> GodotString { + GodotString::from_str(self.name) + } + + fn get_description(self) -> GodotString { + GodotString::from_str(self.description) + } +} |