Trait game_features::LevelFor [−][src]
pub trait LevelFor { fn level_for_xp(&self, xp: u32) -> u32; }
Expand description
A trait that can calculate the level for something that can accumulate experience.
We suggest using PartialFunction
when implementing this trait.
Required methods
fn level_for_xp(&self, xp: u32) -> u32
[src]
Expand description
Returns the level that you have using the amount of experience.