game_features 0.1.0

Various helpful constructs for game developement. See the github repository for detailled instructions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// World interaction
// or
// Stat buff
pub struct SkillDefinition<K, S> {
    pub key: K,
    pub name: String,
    pub description: String,
    pub cooldown: f64,
    // stat usage
    pub stat_transition: Option<S>,
}

pub struct SkillInstance<K> {
    pub skill_key: K,
    pub current_cooldown: f64,
}