veloren/common/src/comp/agent.rs

19 lines
336 B
Rust
Raw Normal View History

use specs::{Component, Entity as EcsEntity, VecStorage};
use vek::*;
#[derive(Copy, Clone, Debug)]
pub enum Agent {
Wanderer(Vec2<f32>),
Pet {
target: EcsEntity,
offset: Vec2<f32>,
},
Enemy {
target: Option<EcsEntity>,
},
}
impl Component for Agent {
type Storage = VecStorage<Self>;
}