aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/activation.rs
diff options
context:
space:
mode:
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
+ }
+}