aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/imperative.rs
blob: 44a0e43d36976aa1b14730660b8a51d59e028495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::shared::ability::*;
use crate::shared::player::*;
use crate::shared::*;
use serde::Deserialize;
use serde::Serialize;

#[derive(Component, Message, Copy, Clone, PartialEq, Debug, Deserialize, Serialize)]
pub enum Imperative {
    Idle,
    WalkTo(Vec2),
    AttackTarget(AbilitySlot, PlayerId),
    AttackDirection(AbilitySlot, Vec2),
}