aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/activation.rs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-18 04:58:00 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-18 07:02:29 +0100
commitec17616f8d6041ac5d93a786edec0f5d0f969a46 (patch)
treec3a1738aa715f33438591904310c1fca3f475349 /src/shared/activation.rs
parent937e1ed8d240c1a5b42f5b8cf1104321b9d79c4a (diff)
feat: speed ability
Diffstat (limited to 'src/shared/activation.rs')
-rw-r--r--src/shared/activation.rs16
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
+ }
+}