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