aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/buff_extra.rs
blob: 473cdde0a009b0fceecf35741bf64b865e8363b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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)
    }
}