-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
110 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
use strum::{AsRefStr, Display, IntoStaticStr}; | ||
|
||
/// Information about a skill. | ||
#[derive(Debug, Clone)] | ||
pub enum SkillInfo { | ||
/// Ability. | ||
Ability, | ||
|
||
/// Buff. | ||
Buff { | ||
/// Category of the buff. | ||
category: Category, | ||
|
||
/// Stacking behavior of the buff. | ||
stacking: Stacking, | ||
}, | ||
} | ||
|
||
/// Category of the buff. | ||
/// | ||
/// Any category except for Boon and Condition is mapped to [`Category::Effect`]. | ||
#[derive( | ||
Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Display, AsRefStr, IntoStaticStr, | ||
)] | ||
pub enum Category { | ||
/// Buff is a Boon. | ||
Boon = 0, | ||
|
||
/// Buff is an uncategorized effect. | ||
Effect = 1, | ||
|
||
/// Buff is a Condition. | ||
Condition = 2, | ||
|
||
/// Buff is hidden but gives a screen border. | ||
#[strum(serialize = "Screen Border")] | ||
ScreenBorder = 3, | ||
} | ||
|
||
/// Stacking behavior of the buff. | ||
#[derive( | ||
Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Display, AsRefStr, IntoStaticStr, | ||
)] | ||
pub enum Stacking { | ||
// Other/unknown stacking type. | ||
Other, | ||
|
||
/// Buff stacks in intenstity. | ||
Intensity, | ||
|
||
/// Buff stacks in duration. | ||
Duration, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters