diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 04:58:00 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:02:29 +0100 |
commit | ec17616f8d6041ac5d93a786edec0f5d0f969a46 (patch) | |
tree | c3a1738aa715f33438591904310c1fca3f475349 /src/shared/activation.rs | |
parent | 937e1ed8d240c1a5b42f5b8cf1104321b9d79c4a (diff) |
feat: speed ability
Diffstat (limited to 'src/shared/activation.rs')
-rw-r--r-- | src/shared/activation.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/shared/activation.rs b/src/shared/activation.rs new file mode 100644 index 0000000..3ca6956 --- /dev/null +++ b/src/shared/activation.rs @@ -0,0 +1,16 @@ +use crate::shared::ability::*; +use crate::shared::*; +use serde::Deserialize; +use serde::Serialize; + +#[derive(Component, Message, Copy, Clone, PartialEq, Debug, Deserialize, Serialize)] +pub enum Activation { + Activate(AbilitySlot), + None, +} + +impl Default for Activation { + fn default() -> Self { + Activation::None + } +} |