1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use bevy::{
    ecs::{component::Component, system::Resource},
    reflect::Reflect,
};
use serde::{Deserialize, Serialize};

/// How the spell is targeted when casting.
#[derive(
    Debug, Clone, Copy, PartialEq, Eq, Hash, Component, Resource, Serialize, Deserialize, Reflect,
)]
#[serde(rename_all = "camelCase")]
pub enum CastCategory {
    /// The spell is cast by physically touching the target.
    Touch,
    /// The spell is cast by targeting another entity.
    Projectile,
    /// The spell is cast by targeting an area on the ground.
    Ground,
    /// The spell is cast on the caster.
    OnSelf,
    /// The spell is cast by summoning a minion (or other entity)
    Summon,
}