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